I got my first crash in the market :-(
from the error code I cannot understand why it happened (got general idea, but not specific enough, such as module / line)
is there a way to add code to my app, that if it will crash again
it will save stack or send it to me or such?
Here it is,
but how do I do something inside my app, that will send me full stack
java.lang.RuntimeException: java.lang.NumberFormatException
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:145)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:89)
at anywheresoftware.b4a.gps.GPS$1.onLocationChanged(GPS.java:57)
at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:227)
at android.location.LocationManager$ListenerTransport.access$000(LocationManager.java:160)
at android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:176)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3691)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NumberFormatException
at org.apache.harmony.luni.util.FloatingPointParser.parseDblImpl(Native Method)
at org.apache.harmony.luni.util.FloatingPointParser.parseDouble(FloatingPointParser.java:283)
at java.lang.Double.parseDouble(Double.java:318)
at Barrier_Plus.Binyat.servicegps._getdistancekm(servicegps.java:347)
at Barrier_Plus.Binyat.servicegps._gps_locationchanged(servicegps.java:535)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:105)
... 13 more
The user can report this error and you will be able to see the stack trace in the market through your developer console.
This error happened in ServiceGps.GetDistanceKm. You are trying to treat a string as number and this string is not a valid number (can be an empty string maybe).