how to go back to another activity im android studio' code example
Example: kotlin return to previous activity
if you use fragment u should use
getActivity().onBackPressed();
if you use single activity u can use
finish();
if you use fragment u should use
getActivity().onBackPressed();
if you use single activity u can use
finish();