or the best way would be use window manager
windowHeight = this.getWindowManager().getDefaultDisplay().getHeight();

this would be ur notification bar height.

On Tue, Mar 9, 2010 at 7:21 PM, neha <[email protected]> wrote:

> How can i get the usable screen size in android?
>
> By usable screen size i mean the screen size - size of taskbar.
> I can easily get the screen size by DisplayMetrics.
>
> DisplayMetrics dm = new DisplayMetrics();
> getWindowManager().getDefaultDisplay().getMetrics(dm);
> int height = dm.heightPixels;
> int width = dm.widthPixels;
>
> How can i get the size of takbar or the usable screen size.
>
> --
> 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

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