Webview android 6.0 does not load map with image

1

I have an application that gets the js, html, css settings through WebView, to create an offline map.

In android 4.4 works correctly. No content appears in android 6.0.

I make the call through the assets

webview.loadUrl("file:///android_asset/www/map.html");

I also put the permissions on AndroidManifest.

EDIT1

The problem is occurring along the way to find the images. The permissions were right.

webview.loadUrl("javascript:loadImg('/storage/14F0-C537/www')");

But the address of the used SdCard has to be changed.

    
asked by anonymous 29.09.2017 / 16:10

1 answer

1

As of Android 5.0 the permissions are requested on demand, that is, the developer needs to request the permissions at the moment they will use it. This is happening, going into the application settings and verifying that all permissions have been accepted.

    
29.09.2017 / 17:54