0

I called finish() on my MainActivity on some button click and to stop the application. but when the function is called the application is finished but another app behind my app in application stack comes to foreground.

This is not what i want. i just want to stop my app , that's it. not start some another app which is annoying for the user as he/she has not started it.

Any suggestion how to solve ?

Sagar Nayak
  • 2,138
  • 2
  • 19
  • 52

1 Answers1

0

You can try this: After called method finish(),

start the Home/Launcher Activity on Device like in this link

Community
  • 1
  • 1
justHooman
  • 3,044
  • 2
  • 17
  • 15