Is there a way to create an intent other than (THIS, myActivity.class)?
I’m asking because I’d like to create an intent so that when the user goes to the other activity and presses ‘back’ button, he goes back to a activity other than the one where I created the intent.
Such as:
A creates B, B creates C, user presses ‘back’ on activity C, goes back to A.
I’ve tried new Intent(myOtherActivity.class, myNewActivity.class) but it doesn’t seem to work.
There are two things is this question:
I hope this clears somethings up! if not comment below.