Farid Valiyev Farid Valiyev - 4 months ago 8
Android Question

Is it possible Android app support different version with different apk?

Android Kitkat does't support upload in

webview
. I fixed it Embebed Crosswalk Webview. But I want crosswalk work only Kitkat. Is it possible Android app support different version with different apk? Can I upload it Play Store in same app?

Answer

Instead of deploying several apks, you could handle this logic in code with something like this:

private final int sdkVersion = Build.VERSION.SDK_INT;

if (sdkVersion < Build.VERSION_CODES.KITKAT) {
    //do old way
} else {
    //do new way
}

More information here: How to support multiple android version in your code?

Comments