Abhi
Abhi

Reputation: 5561

how can we open the android contact activity programatically?

Can you please tell me how can i open the android inbuilt View Contact Activity Programatically.

I am having a list of contacts in my activity and i want to show the contact details on the selection of list Item, so i basically want to know to which android activity i should send the intent in order to open that activity.

Thanks in Advance.

Upvotes: 2

Views: 3354

Answers (2)

Valentin Rocher
Valentin Rocher

Reputation: 11669

Use the ACTION_VIEW action in your intent, with the content://contacts/people/1 URI (see javadoc of Intent for more details)

Upvotes: 6

Benny Skogberg
Benny Skogberg

Reputation: 10681

If you want to reach Contacts in Android, you probably want to read on in the Contacts class.

Upvotes: 1

Related Questions