Is there a good way to API check on Android App?
Is there a good way to test if some API is compatible for older versions or not deprecated on newer versions than target platform, without running on开发者_JAVA百科 the device or emulator on which the OS is running?
This tutorial may help you. It shows how to gracefully remain compatible with low API levels while using features introduced in more recent API levels.
Reading the documentation. Also set your API level appropriately.
Check out this question to find the Build version of the device and use suitable if clauses before using newer APIs.
精彩评论