示例#1
0
 @Override
 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
   Contact c = contacts.get(position);
   Intent i = new Intent(this, ProfileActivity.class);
   i.putExtra(Contact.NAME, c.getName());
   i.putExtra(Contact.PHONE, c.getPhone());
   i.putExtra(Contact.EMAIL, c.getEmail());
   startActivity(i);
 }
示例#2
0
 private HashMap<String, String> createMapFromContact(Contact p) {
   HashMap<String, String> person = new HashMap<String, String>();
   person.put("full_name", p.getName());
   person.put("contact", p.getPhone() + ", " + p.getEmail());
   return person;
 }