10 minutes

Creamer

Well-known member
#1
that is how long my phone screen takes to time out and go black.
an AI cant be off.

getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

or

<LinearLayout
android:eek:rientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:keepScreenOn="true">
 
Top