ContactsContract class is not available before 2.0 (I guess). It's certainly not available on 1.5. You should try to find a different solution, that doesn't use ContactsContract for 1.5 specific phones. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com
On Fri, Nov 26, 2010 at 2:09 PM, George Moschovitis < [email protected]> wrote: > After browsing through the BusinessCard sample (http:// > developer.android.com/resources/samples/BusinessCard/index.html) > source code, I am trying to implement a simple application that is > compatible with 1.5 and 2.2 devices. > > The ContactAccessor pattern used in the sample is useful but I have a > problem. I would like to test my app in the emulator in eclipse. If I > set the target as 1.5 the eclipse reports errors for ContactsContract > and other 2.2 APIs. If I set the target to 2.2 (and the minSDK to 1.5) > I can only launch a 2.2 API emulator. > > I am in a dead end, any ideas? > > thanks in advance, > -g. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

