Hi,
Using the folowing statements we can get the orientaion of a screen
Display display = ((WindowManager) getSystemService(*
WINDOW_SERVICE*)).getDefaultDisplay();
* int* orientation = display.getOrientation();
in this if orientation is equal to 0 then the screen is in portrait ,
if orientation is equal to 1 then the screen is in landscape .
If These mail is used for you reply me.
On 5/6/10, ameya dandekar <[email protected]> wrote:
>
> Hi....
> I am new to android....i m currently working on landscape mode for
> android app in which i want to know
> how to maintain the state of the activity and views displayed on
> orientation change i.e from portrait mode to landscape mode ?
>
> Regards,
> Ameya
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
Thanks
--
--
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