Use android:screenOrientation on your activity:

http://code.google.com/android/reference/android/R.styleable.html#AndroidManifestActivity_screenOrientation

Fwiw, sensor-based rotation is not currently enabled by default so you
should never be seeing it unless your app specifically does it for itself.

On Thu, Jan 29, 2009 at 12:34 PM, dorkinator <[email protected]>wrote:

>
> Hi, I'm fairly new to android development - I'm having trouble finding
> documentation on how to disable the accelerometer/auto-rotate feature
> for an app (i.e. when you turn the phone, everything 'corrects'
> changing the layout).  Is it possible to disable in the emulator?
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

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