Try keepScreenOn:

http://code.google.com/android/reference/android/view/View.html#attr_android:keepScreenOn

On Dec 31 2008, 12:58 pm, Toothy Bunny <hongkun...@gmail.com> wrote:
> Hi All,
> If the G1 is idle for short period (no user input) while a Activity is
> still running, the screen blacks out and the user input is locked.
> When the screen is unlocked by the user again and screen light up, we
> found the View object does not have input focus, as the result, the
> application does not react any user input.
>
> To solve this "App. frozen" problem, I added View.request() in
> Activity's onResume() method becase onResume() is called when the
> Activity comes back after screen black-out.
>
> Also, is there a way to completely avoid screen black-out, in other
> words, how can we make the screen always on when a Activity is running
> even there is no user input.
>
> Thanks for any suggestions!
> Hongkunwww.omnigsoft.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to