My issue is not code related, but has started to happen after a code testing.
I followed some examples and set the intent to b triggered if the gps was not on.
On my tablet i have a "power strip widget" which has 5 functions: bluetooth toggle, wifi toggle, gps toggle,, sync toggle and luminosity toggle.
Before using my testing code, hitting the gps toggle would do just that, without redirecting me to the gps settings screen, which is what it has started to happen now.