There are 3 activities A, B, C.
A -> B -> C with button
A <------ C with button that close C and B?
A -> B
@Override
public void onClick(View v) {
Intent intent = new Intent(A.this, B.class);
startActivity(intent);
}
B -> C
@Override
public void onClick(View v) {
Intent intent = new Intent(B.this, C.class);
startActivity(intent);
}
B -> A
@Override
public void onClick(View v) {
finish();
}
C -> B
@Override
public void onClick(View v) {
finish();
}
How to back to A from C with button that close C and B?