You need to get configChanges of your activity to "orientation".  This means
that app will handle all the orientation changes by itself.

See
http://developer.android.com/guide/topics/manifest/activity-element.html#config

  android:configChanges
<http://developer.android.com/guide/topics/manifest/activity-element.html#config>=["mcc",
"mnc", "locale",
                                 "touchscreen", "keyboard", "keyboardHidden",
                                 "navigation", "orientation", "screenLayout",
                                 "fontScale", "uiMode"]



On Tue, Apr 26, 2011 at 4:53 PM, Digeridoo
<[email protected]>wrote:

> Hi All,
>
> My game app resets to start position when I rotate the phone from
> portrait to landscape or the other way round. Do I need to disable the
> gravity sensor and do I do this in the OnCreate method?
>
> --
> 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




-- 
*Farah Hanif*
613-851-9128

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