When I leave my application, my icon launcher is still focused (surrounded with a blue line)

175 Views Asked by At

I've been having an inconvenience when I quit my game using the libgdx frameworks Gdx.app.exit(), I return to my phone home screen but my game icon launcher is still focused (surrounded by a blue line). I would like it not to be focused anymore when I exit my game. How can I achieve this ?

Thank you

1

There are 1 best solutions below

0
On

You should check if your app is still running in background with your phone when you exit.

It's not recommended to use Gdx.app.exit(), and you should know that it's not important to create this function in your game,.. almost every Android apps don't have an exit button, it's to the user to end the task manually.

check this link to understand more: Libgdx app.exit() on Android not closing application