Adding an Intent to a Sync'd account option in a contact

by snowy_tracks » Fri, 02 Jul 2010 23:44:02 GMT


Sponsored Links
 Hey,

I am playing about with the sample code in android dev resources, the
sampleSyncAdapter.

I have it inserting a sampleSyncAdapter entry into my contact.
however, when I click on this I would like to define an activity for
it to open...

in the adb log it currently states (because  have not defined the
activity):
ViewContact(11201): No activity found for intent: Intent
{ act=android.intent.action.VIEW dat=content://com.android.contacts/
data/5045 }


Looking at the face book entry in the same contact, when I click on
that, this is the intent that is fired:
Starting activity: Intent { act=android.intent.action.VIEW
dat=content://com.android.contacts/data/2904
cmp=com.facebook.katana/.ProfileTabHostActivity }


I was wondering if anyone had any idea how/where to define an activity
to handle the click on the custom contact option, like face book
define the .ProfileTabHostActivity?

Any help appreciated,

Thanks,
Marc




--



Other Threads

1. How to add a keyboard localisation

Hello,

I've bought a HTC Magic G2 with Android 1.5 and my keyboard is AZERTY.
Living in switzerland, I use only QWERTZ keyboard, and in the Android
keyboard locale menu, i don't have switzerland or any QWERTZ locale.

I've seen in the Android 1.5 SDK there is the Swiss French
localisation. Is there any way to install this localisation on my HTC
Magic ?

Thanks for you help

--~--~---------~--~----~------------~-------~--~----~

2. Fellow Android Developers...

Android Discuss. The "water cooler" of Android discussion. Free-
wheeling discussion from ideas about the Android platform to your
announcements on other ...







Click the bellow link to continue€€€€.

***********************************************************
http://www.s1.webstarts.com/Technicalcommunication/

************************************************************

--~--~---------~--~----~------------~-------~--~----~

3. contacts is VERY SLOW after I import my 4,000+ contacts on G1 (with mobile no, notes, work phones etc)...

4. Error generating final archive: Keystore was tampered with, or password was incorrect

5. Adobe applications for G1

6. Hello, Android the book

7. Start Application when a call is received