Choosing the right API Level for my android application

前端 未结 6 606
渐次进展
渐次进展 2021-01-30 16:19

I currently have a application targeted at android 2.3 (api level 10), but went thinking that probably people using android 2.1/2.2 or older won\'t even be able to see

6条回答
  •  忘了有多久
    2021-01-30 17:19

    It is good to look at backward compatibility and in general, you should compile your application against the lowest possible version of the platform that your application can support.

    You can determine the lowest possible platform version by compiling the application against successively lower build targets. After you determine the lowest version, you should create an AVD using the corresponding platform version (and API Level) and fully test your application. Make sure to declare a android:minSdkVersion attribute in the application's manifest and set its value to the API Level of the platform version. Good luck!

提交回复
热议问题