问题
I am a newbie to android and I was following the tutorial on android.developer.com,Where a new Activity creation adds an activity which extends ActionBarActivity by default,but When i create a new Activity it extends Activity class by default
I have also tried to set the Min API to 4.1 Jelly Bean and target to 4.4 as ActionBarActivity is available in later API but it didn't work,I have downloaded the Adt bundle from the site
回答1:
When you create new project in eclipse, you should select min required SDK below 14 to extend from ActionBarActivity. Check this: android adt bundle automatically extending ActionBarActivity and adding fragments and more stuff?
来源:https://stackoverflow.com/questions/22578807/create-new-activity-adds-an-activity-which-extends-activity-class-instead-of-act