For now this should just allow a user to end a student's session and just return to the choose student screen. Look into Intent.FLAG_ACTIVITY_CLEAR_TOP for clearing the application stack. Example given:
Intent intent = new Intent(this, nextClass);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
Later, this button on the choose student screen will also navigate to the teacher section, but that will be later.
For now this should just allow a user to end a student's session and just return to the choose student screen. Look into
Intent.FLAG_ACTIVITY_CLEAR_TOP
for clearing the application stack. Example given:Later, this button on the choose student screen will also navigate to the teacher section, but that will be later.