Writing backwards compatible Android code

前端 未结 3 1078
囚心锁ツ
囚心锁ツ 2020-12-04 13:12

I\'m writing an app that uses some functions and classes only available in the latest API level - 16, but I want it to run with no errors on devices with API level 15.

3条回答
  •  猫巷女王i
    2020-12-04 13:52

    1. You have Target Api and Minimum SDK attributes to define what kind of device are you targeting and which will be the least Api version on which it will run.

    2. Target Api will be the one on which the App runs with Full features, whereas Minimum SDK will make the App run on it with some Compromises as there can be chances that the lower API version dont have the features which are in its higher versions.

提交回复
热议问题