I made a simple contact list app where user can save name and mobile number of person.User can also call the saved number by using this app.My problem is when making call number is shown,But name is not shown. Can anyone know,How can I show the name along with the number when making call to someone from my custom contact list app???
here is my few part of my code
c.setOnClickListener(new View.OnClickListener() { public void onClick(View v) {
Toast.makeText(Showdetail1.this, "call button clicked :"+contact.get_mobile(),
Toast.LENGTH_LONG).show();
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:"+contact.get_mobile()));
//change the number
//callIntent.putExtra("com.android.phone.extra.slot", 0); //For sim 1
startActivity(callIntent);
}
});