The problem: MyLocationButton is enabled on Google Maps and GPS is off. When the user clicks on it, it just fails silently. This is a quite bad user interaction. I would like it to prompt the user to change GPS settings (like it actually does on google maps).
It seems i can redefine the handler for the button, but i like the waiting for user location and centering map part (and would gladly avoid rewriting it). Is there any way to catch the button failure event?
Thanks.
i think this will be solve it by checking if GPS is enabled and alert the user if it is disabled. i copied the code from this link.