Hello,Everyone
In the Contacts application,if we add a contact people and set a
home address for him ,then if we click the address item in the
contacts list,the google map application will be started automatically
and show the address infomation.
I learn the source code of Contacts application ,only find that
/*********/
final long id = methodsCursor.getLong
(METHODS_ID_COLUMN);
final Uri uri = ContentUris.withAppendedId(methodsUri,
id);
/*********/
case Contacts.KIND_POSTAL:
entry.label = ContactMethods.getDisplayLabel
(this, kind, type, label)
.toString();
entry.data = data;
entry.maxLines = 4;
entry.intent = new Intent(Intent.ACTION_VIEW,
uri);
entry.actionIcon = R.drawable.sym_action_map;
mPostalEntries.add(entry);
break;
the intent could start the google map,but I want to know how they work?
The intent only contains a contact uri,and nothing about google map
infomation in the Contacts application I've found.So how the Contacts
and google map communicate each other?Thank you very much.
Best Regards
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---