1
I know I can use the AlertDialog
for this, but without creating button, only when the user is pressing the back to exit have appear an alert? Like, when it comes out (it involves the Android system in the part it does alone) it would be a "Finish" that Android understands and taking from it create arguments to be sure even it will come out?
Obs.: The intention was for onDestroy() to stop the stream, only when closing the application, I was going to put inside this type of argument. Not to stop when you just leave class.
The intention was for onDestroy() to stop the stream, only when closing the application, I was going to put inside this type of argument. Not to stop when you just leave class.
– Kauan Kubaski