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

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

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
ViewContact(11201): No activity found for intent: Intent
{ act=android.intent.action.VIEW dat=content://
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
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,



Other Threads

1. is video recording supported on 1.5pre?

i have here an ADP1 with a Haykuro ROM in it. mostly it seems to work fine.

however, on calling setVideoEncoder(MediaRecorder.VideoEncoder.H264) 
however, i get app death with the following stack trace -

04-20 18:17:48.979: ERROR/AndroidRuntime(671): 
java.lang.RuntimeException: setVideoEncoder failed.
18:17:48.979: ERROR/AndroidRuntime(671):     at Method)
18:17:48.979: ERROR/AndroidRuntime(671):     at
18:17:48.979: ERROR/AndroidRuntime(671):     at 
18:17:48.979: ERROR/AndroidRuntime(671):     at 

of course, it would be absolutely stellar if the error message 
explained just a little as to *WHY* the call failed.

should i hold off trying to record video for now?

(incidentally, it now seems like the phone won't launch my app at all 
now. attempts result in an immediate hang, with no UI at all. even a 
reboot doesn't free it up. what could cause this?)



2. Why RIL uses Local socket instead of binder ipc?

The communication between GSM stack and RIL daemon is done using Local
unix socket instead of Binder ipc.

Why was it done like that?
Are there any exceptions to when one can use Binder based ipc?



3. u-law PCM audio compression supported in 1.5?

4. Recording audio with 1.5 SDK

5. Views, ListViews and Adapters

6. New application - testing help wanted

7. How do I respond to a trackball press