How do I Get contactUri using contact number?

Using "ContactPicker" I got contactUri "content://**"

But when I got contactUri using "PhoneNumberTools" that returns"content://**"![blocks (17)|690x154]


why difference?
When I use "ActivityStarter" then it works if I use ContactPicker contactUri but PhoneNumberTools contactUri not work.!
I want to get contactUri using phone number and which contactUri able to work in ActivityStarter to open that contact directly.Please help.

Content URIs are app specific.
And in this case there are two apps Contacts and Phone_Lookup.

1 Like

Thanks. Is there any way to get general contactUri from number?

I want to get contacts Uri from Contacts app using phone number. Please reply.

You already have found two ways to get contact's uri.

Not use Uri.
Use the "GetContactId" block, then use ActivityStarter:
To display:
Action: android.intent.action.VIEW
DataUri: content://contacts/people/ID

To edit:
Action: android.intent.action.EDIT
DataUri: content://contacts/people/ID

1 Like

Sir, many many thanks. Your advice solved my problem.

"GetContactId" block returns same ID for two different contacts.

Will you tell the reason please?

you might want to ask the author of the extension...


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.