Continuing the theme " How to make an ActionBar? ". I did everything as advised there. And now I wonder if it is possible to do something so that if the device does not support this SDK level (in this case 11), then simply do not display the ActionBar or display it somehow differently, as they did in earlier versions. And now it is impossible to start the application on such devices at all.

PS Add to manifest

 <uses-sdk android:minSdkVersion="11" android:targetSdkVersion="11"/> 

    3 answers 3

    Yes you can. It is necessary to organize branching in the code by the value of the variable android.os.Build.VERSION.SDK_INT , first naturally setting minSdkVersion to something like 4-6

      Can. See this example from the official documentation. If you have the desire and opportunity, you can still look at ActionBarSherlock . The truth itself has not yet used it, but heard good reviews from working people.

        Re-create the project under version 1.5 and will run everywhere