views:

21

answers:

0

Hi guys!

How can i put a URL into the More -> Website part of the contact info?

I was trying using this code:

    Log.v(TAG, "twitter screen: " + screenName);
    values.put(ContactsContract.CommonDataKinds.Website.TYPE, ContactsContract.CommonDataKinds.Website.TYPE_HOMEPAGE);
    values.put(ContactsContract.CommonDataKinds.Website.URL, "http://twitter.com/" + screenName);
    values.put(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.Website.CONTENT_ITEM_TYPE);

But it doesnt work! :(

My application already updates the contact photo, so the main code to insert the URL is the same!

Thanks