Displaying Contact Number and Contact Name in a custom list view
Since op asked for the solution using custom adapter i have posted the below.(from the comments) Display.java public class Display extends Activity implements OnItemClickListener{ List<String> name1 = new ArrayList<String>(); List<String> phno1 = new ArrayList<String>(); MyAdapter ma ; Button select; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.display); getAllContacts(this.getContentResolver()); ListView lv= (ListView) findViewById(R.id.lv); ma = new … Read more