agro6162 / talkmyphone

Automatically exported from code.google.com/p/talkmyphone
0 stars 0 forks source link

(Optionally) Turn on GPS for where command #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Make it an option (phone settings or via message) to turn on the GPS for the 
"where" command.

Original issue reported on code.google.com by marius.marais on 7 Oct 2010 at 6:17

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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