I am working on this code, and get an error, the variable "textoviejo" is returned as null, I would like to know what is wrong here. Thank you
Activity 1
EditText input = (EditText) findViewById(R.id.input);
startActivityForResult(new Intent(this, Activity2.class), REQUEST_CODE_SEND);
Intent i = new Intent(this, EmoticonActivity.class);
i.putExtra("textoviejo", input.getText().toString());
Activity 2
Intent intent = new Intent();
String mensaje = intent.getStringExtra("textoviejo");
String emoticon = mensaje + ":)";
intent.putExtra(Extra.EMOTICON, emoticon);
setResult(RESULT_OK, intent);
finish();
Result in EditText = null