[android-beginners] Re: Identifying the android screen mode (landscape/portrait)

2008-09-23 Thread [EMAIL PROTECTED]
Oh, thnx Phil... It works good... On Sep 20, 6:56 am, Phil <[EMAIL PROTECTED]> wrote: > Hi. > > You could use the following to determine the screen resolution from > within your Activity/Context... > > getWindow().getWindowManager().getDefaultDisplay().getHeight() > getWindow().getWindowManager()

[android-beginners] Re: Identifying the android screen mode (landscape/portrait)

2008-09-20 Thread Phil
Hi. You could use the following to determine the screen resolution from within your Activity/Context... getWindow().getWindowManager().getDefaultDisplay().getHeight() getWindow().getWindowManager().getDefaultDisplay().getWidth() Phil On Sep 19, 11:02 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>