Search code examples
androidandroid-activityexithomescreen

How to reopen the app from inital activity rather from last used activity in android?


I would like to reopen the app from default activity rather being called from last activity which is been used last active sometime ago.Kindly help me with a snippet to solve this issue .Thank you.


Solution

  • You could try calling finish() in the onPause() method