Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increase the Android API level during app update

One of my existing launched app's minSdkVersion is 4, but now I want to provide an update , which minSdkVersion is changed to 5.

I have tried and upload to the market is okay, but what will happend when this update is really being rolled out?

What would happen to the user with device can't meet the requirement? Any side effect except they won't be able to install the app in the future?

Thanks.

like image 881
Ryan Avatar asked Jul 07 '12 10:07

Ryan


People also ask

How do I change the API level of an app?

Step 1: Open your Android Studio, and go to Menu. File >Project Structure. Step 2: In project Structure window, select app module in the list given on left side. Step 3: Select the Flavors tab and under this you will have an option for setting “Min Sdk Version” and for setting “Target Sdk Version”.

What happens if the device is running Android 10+ API 29 +)?

If you will not be targeting Android 10 (API level 29), some of these changes might not immediately affect you. However, while you can currently use some non-SDK interfaces (depending on your app's target API level), using any non-SDK method or field always carries a high risk of breaking your app.

Can we change API level in Android Studio?

Step 1: Open your project in Android mode then go to Gradle Scripts > build. gradle(Module: app) as shown in the following image. Step 2: Refer to the below image and here you have to change the minSdkVersion and targetSdkVersion as per the requirement.


1 Answers

If you "deactivate" old apk file in developer console - your app will we able for downloading only for API 5+. There will not be any effect for people with API 4 and already installed app.

If you keep both old and new apks in market in "active" state, then market will offer old one for people with API 4 and new one for people with API 5+. Also they will be offered to update your app.

When you add apk that supports less versions than old one, you will see this:

http://take.ms/E0SYg

Market resolve itself what apk to give user.

like image 89
Jin35 Avatar answered Oct 19 '22 11:10

Jin35