I want to disable the black screen appearing when i press the lock button in android. You might have observed how they do it in android video players just place a lock icon on the top instead of bringing up the black screen. Please tell to which classes or methods to refer?
Share
By black screen I asume that you mean that the screen turns off.
Use the powermanager for that. By acquiring a wakelock you prevent the screen from turning off.