Android Question Can not run geofence example application.

warayTek

Member
Licensed User
Hi. I'm trying to run this example Geofence but having errors while running the application.
B4X:
geofencereceivergetObject (java line: 11)
java.lang.RuntimeException: Code module does not support this method.
    at b4a.example.geofencereceiver.getObject(geofencereceiver.java:11)
    at b4a.example.b4xmainpage$ResumableSub_AddGeofence.resume(b4xmainpage.java:127)
    at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:267)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:207)
    at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1178)
    at android.os.Handler.handleCallback(Handler.java:883)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loop(Looper.java:264)
    at android.app.ActivityThread.main(ActivityThread.java:7581)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)
** Activity (main) Resume **
I'm using it on sdk version 30.
Any suggestions are much appreciated.
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
Hi. I'm trying to run this example Geofence but having errors while running the application.
No you are not running the example. You did add the code to a codemodule in your app i guess.
The code willl not work in a Codemodule. Use it in a class or a servíce.
 
Last edited:
Upvote 1
Top