Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
LinkBack Thread Tools
Old April 16th, 2010, 09:20 AM   #1 (permalink)
Junior Member
Thread Author (OP)
Join Date: Oct 2009
Location: Pennsylvania, USA
Posts: 46
Device(s): Motorola Droid
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default 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.

wige is offline  
Reply With Quote
sponsored links
Old April 16th, 2010, 10:38 AM   #2 (permalink)
New Member
Zero's Avatar
Join Date: Oct 2009
Posts: 11
Carrier: Not Provided

Thanks: 0
Thanked 2 Times in 2 Posts

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.
Zero is offline  
Reply With Quote
Old April 17th, 2010, 08:32 AM   #3 (permalink)
Junior Member
Join Date: Apr 2010
Location: Salt Lake City, UT
Posts: 44
Device(s): Motorola Droid
Carrier: Not Provided

Thanks: 1
Thanked 10 Times in 9 Posts

Yeah, all you need to do is just change the minSdkVersion line in the manifest file and set the project to compile against another Android version in Eclipse's project preferences. It's under "Android" in there - look around.
dmitriyk is offline  
Reply With Quote
Old January 23rd, 2011, 07:27 PM   #4 (permalink)
New Member
Join Date: Jan 2011
Location: Akron, OH
Posts: 1
Device(s): Droid 2
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Post Where to change minimum version of Android

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
<uses-sdk android:minSdkVersion="7" />
entry (mine says 7). Change the value, or remove the entry to clear the attribute.
Suncat2000 is offline  
Reply With Quote

Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

All times are GMT -5. The time now is 11:10 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.