I am creating a control app for the sound systems in place in certain areas like bars/clubs/events ect...
I need my app so that lets say a manager closes the android tablet but doesn't fully close the app i am building, then it will still re-start the app anyway as if she had? so when the next person who picks it up which might not be a manager gets taken back to the first activity (log in page) - - - (for log in / security purposes)
I have seen a few different ways on here but found they either dont work or caused memory leaks...
Any advice on doing this would be great, thank you!
The best way to do this is to detct when the app goes in background so when the current activity is restart you can call your disconnect function and go to the connection Activity.
To detect when the app go in background, I used the solution explained here
I personaly took the answer of "d60402" So you can choose the timer after which the app is considered in background.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments