Stop an intent after a redirection to setting menu
问题 I'm currently developing an app which uses GPS location on googleMaps view. I check if GPS feature is activated, and if not I redirect the user to the setting menu. If I click on Back button (by activating or not the GPS) I come back to my app - works fine If I click on Home button, and then relaunch my app, I am directly redirected to the GPS setting menu => my intent is still on. The problem is that I do not know when kill this intent. Here is the incriminated part of my code: Button