Multiple Apk for One Android application

By
Multiple Apk For One Android Application

To help you publish your application for as many devices as possible. Google Play allows you to publish multiple APKs under the same application listing. Google Play then supplies each APK to the appropriate devices based on configuration support you’ve declared in the manifest file of each APK.

Too many android devices comes with various different CPU architectures and different screen densities devices are there. Making single apk with all device compatible, increases your apk size, as it has resources for every device. Why to make our users, to download apk containing device specific useless resources who are having lower memory devices.I think one single apk application for all device, this is only consume more memory of our users.

Sinngle APk fil is better for devloper for maintainannce, but some time it’s very dangerouse to handle this one APk for all device, because some library not support some othe API level that time very tediouse to handle this one.

so better way to split APk in to multiple APK with same package according to API level and SDK version of android.

What is meaning of multiple APK ?

We can genearate different APK with same package and same name but its, supporting level are different API, it’s called multiple aPK.

Advantage of Multiple APK

  • Reduce the resources size  : I think specific level of API support different resources that time we place only required resource in the folder. not required to put unneccessary resources.
  • Support new features : Any technology release new features, that time older device and older API not fully supported of that. which means we release new APK for that particular version to till the new version then we easily implet new features.

Visual How to work Multiple APK

How To Work Multiple APK
How To Work Multiple APK

Rules for multiple APKs

Before you publish multiple APKs for your application, you need to understand the following rules:

  • All APKs you publish with same application with same package name and signed with the same certificate key.

    Each APK must have a different version code, specified by the android:versionCode attribute.
    Each APK must not exactly match the configuration support of another APK.
    That is, each APK must declare slightly different support for at least one of the supported Google Play filters (listed above).

  • Usually, you will differentiate your APKs based on a specific characteristic (such as the supported texture compression formats), and thus,
  • each APK will declare support for different devices.
  • However, it’s OK to publish multiple APKs that overlap their support slightly.
  • When two APKs do overlap, a device that falls within that overlap range will receive the APK with a higher version code.
  • Usually, you will differentiate your APKs based on a specific characteristic , and thus, each APK will declare support for different devices.
  • However, it’s OK to publish multiple APKs that overlap their support slightly.
  • When two APKs do overlap (they support some of the same device configurations), a device that falls within that overlap range will receive the APK with a higher version code (defined by android:versionCode).
  • An APK that requires a higher API level must have a higher version code.

    This is true only when either:

  • the APKs differ based only on the supported API levels or when the APKs do use another supported filter, but there is an overlap between the APKs within that filter.
  • This is important because a user’s device receives an application update from Google Play only if the version code for the APK on Google Play is higher than the version code of the APK currently on the device.
  • This ensures that if a device receives a system update that then qualifies it to install the APK for higher API levels, the device receives an application update because the version code increases.

Click here, for more information

Latest Blog