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

前端 未结 3 1045
挽巷
挽巷 2020-12-16 22:38

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 a

相关标签:
3条回答
  • 2020-12-16 23:04

    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.

    0 讨论(0)
  • 2020-12-16 23:14

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

    0 讨论(0)
  • 2020-12-16 23:26

    This worked for me like a charm.

    <supports-screens
     android:largestWidthLimitDp="320"
     android:smallScreens="true"
     android:normalScreens="true"
     android:largeScreens="true"        
     android:xlargeScreens="true"/>
    

    Refer here for more assistance.

    0 讨论(0)
提交回复
热议问题