private void updateContact(int index){
  Contact contact=contacts.get(index);
  Intent intent=new Intent(this,ViewActivity.class);
  intent.putExtra("CONTACT",contact);
  startActivity(intent);
}

private void updateContact ( int index ) { Contact contact = contacts . get ( index ) ; Intent intent = new Intent ( this , ViewActivity . class ) ; intent . putExtra ( "CONTACT" , contact ) ; startActivity ( intent ) ; }
start viewactivity to update a contact .
