Closed GoogleCodeExporter closed 9 years ago
That is not possible, this is an android limitation. No application can aquire
the right to turn on the gps. The user has to turn it on manually (same for 3G).
Original comment by chm.duquesne
on 7 Oct 2010 at 6:46
Not true :)
Tasker for Android does this quite nicely. I can setup Tasker to start the GPS
when TalkMyPhone starts and turn it off afterwards. Tasker is a normal Android
app.
If you decide not to implement, that's fine, but it is possible.
Original comment by marius.marais
on 7 Oct 2010 at 7:53
I was not aware of this.
http://stackoverflow.com/questions/1051649/how-to-programmatically-enable-gps-in
-android-cupcake
http://www.mail-archive.com/android-developers@googlegroups.com/msg47659.html
I don't know how the Tasker developer does this. Any information about this is
welcome.
Original comment by chm.duquesne
on 7 Oct 2010 at 8:30
Hmm, it seems you are right, sorry :)
I think Tasker is probably using an internal API. I've been using it quite
happily with 2.1 (HTC Legend) to turn on the GPS when maps starts up, etc.
I'll keep looking though.
Original comment by marius.marais
on 7 Oct 2010 at 9:31
Original issue reported on code.google.com by
marius.marais
on 7 Oct 2010 at 6:17