• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Location Task not working properly.

Akedos

Lurker
Alright, I'm having an issue with a location task not working properly. I've tried a bunch of stuff to get it to work and I feel that it is likely a root issue, but not certain.

Trigger:
Battery Level 0-5%

Task:

Secure Settings: Configuration - GPS Enabled
Net: Wifi - Set On
Wait - 30 Seconds
Get Location: Source - Any, Timeout 240 seconds
Send SMS: To - (whoever)
Message: "It is %DATE at %TIME. My phone is located at: %LOC Battery Level %BATT"

Stop Location: Any
Secure Settings: GPS Disabled
Net: Wifi - Set Off


The phone is rooted. It's a Razr Maxx. I have Helper installed with Secure Settings. I have GPS checked. The issue I get is the text that is sent looks like this:

"It is 20-03-13 at 17.59. My phone is located at: %LOC Battery Level 5"

Why isn't it getting a location with all that time available?
 
Try testing with GPS enabled and without using Secure Settings- %LOC is the default value of the variable when not populated so it looks as though the enabling of GPS is what's failing.
 
Profile:
Event>Phone>Received Text - type:SMS, Sender:BLANK, Content:i9300 (my keyword)

Tasks:
1. Set GPS
2. Wait 15 seconds
3. Get Location - Source:Any, Timeout:120
4. Variable Set - Name:%LOCATION, To:%LOCN, If:%LOC Ins't Set
5. Variable Set - Name %LOCATION, To:%LOC, If:%LOC Is Set
6. HTTP Get - Server Port: is.gd/api.php?longurl=http://maps.google.com/maps?q=%LOCATION, Timeout:60, MIME: Text/Plain
7. Send SMS - Number: %SMSRF, Message: It is %TIME on %DATE. Your phone is located at %HTTPD (select for map) and the battery has %BATT percent remaining.
8. Variable Clear - Name:%LOCATION
9. GPS OFF
 
Back
Top Bottom