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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:17:11+00:00 2026-06-02T05:17:11+00:00

I have been struggling with a problem in the past few days. I really

  • 0

I have been struggling with a problem in the past few days. I really appreciate your help!

When I build/run the sample “ActionBarCompat” with target API level 14. Everything works great.

Then I switched to target API level 8(after all, this is meant to be used in old device with old api levels), it looks like without manually commenting out a lot of code that specifically invokes support API level 8 and up(e.g. android.R.id.home, Build.VERSION_CODES.HONEYCOMB), the sample App won’t build at all.

Does that mean that an app must have multiple source code versions in order to run in different api levels? Ideally, one set of source code can be used for devices of all API levels.

Thanks in advance!

humblelearner

  • 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-02T05:17:12+00:00Added an answer on June 2, 2026 at 5:17 am

    The code that they provided should run on api levels 4 through 15. I can verify that it runs on api 8 and api 15 as I have the same apk running on a Droid Incredible running froyo(2.2) and a Galaxy Nexus running ICS(4.0.3). You can leave the targetsdkversion set to 14.

    Make sure you have the support package found in the sdk under /extras/android/support/v4/android-support-v4.jar added to the project. Copy that file to the /libs directory, right-click it and select Build Path > Add to Build Path. Full instructions are at http://developer.android.com/sdk/compatibility-library.html

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

Sidebar

Related Questions

I have been struggling with this problem for a few days now and I
So, for the past few days I have been struggling to understand how to
I have a problem that I have been struggling with for a few days
I have been struggling with a problem for the past days in a Ruby
I have been struggling for a few days trying to find out how come
I have been struggling with a problem for a couple of days now with
I have been struggling with this issue for the past couple days: I have
I have been struggling with this problem for several weeks now and would really
I've been struggling with a problem for the past couple days and haven't found
I have been struggling with this problem for a while now, so any help

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.