Click here to Skip to main content
15,890,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi ,
I wrote a peace piece of code in Eclipse , but it didn't work.

I wanted to show Contact list in my app, so I used this code.

Java
Intent i=new Intent(android.content.Intent.ACTION_VIEW,
                      Uri.parse("content://contacts"));
startActivity(i);


When I use this code I get this error :
No Activity found to handle Intent ... 


Can any one help me?
Posted
Updated 15-Sep-14 20:19pm
v6
Comments
Mohibur Rashid 16-Sep-14 2:42am    
I am new by myself. I saw one of this, may help. http://forum.xda-developers.com/showthread.php?t=609561

If you are trying to retrieve phone list, you can follow this link.
http://developer.android.com/training/contacts-provider/retrieve-names.html

1 solution

Java
Uri.parse("content://com.android.contacts/contacts")
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900