Android Studio Edit Button
Hi, I'm creating a phone directory app that contains two Activities The first should allow the user to enter information for a contact with name, telephone number, address, email address (Everything is done and runs perfect). And the second Activity should show up displaying all the information about the contact(also too, everything is perfect). BUT On this second Activity, the user should be allowed to edit the contact information. Add a button for editing the information. Here is where I need help. Creating this button for editing. Idk how to do it. Thanks in advance PLSS help . Two people help me on one discuss. Thanks to those people ;). but I'm still don't get it Main Activity public class MainActivity extends AppCompatActivity { private Button addContactButton; private EditText etNameEditText; private EditText etPhoneEditText; private EditText etAddressEditText; private EditText etEmailEditText; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); etNameEditText = (EditText) findViewById(R.id.etNameEditText); etPhoneEditText = (EditText) findViewById(R.id.etPhoneEditText); etAddressEditText = (EditText) findViewById(R.id.etAddressEditText); etEmailEditText = (EditText) findViewById(R.id.etEmailEditText); addContactButton = (Button) findViewById(R.id.addContactButton); addContactButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { String name = etNameEditText.getText().toString(); int phone = Integer.parseInt(etPhoneEditText.getText().toString()); String address = etAddressEditText.getText().toString(); String email = etEmailEditText.getText().toString(); Intent intent = new Intent(MainActivity.this, ActivityList.class); int