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 8004785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:01:07+00:00 2026-06-04T17:01:07+00:00

I’m running into a couple of problems getting started with Actionbar Sherlock 4.0. I

  • 0

I’m running into a couple of problems getting started with Actionbar Sherlock 4.0. I followed the steps in http://www.youtube.com/watch?feature=player_embedded&v=4GJ6yY1lNNY which seems very clear, but I can’t get it to build cleanly.

The first problem relates to my Activity’s overrides of onCreateOptionsMenu() and onOptionsItemSelected(). I understand from Unable to override onCreateOptionsMenu in ListFragment that the imports need to be changed from

import android.view.Menu;
import android.view.MenuItem;

to

import android.support.v4.view.Menu;
import android.support.v4.view.MenuItem;

but Eclipse is not picking up the new Menu and MenuItem definitions, even though I’ve put android-support-v4.jar into my project’s libs directory. Any ideas why this isn’t working?

Second, the set up tutorial says it’s OK to build Actionbar Sherlock using Android SDK 4.0, … but I also saw that both Actionbar Sherlock and your project must be compiled with Android SDK 3.2 for proper support (in use ActionBarSherlock library, error after use sherlock as library). Can anyone clarify if the older SDK is in fact required?

Many 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-06-04T17:01:08+00:00Added an answer on June 4, 2026 at 5:01 pm

    I understand from Imposssible to override onCreateOptionsMenu in ListFragment that the imports need to be changed

    Yes, but there are ActionBarSherlock versions of those classes that you should be using, not the Android Support package ones:

    import com.actionbarsherlock.view.Menu;
    import com.actionbarsherlock.view.MenuInflater;
    import com.actionbarsherlock.view.MenuItem;
    

    but Eclipse is not picking up the new Menu and MenuItem definitions, even though I’ve put android-support-v4.jar into my project’s libs directory

    You should be getting the Android Support package from the ActionBarSherlock library project.

    Can anyone clarify if the older SDK is in fact required?

    No, you need to set your build target to Android 4.0 or higher. The comment you see on that question was for an earlier version of ActionBarSherlock.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a French site that I want to parse, but am running into
I am currently running into a problem where an element is coming back from
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
That's pretty much it. I'm using Nokogiri to scrape a web page what has

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.