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 <[email protected]> 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 [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 -- 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

