Thank you Dmitri for the code. I've reviewed it and don't see any
interaction with the AccountManager.

One of the problem with SDK 2.0 is that pickup contacts is condition by
having a user login with a proper account.

My application crashes under the emulator because I cannot profile a Gmail
account for instance from which to browse  the phonebook.

There seem to be a new AccountManager APIs. Can you or anybody highlight how
this API works. For instance, when Starting an activity to pick up a
contact, an app would want to make sure that the user has picked up an
account and logged to it (if not, defaulting to the SIm contact list seems
appropriate).

Would it be possible for you to update your very good businesscardacitivity
to reflect this ?

Thanks,





On Tue, Nov 3, 2009 at 1:44 PM, Dmitri Plotnikov <[email protected]>wrote:

> I just published some sample code illustrating this use of both legacy and
> new Contacts APIs in the same app.  See
> http://code.google.com/p/android-business-card
>
> Cheers,
> - Dmitri
>
>
> On Mon, Nov 2, 2009 at 9:31 AM, Mark Murphy <[email protected]>wrote:
>
>> jarkman wrote:
>> > int sdkVersion = Integer.parseInt(Build.VERSION.SDK);
>>
>> Note that if you are using API version 4 (1.6 and newer), there is
>> Build.VERSION.SDK_INT, which already converts this to an integer.
>>
>> If you are still using API version 3, you'll need to parse the String as
>> shown above.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://twitter.com/commonsguy
>>
>> Android 1.6 Programming Books: http://commonsware.com/books
>>
>> --
>> 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]<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

Reply via email to