I am getting an exception with action "init variable location"
when I'm in places without GPS reception
Is it should be that way?
log
----
.02.2016 15:11:48.629 [car speed off] Start executing action 'Init Variable Location: new location into location using GPS, Timeout 1m'
28.02.2016 15:12:48.633 [car speed off] Action 'Init Variable Location: new location into location using GPS, Timeout 1m' Timeout while getting location
28.02.2016 15:12:48.643 [car speed off] End executing action 'Init Variable Location: new location into location using GPS, Timeout 1m' and exception Timeout while getting location
28.02.2016 15:12:48.708 [car speed off] Flow ends execution due to errors
28.02.2016 15:12:48.709 [car speed off] Error:
ch.gridvision.ppam.androidautomagiclib.util.p: Timeout while getting location
at ch.gridvision.ppam.androidautomagic.c.a.cf$1.a(SourceFile:251)
at ch.gridvision.ppam.androidautomagic.c.a.cf$1.a(SourceFile:158)
at ch.gridvision.ppam.androidautomagic.c.a.cf$1$1.run(SourceFile:167)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5375)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:117)
problem - init variable location
Moderator: Martin
Re: problem - init variable location
Hi,
That's correct. The action is configured to initialize the location using GPS so it will time out when no GPS location can be acquired after one minute.
You could either increase the duration of the timeout in the action or catch the exception and fetch the location using another method.
To do the latter, you can add another action Init Variable Location with a network provider, connect the first action with the new one, select the connection between the two and switch to Exception.
The second init-location-action will only be executed when the first one fails with an error.
Regards,
Martin
That's correct. The action is configured to initialize the location using GPS so it will time out when no GPS location can be acquired after one minute.
You could either increase the duration of the timeout in the action or catch the exception and fetch the location using another method.
To do the latter, you can add another action Init Variable Location with a network provider, connect the first action with the new one, select the connection between the two and switch to Exception.
The second init-location-action will only be executed when the first one fails with an error.
Regards,
Martin