try: int orientation = getWindowManager().getDefaultDisplay ().getOrientation(); //works in an Activity class
then you can use the 4 constants to determine what the int means: Configuration.ORIENTATION_LANDSCAPE Configuration.ORIENTATION_PORTRAIT Configuration.ORIENTATION_SQUARE Configuration.ORIENTATION_UNDEFINED serge On Jun 28, 1:23 pm, Jason Van Anden <[email protected]> wrote: > I would like to know what the screen orientation is when my app > starts. Can someone please point me in the right direction? > > Thank You, > j --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

