Farid Valiyev
Farid Valiyev

Reputation: 203

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?

Upvotes: 2

Views: 110

Answers (1)

Bill
Bill

Reputation: 4646

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?

Upvotes: 2

Related Questions