In my app the activity is crashing when the it is trying to read some text from an editText and displaying it onto another activity.
Here is the code that is getting the text from the editText:
Intent intent = new Intent(this, CurrentHomework.class);
EditText editText = (EditText) findViewById(R.id.homeDue);
String message = editText.getText().toString();
intent.putExtra(EXTRA_MESSAGE, message);
Here is the code that is getting the text from the string and putting it on an textView:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = getIntent();
String message = intent.getStringExtra(AddNewHomework.EXTRA_MESSAGE);
TextView textView = (TextView) findViewById(R.id.textView99);
textView.setText(message);