Re: [android-developers] Google contact name fetch

2011-08-09 Thread Appaholics
Do you get an error message in the LogCat? If yes post it, if no get one. On Tue, Aug 9, 2011 at 3:24 PM, Goutom wrote: > Can any1 check these two lines: > > >String where = > ContactsContract.CommonDataKinds.StructuredName.CONTACT_ID + " = ?" ; > //problem may be here > String[]

Re: [android-developers] Google contact name fetch

2011-08-09 Thread Goutom
Can any1 check these two lines: String where = ContactsContract.CommonDataKinds.StructuredName.CONTACT_ID + " = ?" ; //problem may be here String[] whereParameters = new String[]{id}; //problem may be here Cursor contacts = contentresolver.query(ContactsContract.Data.CON

Re: [android-developers] Google contact name fetch

2011-08-08 Thread TreKing
On Mon, Aug 8, 2011 at 5:38 PM, Goutom wrote: > I dont understand the error in logcat. Letting people know what that error is would help. - TreKing

[android-developers] Google contact name fetch

2011-08-08 Thread Goutom
Hi All Can any one check the code plz. where is my problem? I want to fetch name of a contact by its id.I am new to android.I dont understand the error in logcat. public void Get_Contact_Name(String id) { // "id" is the contact id which I am fetching from another method. String[]

[android-developers] Google contact name fetch

2011-08-06 Thread Goutom
I want to fetch name of a contact by its id.My code as below: public void Get_Contact_Name(String id) { String[] projection = new String[] {ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME, ContactsContract.CommonDataKinds.StructuredName.FAMILY_NAME, Contact