I use intent to go to next activity.
Intent intent = new Intent(g.currentActivity, Activity2.class);
intent.putExtra("Name", edtNameInput);
intent.putExtra("Family", edtFamilyInput);
intent.putExtra("Age", edtAgeInput);
g.currentActivity.startActivity(intent);
but when I leave the texts empty that I provided in the xml, the app crashed. How can I solve it? thank you.
This is the Logcat error.