androidsdkbuild-target

Android target SDK version and phones


So I wrote an Android app a while ago, and I'm trying to update it. I'm wanting to build in code sections where if the phone they're on is less than 3.0, do something one way, otherwise do it another way.

My build target is set to 11 in the project.properties file, but it still seems to run on Android versions < 3.0? Is this normal? Will I see some crash at some point? Everything seems to be working... My minSDKVersion is 8, but happens when I run this app with Android 3.0 code on Android 2.3.3?


Solution

  • I think I was having a dumb moment. If I set my minSDK to 8, then anything newer than 8 should work fine. If I set my build target to 11, and then do checks before running any code that is newer than 8 on phones with SDKs older than 11, then that should cover all the bases.

    I just got a little confused when I was messing with the targetSDK and the minSDK

    Thanks for the comments.