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. Using fragments between Applications

Hi,
    Now in honeycomb we can  fragments in an activity, so how about
using the fragments between different applications.
    i.e. I would like to use the fragment of one application in to
another application.

    if any one know about this, please suggest me, this will solve lot
of my work.

-- 

2. Howto get string /dev/block/vold/179:1 ( sdcard device) in an android app

Hi:

Anyone knows if there is any way to get the device path of the SDCARD?
I have mounted /dev/block/vold/179:1 on /mnt/sdcard and type is vfat.
My app runs ok cause I'm runnin the command "mount |grep sdcard |grep
vfat |  awk  -F" " '{print $1}' and get corresponding "/dev/block/vold/
179:1. But, what happens if other users have sdcard filesystem with
ext2, ext4, etc,,,? The app will not run correctly. The solution may
be change the command I've wrote below by other that can get directly
the string referent to the sdcard device.

Please, help me and If you can tell me a good reference for these
topics I will be grateful.

Thanks.

-- 

3. Disable autosuggest/correct

4. Tabs On Sense Devices

5. === My ContentProvider.query() can not populate a Cursor. ===

6. Read files to edittext

7. GPS System in Jeopardy(!?)