Out of curiosity, why do you ask?  (If it's only because you want to
have a different layout for landscape, then you should know that you
can specify layouts specifically for landscape in /res/layout-land)

-- PJ


On Nov 5, 6:09 am, manoj <[email protected]> wrote:
> Thanks Mogimo.
>
> On Nov 5, 2:54 pm, Mogimo <[email protected]> wrote:
>
>
>
> > You can use getResource().getConfiguration() from your Activity.
> > Then you will see it in Configuration.orientation.
>
> > > HI all,
>
> > > I want to know the device state programmatically.
>
> > > I mean whether the device is in portrait mode or in landscape mode by
> > > programming (in a class which extends the Activity).
>
> > > Thanks,
> > > Manoj.

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