I have a mildly successful app that targets Android 1.6 and am looking to upgrade the target API to 2.1 in order to include more features.
What will happen to those still using android 1.6? Will they just not see the update? I’d love to be able to check which api the user is using and implement code based on that within the same app.
It’s a paid app so making a new separate version is out of the question.
Depends on how you write the new version of your app.
If the new features have equivalents in 1.6, just that new APIs are used, you may be in the “old Contacts vs new Contacts API” boat. See Using the Contacts API and search for ‘legacy’.
Search the above link for
Supporting the old and new APIs in the same applicationfor sample code to select APIs based on current OS version.If you can code your app so it still runs on 1.6 and newer OSes even though you use new APIs, then you’ll need to modify the
uses-sdkelement in theAndroidManifest.xmlto tell Android you can handle the older OSes. See AndroidManifest.xml uses-sdk element.