Thursday, September 20, 2012

Re: [android-developers] Orientation checking

Maybe this will help:
http://android-developers.blogspot.com/2010/09/one-screen-turn-deserves-another.html
http://developer.android.com/reference/android/view/Display.html#getRotation%28%29

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Sep 19, 2012 at 4:17 AM, saca <sacajohn@gmail.com> wrote:
hi,
 
I am using android:screenOrientation="landscape" to keep the screen in landscape.
Although the user is in landscape mode, I also need to know user is holding the phone in landscape or portrait.
How to program it?
 
I had try to use "getOrientation()" , but the result is same in landscape or portrait.

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

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate