Usable Screen Size

by murali raju » Tue, 09 Mar 2010 23:18:48 GMT


Sponsored Links
 Hi,
    you can do it by using override method onTouch(), so that u get the
coordinates and calculate the application area.




>



Usable Screen Size

by murali raju » Tue, 09 Mar 2010 23:24:18 GMT


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

this would be ur notification bar height.




>


Sponsored Links


Usable Screen Size

by neha » Tue, 09 Mar 2010 23:27:47 GMT


 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.

--



Other Threads

1. Unable to create an android project

Hi ,

I am a newbie in Android. Just got started. I have installed the
eclipse for Java and installed the Android SDK and ADT plugin.

Problem is i am unable to create a sample project in Android. No
matter whatever i select in the project the Finish button remains
disabled. It's not allowing me to create a project.

Any suggestions ??

-- 

2. Why I'm not getting the "select package" field when I open a new Android Project?

I'm not getting the following fields when I'm trying to create a new
android project in eclipse.

1. Package name:
2. Create Activity:
3. Min SDK Version:

-- 

3. screen design

4. accept me

5. Content Provider filtering query, filtering Cursor

6. How to unabled "Clear Data" Button? in froyo

7. NBA: LeBron James and Dwyane Wa de鈥檚 statistical comparison