Always On Without Ambient Mode? Or Do Not Dim When Enter Ambient?
For experiment/user study purpose, I need to keep my screen on for few minutes. I have follow the guide from http://developer.android.com/training/wearables/apps/always-on.html and
Solution 1:
You may try
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
in your activity's onCreate()
or use
android:keepScreenOn="true"
in your activity's layout. See this training material for details.
Post a Comment for "Always On Without Ambient Mode? Or Do Not Dim When Enter Ambient?"