how to read contacts from the phone book into our applicatio

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

how to read contacts from the phone book into our applicatio

Postby murali.lancer » Thu Sep 17, 2009 12:43 pm

hi , this is murali,android developer can u tell me anyone how to filter our contacts which were red from the phone itself into our application using contentprovider,like
Cursor C = getContentResolver().query(Contacts.People.CONTENT_URI, null, null, null,null);
startManagingCursor(C);
String[] columns = new String[] {Contacts.People.NAME};
int[] names = new int[] {R.id.row_entry};
mAdapter = new SimpleCursorAdapter(this, R.layout.contactslist, C, columns, names);


getListView().setTextFilterEnabled(true);

here this filtering is not working .can u tell me how to filter.
i want add the contact names to a list whichever i red from the phone contact book.and i need to import selected contacts only ,not all contacts which were in the phone book .if any one knows please let me know immediately .

and this should work in all the emulators (1.1,1.5with maps and 1.5without maps).Tell me if anybody knows.

and this is my email:murali.lancer@gmail.com
murali.lancer
Developer
Developer
 
Posts: 37
Joined: Mon Jul 13, 2009 10:37 am
Location: banglore

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 2 guests