Studyon Minte9.com
Android




Turn screen on



       %--- MainActivity.java

	package com.example.myapp;
	import android.app.Activity;
	import android.os.Bundle;
	import android.util.Log;
	import android.view.View;
	import android.view.WindowManager;

	public class MainActivity extends Activity {
		
		@Override
		protected void onCreate(Bundle state) {

			super.onCreate(state);
			//setContentView(R.layout.activity_main);
			
			getWindow().addFlags(
				//WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON|
				WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD|
				WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED|
				WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);

                       setContentView( R.layout.activity_main);
		}
	}


http://stackoverflow.com/questions/6693773/android-turn-screen-on-and-notify-user
http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html