| TD valign= "Top" background= "file:///C:/Users/ADMINI~1/AppData/Local/Temp/Wiz/ B2b224a1-b1f1-480e-9557-8d18393265ba_5_files/_line.gif "align=" left "style=" border-collapse:collapse; border:0px; line-height:30px; padding:0px "" Example: using Acionbar in less than API 15 is a direct crash and needs to be included in version compatibility detection: 1, first check the device's compiled version Build.VERSION.SDK_ The int constant represents the version number of the Android device. You can compare this constant to a constant that represents the honeycomb version. (The version number list can refer to page http://developer.android.com/reference/android/os/Build.VERSION_CODES.html.) Now the ActionBar code will be called only if the app is running on a honeycomb or later device. But the program will still crash 2, prohibit lint hint compatibility problem Unfortunately, although we have dealt with compatibility issues, but Android Lint is not known, it must be expressly forbidden to prompt compatibility issues. As shown in the code, add the following annotations before the OnCreate (Bundle) Implementation method.
  |
Android version compatible resolution