Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6143187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:29:26+00:00 2026-05-23T18:29:26+00:00

I was reading Using the Action Bar and it says, … if you want

  • 0

I was reading Using the Action Bar and it says, “… if you want to use Action Bar APIs, such as to add tabs or modify Action Bar styles, you need to set the android:minSdkVersion to ’11’, so you can access the ActionBar class.” But, in the I/O project, the Manifest has ‘7’ as the minSdkVersion. How are they able to do the themes and tabs? I’m having trouble following what they’re doing.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:29:26+00:00Added an answer on May 23, 2026 at 6:29 pm

    I think the important code to look at is in ActivityHelper and ActivityHelperHoneycomb. Basically they’re setting android:targetSdkVersion="11" and android:minSdkVersion="7", then selectively calling the new ActionBar APIs on Honeycomb (or higher) and their own custom action bar implementation pre-Honeycomb.

    If you don’t already have action bar code for pre-Honeycomb, there’s a nice project called ActionBarSherlock which allows you to simply use the ActionBar API and have it work on pre-Honeycomb (just change some imports).

    NOTE: If you decide to use ActionBarSherlock and you’ve upgraded your environment to use the newly released API level 13r1 or 12r2 code make sure to use version 3.0.3 or higher (more info here).

    EDIT: A little more background to better answer your question. Setting android:targetSdkVersion="11" is enough to give you access to the ActionBar class. Setting android:targetSdkVersion="7" allows the app to run on pre-honeycomb devices, but calling ActionBar code from them would result in a NoClassDefFoundError (or maybe NoSuchMethodError?).

    To avoid that, they’re using ActivityHelper for API levels < 11 and ActivityHelperHoneycomb on API levels >= 11. ActivityHelper#createInstance(Activity) is where they decide which to use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been reading that using HibernateDaoSupport isn't a good idea, so I need
I am just getting started using Spring and am currently reading Spring in Action
I am using reading the documentation for app domains in .net 3.5 and came
Hi i am reading inbox using service but i m getting null pointer exception
I'm reading a file using bufferedreader, so lets say i have line = br.readLine();
I am reading one file using ruby in which I have written regexp in
I'm designing a news-reading app and using the NavigateToString() of a webbrowser to show
I have .zip file which contain csv data. I am reading .zip file using
Using Windows So I'm reading from a binary file a list of unsigned int
I'm using Qt C++ and am reading in an XML file for data. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.