2

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?

Farid Valiyev
  • 203
  • 5
  • 20

1 Answers1

2

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?

Community
  • 1
  • 1
Bill
  • 4,506
  • 2
  • 18
  • 29
  • I now this method, But I don't want change my all code. When I changed my code will confused and dilate (grow). My question is **Is it possible** Android app support different version with different apk? – Farid Valiyev Jul 14 '16 at 15:22