How can I make sure my Android Application will run in lower and higher versions?

后端 未结 3 1184
-上瘾入骨i
-上瘾入骨i 2021-01-23 09:29

I am building an Android application in version 2.3.3. Will this run in lower versions and in higher versions? What do I need to do to make this happen?

3条回答
  •  滥情空心
    2021-01-23 09:53

    You are asking about build version in which case the highest version is always the best possible version to use. By setting it to the highest build version it will not cause any problems with lower versions. However, sdkmin and sdkmax set in AndroidManifest.xml are a different issue. Those are used by Google Play to filter out devices who are between the two ranges which would matter.

    Summary : It is always best to build your application with the highest android version possible and then setting the sdkmin and sdkmax depending on what the application uses.

    Take a look at this article for a more in-depth version of what I summarized.

    http://developer.android.com/guide/topics/manifest/uses-sdk-element.html

提交回复
热议问题