Compile for which Android version?

Monkey Targets Forums/Android/Compile for which Android version?

slenkar(Posted 2012) [#1]
An average phone like this
http://en.wikipedia.org/wiki/Sony_Ericsson_XPERIA_X10

seems to be still using Android 2.2 according to wikipedia,

can monkey compile for older versions like 2.2?


Xaron(Posted 2012) [#2]
Yes. Lowest possible is 1.5 which is SDK version 3 and default is set to target 7 (which is 2.1).


Gerry Quinn(Posted 2012) [#3]
Didn't the default get upped to 8 at some stage?


slenkar(Posted 2012) [#4]
I just compiled and it says version 13 Android 3.2

How do you change it?


Aman(Posted 2012) [#5]
I always compile with the latest version and it works with all. I have people with versions 1.5 & 1.6 showing up in the market statistics.

If you want to change your build target. open the project with Eclipse then right click on the project-> Properties. A new window will open, Click on the Android tab and here you will find all available targets. If you want to add more, use the Android SDK Manager and download the one you want to target.


slenkar(Posted 2012) [#6]
I always compile with the latest version and it works with all

oh thats good :)


Xaron(Posted 2012) [#7]
Important are the values in the AndroidManifest not the version you compile with. You can set your target there. And yes you can compile with the latest SDK version but target lower spec devices. Same is true for iOS.