There is a flag in WindowManager.LayoutParams you can set to keep the screen
on.  (Please do NOT use the lower-level PowerManager class for this.)

Use android:screenOrientation on the activity in your manifest to force a
particular orientation mode.

On Wed, Feb 11, 2009 at 8:18 AM, naxtek <gnax...@gmail.com> wrote:

>
> Hi - After some help with this.
>
> I am making an Android app which is currently coming along nicely -
> I've hit upon a couple of stumbling blocks.
>
>
> 1) How do I stop the screen from going dim/off and the phone locking
> while the application is running?
>
> 2) Can I force the phone to enter landscape mode on running my
> application?
>
> Thanks,
> Andrew :)
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~
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