Tuesday, February 21, 2012

[android-developers] Re: How to check when the phone changues from portrait to landscape? (with portrait mode forced in manifest)

saex wrote:
> I have a special need for my app. I must force the app to work only in
> portrait mode, but i need to know when the user has moved the phone to
> landscape mode. Why? because i am displaying a opengl view with a
> texture image, and when the user changues the phone position to
> landscape mode i must rotate the polygon without reseting the
> activity. Then i must force portrait mode on manifest, because i dont
> want that my onCreate method gets called again.
>
> Please, can someone tell me how to achieve this?
>
> I know how to rotate the image, i only need to know when the user has
> moved the phone to landscape position, but with portrait forced on
> manifest.
>
> Thanks


http://developer.android.com/guide/topics/resources/runtime-changes.html#HandlingTheChange

pskink

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment