With a button click how can we enable and disable GPS programmatically.
When we click the button for the first time we should enable the GPS , on second click on the same button we should disable the GPS
I searched for the related threads but I didn't find any solution
Please share some related links/code
Any help is always appreciated, Thanks