Pls add andoid:configChanges="orientation|keyboard"
And override onConfigurationChanged and check the orientation against
Configuration.ORIENTATION_LANDSCAPE or potrait

On Mar 25, 2009 12:56 AM, "Suman" <[email protected]> wrote:


Hi....



              Many thanks for replies. I actually want to do
something if the screen orientation is landscap. Am trying something
like this...............

       if(getRequestedOrientation()== landscap)
{

{

 But it was not working. So if the way is correct then please tell
me
       if(getRequestedOrientation()== ????)

Or suggest something another way.
 Thanks in advance.

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