[Solved] How to set back key action on Android

[ad_1]

I’m a bit confused by the hierarchy but either way this is what you’re looking for if you want to clear any previous activities:
Clearing Activity Backstack

Otherwise call finish() on the Activity you want to close before changing. That will clear the EditText

3

[ad_2]

solved How to set back key action on Android