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. Calendar

Hi people,
I have o develop somethings in a android calendar to works with events in
the calendar, but someone sad to me that the informations have to be synch
with the blur account and it isnt recorded just in the phone.
Someone knows how the calendar works?? or someone knows how i can
communicate with the caledar events??

thanks
Regards

Rafael Sexta

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

2. ALSA: Unable to attach mixer to device AndroidPlayback

Hi,

I added external/alsa-lib, external/alsa-utils, hardware/alsa_sound
from git to my android build tree.

Changed BoardConfig.mk as below,
  BOARD_USES_GENERIC_AUDIO := false
  BOARD_USES_ALSA_AUDIO := true
  BUILD_WITH_ALSA_UTILS := true

Added asound.conf to (my_target)/system/etc.
------------------------------------
# #
# # Mixer devices
# #
ctl.AndroidPlayback {
        type hw
        card 0
}
ctl.AndroidRecord {
        type hw
        card 0
}

# #
# # Playback devices
# #
pcm.AndroidPlayback {
:
:
------------------------------------

Build success but I got the following error when run my target board:
-----------------------------------------
E/AudioHardwareALSA( 1774): Unable to attach mixer to device
AndroidPlayback: No
 such file or
directory
E/AudioHardwareALSA( 1774): Unable to attach mixer to device default:
No such fi
le or
directory
E/AudioHardwareALSA( 1774): Unable to attach mixer to device
AndroidRecord: No s
uch file or
directory
E/AudioHardwareALSA( 1774): Unable to attach mixer to device default:
No such fi
le or
directory
W/AudioSystem( 1670): AudioFlinger not published,
waiting...
I/ServiceManager( 1670): Waiting for sevice
media.audio_flinger...
I/ServiceManager( 1670): Waiting for sevice
media.audio_flinger...
I/ServiceManager( 1670): Waiting for sevice
media.audio_flinger...
I/ServiceManager( 1670): Waiting for sevice
media.audio_flinger...
-----------------------------------------

I can see my alsa device "cat /proc/asound/cards",
but "alsa_aplay -l"  said
aplay: device_list:217: no soundcards found...


Can anyone give me some suggestion?
Thank in advance.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. OpenGL 1.5 => 1.6 changes?

4. Fw: SOLD WTS Sprint HTC Hero BNIB Unlocked...

5. Not abt to push file in sdcard

6. how to install SDK in FreeBSD

7. How to display 1024x768 resolution video