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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:01:56+00:00 2026-05-18T02:01:56+00:00

Greetings all, I realize this issue has been posed before in other forms, and

  • 0

Greetings all,

I realize this issue has been posed before in other forms, and believe me, I have been searching the net for days trying to find the answer. However, I’m fairly new to Android and Java, and I need a little guidance please.

I presently have two version of my app, one for Android 1.5 and 1.6, and another for 2.0 and beyond. As you probably guessed, it’s because the Contacts API is different.

I recently became aware that it was possible to combine both methods into a single app, by using dynamically loadable classes. Very cool! After days of attempts, I still haven’t been able to do it successfully… or at least, it won’t run.

I have come across 3 examples of how to do this – one by Google, called “Business Card”, another that had something to do with Spinners, and a 3rd was something someone here created. My problem is that each one seems to me to have a showstopper.

I’m using Eclipse on Windows 7. My app was first created for A1.5, so that’s the one I’m upgrading. What’s happening is that my ContactsAccessorNewApi class needs to import the ContactContracts, and according to Eclipse, that won’t work because my project was originally built without support for it. Hence, it won’t run. I’ve tried adding the android.jar for SDK level 5 into the project, but that creates a whole mess of other problems.

My code for this pat of my app is exactly like the Google example “Business Card” – so if someone could help me cross this hurdle, I’d be very grateful. I’ll be happy to post any code that you need to answer my question.

Thank you!

  • 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-18T02:01:57+00:00Added an answer on May 18, 2026 at 2:01 am

    another that had something to do with Spinners

    If you mean this sample project, that’s mine.

    I’m using Eclipse on Windows 7. My app was first created for A1.5, so that’s the one I’m upgrading. What’s happening is that my ContactsAccessorNewApi class needs to import the ContactContracts, and according to Eclipse, that won’t work because my project was originally built without support for it.

    You need to set your build target (Project Properties > Android) to be high enough that ContactsContract exists (android-5 or higher).

    So long as your android:minSdkVersion in your manifest is set to support earlier versions of Android (e.g., 3 for Android 1.5), your app will still install on older emulator AVDs and devices.

    I’ve tried adding the android.jar for SDK level 5 into the project, but that creates a whole mess of other problems.

    Yeah, don’t do that.

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

Sidebar

Related Questions

Greetings all, I've been told by co-workers that the GET method is different in
Greetings all, I load set of images and generate volume data.I save this volume
greetings all i have an application which are made with Spring framework and deployed
greetings all I have a post method in a controller, which redirects to a
Greetings All, I need to optimize a RegEx I am using to parse template
Greetings all, Is there any widget to separate two QWidgets and also give full
Greetings all Currently working on assessing a project, and wondered if there was a
greetings all i want to detect dynamically if the application is under local environment
Greetings, Being new to jQuery's syntax, I find myself being a bit thrown off

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.