Friday, 13 November 2015

Turn on GPS on rooted device through BroadcastReceiver



I am trying to turn on GPS on a SMS BroadcastReceiver on a rooted device without any dialogue box asking user to turn it on manually. Actually it is a anti-theft application project so I am turning on GPS when user is not having access to the device with the help of SMS. I am able to turn on mobile data on SMS BroadcastReceiver but not finding any solution for GPS.

I found this: https://github.com/sms2000/GPSToggler

But I am not able to figure out what to do with this code and how to implement it in my project as there is no documentation available.

I need help for turning on GPS as it is required to track the device.
I am a newbie in android development and developing only for college project.



No comments:

Post a Comment