Android Question OSMDroid lib with java.lang.UnsupportedOperationException under Android 4

peacemaker

Expert
Licensed User
Longtime User
Hi, all, warwound expecially

What is the problem with OSM lib under Android 4.0.3 with PowerVR SGX531 GPU and 512 MB RAM (OpenGL2.0 is supported) ?


B4X:
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
java.lang.UnsupportedOperationException
    at android.view.GLES20Canvas.drawPicture(GLES20Canvas.java:905)
    at uk.co.martinpearman.b4a.osmdroid.views.overlays.MyScaleBarOverlay.draw(MyScaleBarOverlay.java:286)
    at org.osmdroid.views.overlay.OverlayManager.onDraw(OverlayManager.java:119)
    at org.osmdroid.views.MapView.dispatchDraw(MapView.java:901)
    at android.view.View.getDisplayList(View.java:10452)
    at android.view.ViewGroup.drawChild(ViewGroup.java:2934)
    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2573)
    at android.view.View.getDisplayList(View.java:10452)
    at android.view.ViewGroup.drawChild(ViewGroup.java:2934)
    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2573)
    at android.view.View.getDisplayList(View.java:10452)
    at android.view.ViewGroup.drawChild(ViewGroup.java:2934)
    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2573)
    at android.view.View.getDisplayList(View.java:10452)
    at android.view.ViewGroup.drawChild(ViewGroup.java:2934)


    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2573)
    at android.view.View.draw(View.java:11018)
    at android.widget.FrameLayout.draw(FrameLayout.java:450)
    at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2140)
    at android.view.View.getDisplayList(View.java:10454)
    at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:851)
    at android.view.ViewRootImpl.draw(ViewRootImpl.java:2034)
    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1748)
    at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2583)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4503)
    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:809)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)
    at dalvik.system.NativeStart.main(Native Method)
 
Top