Tag Archives: powermanager

55,981 views

Turn screen ON OFF Android sample code

WakeLock, PowerManager,uses-permission Android sample. Main.java public class Main extends Activity { private SensorManager mSensorManager; private PowerManager mPowerManager; private WindowManager mWindowManager; private WakeLock mWakeLock; private Button button; private TextView textView;   /** Called when the activity is first created. */ @Override … Continue reading

Posted in Android Examples Code | Tagged , , , | Comments Off on Turn screen ON OFF Android sample code