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. Construct typeface object from file?

Hi, does anyone know how to construct a typeface object from a file?
Say i have a .ttf file on the SD card, how do i load it into my app?

thanks
--~--~---------~--~----~------------~-------~--~----~

2. Way to tell when task goes to back of stack?

Is there a way to tell when my task gets put on the back of the UI 
stack (user pressed "home" say?) I have some resources I'd like to 
free when not foregrounded.

The lifecycle routines seem dicey to use to try and infer this.

The "home" key does not seem to be passed to onKeyDown(), and 
moveTaskToBack() is never called by the system so I can hook it.

I can poll the ActivityManager for running activities with my task 
id, but hard to find a good time to call this.

Thanks

-- Ward

--~--~---------~--~----~------------~-------~--~----~

3. backup database

4. How to execute monkey in multiple packages

5. Custom tab design

6. What need to be save when application has to save state in onSaveInstanceState?

7. " IWindowManager Not Available "