Search code examples
androidsamsung-mobilesetting

How to maintain Galaxy S2 screen active (Android OS)?


In Samsung Galaxy S2, where can I find the option to keep screen active? I've already searched through Menu->Configuration->Application->Development (and every other menu), but the Development option is missing in Application view (the view is a kind of application manager, not option settings).

I know that there is a lot of issues about keeping the amoled display active (i.e. pixel burn), but I'm in really need of this feature, as it is becoming very anoying to tap my device screen every time it is close to turn inactive.

Bellow is my Setting->Developer Options screen-shot:

enter image description here

Special Note: I've ready somewhere that the manufacturers had removed the option to keep screen active. Is this a true information?

Thanks in advance!


Solution

  • Try Setting the value programmatically using below code

    Settings.System.putInt(getActivity().getContentResolver(),Settings.System.STAY_ON_WHILE_PLUGGED_IN,(BatteryManager.BATTERY_PLUGGED_AC | BatteryManager.BATTERY_PLUGGED_USB));