I can't really show anything here I think. It's not a problem in my code I think.
What I mean is when I'm running my program directly from my android device, or when it's connected to the USB on my PC through android studio in debug mode, or regular running in all cases when my program is running and then I open a new app on my phone or if I just move to the whatsapp to type something when I want to get back to my program I see it was close. And I need to run the program over again.
How can I keep my program to be running all the time in the background so I can get back to it and no need to run it over again?