30/nov/2016 21:17:32 INFO: parma 30/nov/2016 21:17:32 INFO: Milano 30/nov/2016 21:17:32 INFO: https://maps.googleapis.com/maps/api/directions/json?origin=Milano&destination=parma 30/nov/2016 21:17:33 INFO: 200 30/nov/2016 21:17:33 INFO: 125 km 30/nov/2016 21:17:33 INFO: Successfully executed trigger Calcolate Distance for 1023 ms
30/nov/2016 21:18:38 INFO: parma 30/nov/2016 21:18:38 INFO: Milano 30/nov/2016 21:18:38 INFO: https://maps.googleapis.com/maps/api/directions/json?origin=Milano&destination=parma 30/nov/2016 21:18:38 INFO: Can't execute trigger Calcola Distanza on Create org.mozilla.javascript.EvaluatorException: The http request not available for this runtime (Calcola Distanza on Create.js#18) at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:77) at org.mozilla.javascript.Context.reportRuntimeError(Context.java:954) at org.mozilla.javascript.Context.reportRuntimeError(Context.java:1010) at com.luckydroid.droidbase.triggers.TriggerScriptScope.http(TriggerScriptScope.java:157) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:450) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1479) at script(Calcola Distanza on Create.js:18) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3282) at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120) at org.mozilla.javascript.Context.evaluateString(Context.java:1219) at com.luckydroid.droidbase.triggers.TriggersManager.run(TriggersManager.java:91) at com.luckydroid.droidbase.triggers.TriggersManager.event(TriggersManager.java:55) at com.luckydroid.droidbase.EditLibraryItemActivity.save(EditLibraryItemActivity.java:717) at com.luckydroid.droidbase.EditLibraryItemActivity.access$000(EditLibraryItemActivity.java:102) at com.luckydroid.droidbase.EditLibraryItemActivity$1.onClick(EditLibraryItemActivity.java:261) at android.view.View.performClick(View.java:4191) at android.view.View$PerformClick.run(View.java:17229) at android.os.Handler.handleCallback(Handler.java:615) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4963) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805) at dalvik.system.NativeStart.main(Native Method)
I proofread your code, but it seems airtight; The only nit I would pick is to add var to result = http().get(url), which is not your problem. Yes, it appears to me that asynchronous triggers in the mobile edition have a runtime configuration issue, at least in Android 4.1.2. I should say, though, that that's not a very current Android; upgrading that might help. Let's see what support has to say. I'd appreciate your letting us know.
I didn't realize the desktop edition had triggers yet. I'm still mostly on the mobile edition. I should update my desktop software.