Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Posts: 52
Registered: ‎05-31-2012
My Device: Not Specified
My Carrier: Airtel

Code to open phone contacts or address book



I am using my android code to open phone book contacs. but it opens a device page with options books, camera, documents, downloads etc.


code snipett.


Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType(ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE);
startActivityForResult(intent, 1);


Regular Contributor
Posts: 50
Registered: ‎03-27-2014
My Device: Z10
My Carrier: Docomo

Re: Code to open phone contacts or address book

May be its due to updated version of syntax in IDEs