Something seems to be really different. If I go to Settings -
Location on my phone (2.2) and enable both wireless networks and
GPS, it used to be that when I went to that KS test i
could see up in the phone's notification area that it was using GPS
(i.e, the antenna got turned on or whatever.) If you go back to the
commit just before yours -- a8f1174 -- you can see that that is the
case, though there is also a runtime error:
E/KrollCallback( 1173): (kroll$8) [8,271771] Error evaluating source, invocation: [callMethod Geolocation.(anonymous) org.appcelerator.titanium.kroll.KrollCallback@46472e50], message: Wrapped java.lang.IllegalArgumentException: Expected 2 arguments for log, got 1 (app://examples/geolocation.js#342)
E/KrollCallback( 1173): org.mozilla.javascript.WrappedException: Wrapped java.lang.IllegalArgumentException: Expected 2 arguments for log, got 1 (app://examples/geolocation.js#342)
E/KrollCallback( 1173): at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1781)
E/KrollCallback( 1173): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:85)
E/KrollCallback( 1173): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1711)
E/KrollCallback( 1173): at script(app://examples/geolocation.js:342)
E/KrollCallback( 1173): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
E/KrollCallback( 1173): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
E/KrollCallback( 1173): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
E/KrollCallback( 1173): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
E/KrollCallback( 1173): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
E/KrollCallback( 1173): at org.appcelerator.titanium.kroll.KrollCallback.callSync(KrollCallback.java:139)
E/KrollCallback( 1173): at org.appcelerator.titanium.kroll.KrollCallback$1.run(KrollCallback.java:163)
E/KrollCallback( 1173): at android.os.Handler.handleCallback(Handler.java:587)
E/KrollCallback( 1173): at android.os.Handler.dispatchMessage(Handler.java:92)
E/KrollCallback( 1173): at android.os.Looper.loop(Looper.java:144)
E/KrollCallback( 1173): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:73)
E/KrollCallback( 1173): Caused by: java.lang.IllegalArgumentException: Expected 2 arguments for log, got 1
E/KrollCallback( 1173): at org.appcelerator.kroll.util.KrollBindingUtils.assertRequiredArgs(KrollBindingUtils.java:30)
E/KrollCallback( 1173): at ti.modules.titanium.api.APIModuleBindingGen$8.invoke(APIModuleBindingGen.java:300)
E/KrollCallback( 1173): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:48)
E/KrollCallback( 1173): ... 12 more
But if I test after your commit, the first time I go into the
Geo test in KS, the GPS antenna indicator does not show.
If I go back to the previous screen, and then go into the test
again, this time the GPS antenna indicator shows (and that runtime
error above occurs).
So it seems like the GPS is not being used anymore when you
first go into the test.