Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Android app run in small window on tablet emulator?

I have an Android App, it works properly on android phones. I've downloaded Android 3.0 sdk and created a tablet emulator at 1024x600, using Android 3.0. When I test my app it runs in a small window centered at the top, using about 1/4 of the screen.

What do I have to change in the app, xml files, or manifest to get it to use the whole tablet screen?

As a side note I also have icons for drawable-ldpi, hdpi and mdpi.

Thanks, Gerry

like image 718
Gerry Avatar asked Mar 22 '11 21:03

Gerry


2 Answers

The earlier sdk's did not have support for the extra large screens, so you need to specify in the manifest a new sdk version. I'll look up the details, but for now a quick fix is to add:

<uses-sdk android:targetSdkVersion="4"/>

to your manifest.

like image 122
Ian Avatar answered Nov 16 '22 02:11

Ian


Read up on the <supports-screens> Android manifest element. You probably want android:largeScreens="true" and android:xlargeScreens="true".

like image 40
Yoni Samlan Avatar answered Nov 16 '22 00:11

Yoni Samlan