In Activity1, I input some data like name and address. When I click the next button, there will be another input form. What I want to do is, when I click BACK, I will return to Activity1 and the data I entered there previously is shown.
HELP please :)
=============
UPDATED: Activity1
private void startActivityForResult()
    {
        TextView textname = (TextView) findViewById(R.id.username);
        TextView textaddress = (TextView) findViewById(R.id.useraddress);
        Intent intent = new Intent(this, GetInformation.class);
        //intent.putExtras(getIntent());
        intent.putExtra("username", textname.getText().toString());
        intent.putExtra("useradd", textaddress.getText().toString());
        startActivityForResult(intent, 0);
    }
    public void onActivityResult(int requestCode, int resultCode, Intent data)
    {
        TextView textname = (TextView) findViewById(R.id.username);
        TextView textaddress = (TextView) findViewById(R.id.useraddress);
        textname.setText(data.getStringExtra("returnname").toString());
        textaddress.setText(data.getStringExtra("returnadd").toString());
    }
Activity2
private void startActivityForResult()
{
    final String username;
    final String useraddress;
    Intent intent = getIntent();
    //intent.putExtras(getIntent());
    username = getIntent().getStringExtra("username");
    useraddress = getIntent().getStringExtra("useradd");
    intent.putExtra("returnname", username);
    intent.putExtra("returnadd", useraddress);
    setResult(0, intent);
}
 
     
     
    