Getting error in integrating Contacts APIs in Android 1.6 and 2.0

Posted by dhaiwat on Stack Overflow See other posts from Stack Overflow or by dhaiwat
Published on 2010-05-13T05:09:25Z Indexed on 2010/05/13 5:14 UTC
Read the original article Hit count: 237

Filed under:

Hi All,

I have seen the BusinessCard example provide in Android examples.

I am using ContactAccessor abstract class to seperate out the SDK versions.

My code is running fine for 2.0 onwards, but when I am trying to build the code in Adnroid 1.6 I am getting the following errors:

  1. Build.VERSION_CODES.ECLAIR is not resolved.
  2. Getting errors in the whole class in which I have used Contacts APIs from 2.0 (say in class ContactAccessorSdk5.java).

How to resolve these issues?

I want to run my App on both the versions.

Please help me.

Regards,

Dhaiwat Bhavsar.

© Stack Overflow or respective owner

Related posts about android