android-Creating Multiple APKs for Different Screen Sizes,Creating Multiple APKs for Different GL Te

>Creating Multiple APKs for Different Screen Sizes

 When developing your Android application to take advantage of multiple APKs on Google Play, it’s important to adopt some good practices from the get-go, and prevent unnecessary headaches further into the development process. 

 >If you can manage it, confining your application to a single APK has several advantages, including:

  • Publishing and testing are easier
  • There’s only one codebase to maintain
  • Your application can adapt to device configuration changes
  • App restore across devices just works
  • You don’t have to worry about market preference, behavior from "upgrades" from one APK to the next, or which APK goes with which class of devices

> Putting this all together, your Android Manifests would likely look something like the following:

Blue:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    android:versionCode="1001" android:versionName="1.0" package="com.example.foo">
    <supports-screens android:smallScreens="true"
        android:normalScreens="true"
        android:largeScreens="true"
        android:xlargeScreens="true" />
    ...

Green:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    android:versionCode="2001" android:versionName="1.0" package="com.example.foo">
    <supports-screens android:smallScreens="false"
        android:normalScreens="false"
        android:largeScreens="true"
        android:xlargeScreens="true" />
    ...

Red:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    android:versionCode="3001" android:versionName="1.0" package="com.example.foo">
    <supports-screens android:smallScreens="false"
        android:normalScreens="false"
        android:largeScreens="false"
        android:xlargeScreens="true" />
>Creating Multiple APKs for Different GL TextTures

If you can manage it, confining your application to a single APK has several advantages, including:

  • Publishing and Testing are easier
  • There’s only one codebase to maintain
  • Your application can adapt to device configuration changes
  • App restore across devices just works
  • You don’t have to worry about market preference, behavior from "upgrades" from one APK to the next, or which APK goes with which class of devices
>Creating Multiple APKs with 2+ Dimensions

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    android:versionCode="0344001" android:versionName="1.0" package="com.example.foo">
    <uses-sdk android:minSdkVersion="3" />
    <supports-screens android:smallScreens="false"
        android:normalScreens="false"
        android:largeScreens="false"
        android:xlargeScreens="true" />

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值