regards
could help me solve as I have an error and I can not find it
i send code for my project, as could solve "NullPointerException"
thank you advanced.
tks, NJdude
i run DEBUG (legacy) mode but the problem persists, it could not be...
MyLocationOverlay1.Initialize(MapView1, "MyLocationOverlay1") ' her is may problem !!!!!
SimpleLocationOverlay1.Initialize(MapView1)
I just told you, the app will stop at the line where the error occurs, that's all, you will have to check your code and see what are you missing or doing wrong.
tks, NJdude this is what the debug indicates...
java.lang.NullPointerException
at org.osmdroid.views.overlay.MyLocationOverlay.<init>(MyLocationOverlay.java:155)
at uk.co.martinpearman.b4a.osmdroid.views.overlays.MyMyLocationOverlay.<init>(MyMyLocationOverlay.java:24)
at uk.co.martinpearman.b4a.osmdroid.views.overlays.wrappers.MyMyLocationOverlayWrapper.Initialize(MyMyLocationOverlayWrapper.java:23)
at b4a.example.main._activity_create(main.java:454)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:174)
at b4a.example.main.afterFirstLayout(main.java:98)
at b4a.example.main.access$100(main.java:16)
at b4a.example.main$WaitForLayout.run(main.java:76)
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:4830)
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:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
at dalvik.system.NativeStart.main(Native Method)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.