Android Question Location Manager Errror

fishwolf

Well-Known Member
Licensed User
Longtime User
i use from many years Locaton Manager Library with b4a 5.80

Today i have re-compile (without modify) and i have this error.

B4X:
java.lang.IllegalArgumentException: method .scheduler._geoloc_locationchanged argument 7 has type float, got null

on this line

Sub GeoLoc_LocationChanged (Longitude As Double, Latitude As Double, Altitude As Double, Accuracy As Float, Bearing As Float, Provider As String, Speed As Float, Time As Long)

Speed field is null

Any suggestion?
 

fishwolf

Well-Known Member
Licensed User
Longtime User
Can you post the full error message from the logs?
B4X:
myapp.scheduler:_geoloc_locationchanged, [12.4165213, 41.9200459, 0.0, 18.723, 0.0, network, null, 1488830938936]
Error occurred on line: 123 (Scheduler)
java.lang.IllegalArgumentException: method myapp.scheduler._geoloc_locationchanged argument 7 has type float, got null
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:702)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:336)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
    at com.rootsoft.locationmanager.LocationManager1$1.onLocationChanged(LocationManager1.java:54)
    at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:285)
    at android.location.LocationManager$ListenerTransport.access$000(LocationManager.java:214)
    at android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:230)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:150)
    at android.app.ActivityThread.main(ActivityThread.java:5621)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:684)
 
Upvote 0
Top