You are on page 1of 1

ENVIAR PARAMETROS DE UN ACTIVITY A OTRO ACTIVITY

public void enviar(View view) {


Intent miintent=new Intent(MainActivity.this,MensajeActivity.class);
Bundle mibundle= new Bundle();
mibundle.putString("nombre",txtnombre.getText().toString());
miintent.putExtras(mibundle);
startActivity(miintent);
}

You might also like