• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to change the minimum version of Android?

Hi everyone. I have created an application in Eclipse which requires Android 2.0 (or in the manifest minSdkVersion="5"). Since a planned feature that would have required Android 2.0 has been dropped, I want to change the app so that it will work with older devices. Any suggestions on what I need to do to accomplish this?

Is this simply a matter of creating a new project with the older system specified, and importing the individual files, or are there other gotchas involved that I should be aware of? And, is there an easier way of converting the app by modifying the existing project?

Any ideas and warning appreciated.
 
If you want to target older and newer devices, in the manifest, you should specify the lowest and highest versions of Android you want to target using android:minSdkVersion and android:targetSdkVersion under uses-sdk. Then link the app against the target sdk version (right click project->project properties in eclipse) and test on older version emulators.
 
Upvote 0
Thank the previous posters for suggesting the right area to look in. To clarify, here are some instructions that helped a newbie like me.

In the root directory of your project is a file named AndroidManifest.xml. This is the file you need to open.

If you are using Eclipse, opening will bring up the Manifest editor. Under the Manifest Extras control group, you should find a Uses SDK entry. Select it. There is an Attributes for... pane that will let you edit SDK attributes: Min SDK version, Target SDK version, and Max SDK version.

If you are editing the XML source directly, look for the
Code:
<uses-sdk android:minSdkVersion="7" />
entry (mine says 7). Change the value, or remove the entry to clear the attribute.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones