Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are android apps backwards compatible?

Should I build an app that targets Android 2.2 and release it on the Android Marketplace;

Would the app be available for download and use on devices running a version of Android OS lower than the targeted version of the app? - Let's say Android OS version 1.6.

What would happen if a user (with an Android OS version 1.6 powered device) were to attempt to run the app?

Would they be prompted to update their OS or just receive an error message?

like image 207
Jason Sultana Avatar asked Jul 09 '11 11:07

Jason Sultana


People also ask

Are Android apps forward compatible?

Application forward compatibility Because almost all changes to the framework API are additive, an Android application developed using any given version of the API (as specified by its API Level) is forward-compatible with later versions of the Android platform and higher API levels.

What is backward compatibility in Android applications?

Backward compatible (also known as downward compatible or backward compatibility) refers to a hardware or software system that can successfully use interfaces and data from earlier versions of the system or with other systems.


2 Answers

It depends what you have in the minSdkVersion field in your AndroidManifest.xml. If it is set to 4 or lower, then it will be visible to people using 1.6.

There's a good explanation here.

like image 188
Graham Borland Avatar answered Oct 04 '22 04:10

Graham Borland


The android SDK is completely backward compatible using the mechanism that @Graham mentions. The other question will be "how far should you go". Use this graph to see the population of users on each platform level.

http://developer.android.com/resources/dashboard/platform-versions.html

This is pure opinion, but I would advise starting your app at API levels 7 or 8. The benefits of the APIs in EClair+ are worth losing this 0.4% still on 1.x devices.

like image 42
Eric Cloninger Avatar answered Oct 04 '22 02:10

Eric Cloninger