I have developed an Android application that has certain features available from API level 5 (Android SDK 2.0) onward. Application is fully functional with开发者_Go百科out those features and they can easily be disabled.
Is it possible two publish two different versions of the application on the Market: one having target sdk 2.0 and greater and one having target sdk below 2.0?EDIT: Yes, you can. This is new.
Alternatively, you can easily detect at runtime which version of Android you're running on, and enable/disable the extra features as appropriate.
Check the value of android.os.Build.VERSION.SDK_INT
, for example.
精彩评论