TAB emulator not resizing app.

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

TAB emulator not resizing app.

Postby Kalder » Thu Feb 02, 2012 1:36 pm

Hi,

I'm trying to test my app on a tablet emulator (different emu's for different api's, 2.2 / 2.3 / 3.0 / 4.0 )
I set them to have a custom resolution of 1024×800 which i believe is for example the resolution of a Galaxy Tab 10.1

So the first problem I came across was that when i set the resolution to a custom size i lost the on screen keyboard, no problem for android 3.0+ but previous android versions don't have the onscreen back / home etc buttons.

Now another weird thing that I don't understand, I had my app being tested by a friend on a galaxy tab, and the app did fill the screen neatly allthough i designed it for WVGA800.
Now when I run the app on an emulator with a custom resolution of 1024x800 it doesn't scale the app to fill the screen.
I also tried the Galaxy Tab add-on emulator, and it had the same effect.

So how can i let my app scale to fill the screen on an emulator? I find it very weird, since it showed correctly on an actual galaxy tab device.
Kalder
Junior Developer
Junior Developer
 
Posts: 17
Joined: Sun Jul 24, 2011 8:20 pm

Top

Re: TAB emulator not resizing app.

Postby Kalder » Thu Feb 02, 2012 10:10 pm

And again I found a fix for this at least for emulators, I put this in the manifest and it worked:
Code: Select all
    <supports-screens
            android:smallScreens="true"
            android:normalScreens="true"
            android:largeScreens="true"
            android:anyDensity="true" />
Kalder
Junior Developer
Junior Developer
 
Posts: 17
Joined: Sun Jul 24, 2011 8:20 pm

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests