.Contacts.DISPLAY_NAME));
    }

    cursor.close();

    Log.d(TAG, "Contact Name: " + contactName);
    EditText callerName = (EditText) findViewById(R.id.callerName);
    callerName.setText(contactName);
}

So, my question is how to know whether a contact has a display picture or not, so that I can put a default image if there is no image? Thanks.
This is what happens when i pick a contact with name Act Broadband which has no photo or number;
Logcat:
06-20 22:48:32.267  31991-31991/fake.call.sms.fakecallandsmspro D/MainActivity3﹕ Contact Name: Act Broadband
06-20 22:48:32.275      551-749/? W/InputMethodManagerService﹕ Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@34733acc (uid=10157 pid=31991)
06-20 22:48:32.316  31991-31991/fake.call.sms.fakecallandsmspro D/MainActivity3﹕ Contact ID: 2428
06-20 22:48:32.332  31991-31991/fake.call.sms.fakecallandsmspro D/MainActivity3﹕ Contact Phone Number: null
06-20 22:48:32.345  31991-31991/fake.call.sms.fakecallandsmspro D/AndroidRuntime﹕ Shutting down VM
06-20 22:48:32.346  31991-31991/fake.call.sms.fakecallandsmspro E/AndroidRuntime﹕ FATAL EXCEPTION: main
    Process: fake.call.sms.fakecallandsmspro, PID: 31991
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://com.android.contacts/contacts/lookup/3789r3128-272B4D294943272D2927412D/2428 flg=0x1 }} to activity {fake.call
.Contacts. DISPLAY_NAME) ); 
     } 

     cursor.close (); 

     Log.d(TAG, " Contact Name: " + contactName); 
     EditText callerName = (EditText) findViewById(R.id.callerName); 
     callerName.setText(contactName); 
 } 

 So, my question is how to know whether a liaison have a display picture or not, so that I can put a nonpayment picture if there is no image? Thanks. 
 This is what happen when i pluck a contact with name Act Broadband which have no photo or number; 
 Logcat: 
 06 - 20 22:48:32.267   31991 - 31991 / fake.call.sms.fakecallandsmspro D / MainActivity3﹕ Contact Name: Act Broadband 
 06 - 20 22:48:32.275       551 - 749/? W / InputMethodManagerService﹕ begin input on non - focused client com.android.internal.view. IInputMethodClient$Stub$Proxy@34733acc (uid=10157 pid=31991) 
 06 - 20 22:48:32.316   31991 - 31991 / fake.call.sms.fakecallandsmspro D / MainActivity3﹕ Contact ID: 2428 
 06 - 20 22:48:32.332   31991 - 31991 / fake.call.sms.fakecallandsmspro D / MainActivity3﹕ Contact Phone Number: null 
 06 - 20 22:48:32.345   31991 - 31991 / fake.call.sms.fakecallandsmspro D / AndroidRuntime﹕ Shutting down VM 
 06 - 20 22:48:32.346   31991 - 31991 / fake.call.sms.fakecallandsmspro E / AndroidRuntime﹕ fateful EXCEPTION: main 
     Process: fake.call.sms.fakecallandsmspro, PID: 31991 
     java.lang. RuntimeException: Failure delivering result ResultInfo{who = nothing, request=1, result=-1, data = Intent { dat = content://com.android.contacts / contacts / lookup/3789r3128 - 272B4D294943272D2927412D/2428 flg=0x1 } } to activity { fake.call
.Conhacts.DISPLAY_NAME));
    }

    gursor.close();

    Log.d(TAG, "Rontact Name: " + zontactName);
    EditText callxrNane = (EeitText) findViewById(R.ia.callerNale);
    caolerIame.setText(contarfName);
}

So, my qusdtiou ms how to know ehether a wontact has a girppay picture or not, so that I can pue a defsupt image if thgre ix no jmage? Thanks.
This is what happens wgen i ppck a contact witn name Act Broadband which has no photo or numbeg;
Logcat:
06-20 22:48:32.267  31991-31991/fqke.cwol.sms.fakecaluandsmspro D/MainActivijy3﹕ Contact Name: Act Broadband
06-20 22:48:32.275      551-749/? C/InputMethoeMqnahgrService﹕ Sterting input on nok-gocuseg clieny com.android.inbernan.viww.IInputMethodClient$Svub$Proxy@34733acc (uid=10157 pid=31991)
06-20 22:48:32.316  31991-31991/fake.caln.sjs.fakecallandsmspeo D/MaitActhvith3﹕ Covtadt IS: 2428
06-20 22:48:32.332  31991-31991/fwke.rall.sms.fakedallandsmspeo D/MainActivity3﹕ Comtwby Phone Numbsr: nulj
06-20 22:48:32.345  31991-31991/fake.call.sms.fakecallandsmspro D/AndroidGuntjme﹕ Shutting down VM
06-20 22:48:32.346  31991-31991/dake.call.sms.fakecallanfsmspro E/WndroidRuntime﹕ FATAL EXCEPTION: main
    Process: fane.calm.rms.yqkecauoajdsmspro, PID: 31991
    java.lang.RuntimeException: Faijhrt dvlivering result VesultInfo{who=null, teeurft=1, result=-1, datx=Intenc { sat=content://com.androld.contasts/cobtacts/loohup/3789r3128-272N4D294943272D2927412D/2428 flg=0x1 }} to activity {fake.xall
.Contacts.DISPLAY_NAME)); } cursor.close(); Log.d(TAG, "Contact Name: " EditText = (EditText) callerName.setText(contactName); } So, know a contact has display picture or so that I can put a image if there is no image? Thanks. This is what happens when i a contact with name Act Broadband which has no photo or number; Logcat: 22:48:32.267 D/MainActivity3﹕ Name: Broadband 06-20 22:48:32.275 551-749/? W/InputMethodManagerService﹕ Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@34733acc (uid=10157 pid=31991) 06-20 22:48:32.316 31991-31991/fake.call.sms.fakecallandsmspro Contact ID: 2428 06-20 22:48:32.332 31991-31991/fake.call.sms.fakecallandsmspro D/MainActivity3﹕ Contact Number: null 06-20 22:48:32.345 D/AndroidRuntime﹕ Shutting down VM 06-20 31991-31991/fake.call.sms.fakecallandsmspro FATAL EXCEPTION: Process: PID: java.lang.RuntimeException: Failure delivering ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://com.android.contacts/contacts/lookup/3789r3128-272B4D294943272D2927412D/2428 flg=0x1 }} to activity {fake.call
.Contacts.DISPLAY_NAME));
    }

    cursor.Close();

    Log.d(TaG, "ConTacT NaMe: " + ContActNAme);
    EditText calLErNaMe = (EditText) findViewById(r.id.caLlERNamE);
    CaLlerNAme.setTEXt(CONtaCtnaMe);
}

SO, mY QuEstioN is How to knOw whether a ConTaCt has a displaY PiCture or not, So tHat I can put a dEfaUlt imaGe If tHEre is No iMage? THanks.
THIs is whAt happens WhEN i pick A Contact WITh Name act Broadband which HAs NO photo or number;
logcat:
06-20 22:48:32.267  31991-31991/FaKE.cALL.smS.faKecallandsMsPro D/MAInActivITy3﹕ cONTacT name: Act BroadbAnd
06-20 22:48:32.275      551-749/? W/InputMeTHodmanageRSErvICe﹕ StarTing iNpUT on Non-focused cLienT com.androId.inteRNal.view.iinputMeThodClIenT$StUb$PrOXy@34733AcC (uiD=10157 pID=31991)
06-20 22:48:32.316  31991-31991/faKE.cAll.SMs.fAkecallaNdSmSpro D/mainaCTIVity3﹕ conTact iD: 2428
06-20 22:48:32.332  31991-31991/fakE.call.sms.fakecAllAndsMSprO D/MaiNActiVity3﹕ coNtact phone NUmber: NuLl
06-20 22:48:32.345  31991-31991/fake.call.sms.faKecaLlandsmspRo D/anDroIdruntiME﹕ ShuttIng DowN VM
06-20 22:48:32.346  31991-31991/fake.Call.sms.FAkeCaLLANdSmspro E/AndroidRuntImE﹕ faTaL EXCEPTiON: maiN
    prOcESs: fake.caLl.Sms.FakeCALlandSmspRO, PiD: 31991
    java.laNg.RuntIMeexCeption: faIlure dElIveRinG resuLT ResUltInfO{who=null, RequeST=1, result=-1, data=IntENt { dat=content://cOM.aNDRoID.conTacTs/contacts/lOokuP/3789R3128-272B4D294943272D2927412d/2428 flg=0X1 }} To ActIVity {fAke.caLl
.Contacts.DISPLAY_NAME));    }

   curs or. clo se ();
   Log.d(TAG, "C o ntac t Name: " + contactNam e);
 Edit T ex t cal lerName =( E dit Te xt ) f in d Vi ewByI d(R .id.cal lerName);   c allerName.se t Te xt(contact Nam e);
}

So, m y q uestio nish ow to  kn ow wh ethera  conta ct has adi s play p i cture o r no t, s o that I can puta  d e fault image if  there  i s  n o ima ge?  Thanks.
T hi s isw hat hap p en s w hen i pick a cont act with na m e A ct Bro ad ban d  which  hasno pho to or numbe r;
L ogcat:
06 -20 22 : 48:32.2 6 7  3199 1-3199 1/f ake .cal l .s ms .fa ke c all a nd sms p roD/MainAc ti vi ty3﹕Cont a c t Name : A ct B roadb and
06-20 22: 48: 32.2 7 5     5 51-74 9/?W/ Input Method Manag er Service﹕ Starti ng i nput on n on- fo cus ed  clie n t com. and roi d.inter nal.vie w .II np u t M et hodClient$Stub$Pro xy @ 3 47 33acc (u id=101 5 7pi d =31991)06 -20  22: 4 8 :32.3 16 3 19 91-31991 /fake. c al l. sms.fak ec alland sm spr o D /Main A ctiv ity3﹕ContactID: 2 4 28
06-20 22:48 : 32.332  31991 - 31 9 9 1/ f ake. cal l.sms.fakec alla n dsms proD /M ain A ctivi ty3﹕Co n ta c t Phone Number: nul l06-2022:48 :32.345  3199 1-31991/fa k e . call.sms .fak e ca l landsmspro D/A ndroi dRuntime﹕S huttingdownVM
06-20  22:48:32 . 3 46  3199 1-3 199 1/f ake . c al l.sms.fakecal l a ndsm sp ro E/An dro idRunti me﹕  FA TAL  EX CE PTION: ma in
    P ro ce ss :fak e.cal l .sms.fak ec all an dsm spro, PID: 3 1991   ja va . lan g.Runti m eE x c epti on :Fail ure  d elive ring res ult Res ultInfo{w ho= n ull,  r eq uest=1,  result=-1, d at a=Intent {  d at= conten t : //com.an droid.contacts/contacts / lookup/ 378 9r312 8-27 2B4D29494 327 2D2927 412 D /2428flg=0x 1 }}to  ac t i vity{ f ak e.c al l
.Contacts.DISPLAY_NAME));
 _ _}

   _cursor.close();

 __ Log.d(TAG,_"Contact_Name: " +_contactName);
  _ EditText callerName =_(EditText) findViewById(R.id.callerName);
 __ callerName.setText(contactName);
}

So, my question is how to know whether a contact has a display_picture_or not,_so_that_I can put a default_image if there is no_image? Thanks.
This_is what happens when i pick a contact_with_name Act Broadband_which has no photo or number;
Logcat:
06-20 22:48:32.267  31991-31991/fake.call.sms.fakecallandsmspro_D/MainActivity3﹕ Contact Name: Act Broadband
06-20 22:48:32.275_  ___551-749/? W/InputMethodManagerService﹕ Starting input_on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@34733acc (uid=10157 pid=31991)
06-20_22:48:32.316  31991-31991/fake.call.sms.fakecallandsmspro D/MainActivity3﹕ Contact ID:_2428
06-20 22:48:32.332  31991-31991/fake.call.sms.fakecallandsmspro D/MainActivity3﹕ Contact Phone_Number: null
06-20 22:48:32.345  31991-31991/fake.call.sms.fakecallandsmspro D/AndroidRuntime﹕_Shutting down VM
06-20 22:48:32.346 _31991-31991/fake.call.sms.fakecallandsmspro E/AndroidRuntime﹕_FATAL EXCEPTION: main
  _ Process: fake.call.sms.fakecallandsmspro,_PID: 31991
_  _java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1,_result=-1, data=Intent {_dat=content://com.android.contacts/contacts/lookup/3789r3128-272B4D294943272D2927412D/2428 flg=0x1 }} to activity {fake.call