On Fri, Sep 16, 2011 at 9:18 AM, Pinheiro <[email protected]> wrote:
> I have an unusual problem: I've made an app that will be shown at an
> exposition booth. What I need is a way to prevent the screen from
> going off, i.e., the activity will be run forever (no battery problem,
> it will always be powered).

Add android:keepScreenOn="true" to some widget in the activity's
layout XML resource.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 3.1 Programming Books: http://commonsware.com/books

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

Reply via email to