[Solved] How to set back key action on Android


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

solved How to set back key action on Android