How to change Theme dynamically in Android for Different level of API
问题 in application i have set the android:minSdkVersion="8" and android:targetSdkVersion="19" now i want to change the theme of the application depending upon the android version. like if api level is 8 this Datepicker should appear And if the level is above 11 Datepicker should appear 回答1: try with this dude :) int currentapiVersion = android.os.Build.VERSION.SDK_INT; System.out.println("mdpi current version is =="+ currentapiVersion); if ( currentapiVersion < 11) { // your condition code for