Webview android 6.0 does not load map with image

Asked

Viewed 152 times

1

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

In android 4.4 works correctly. In android 6.0 no content appears.

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 on 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.

  • What permissions you put on Androidmanifest?

  • We put Internet permissions, Access_fine_location, Access_coarse_location, Read_external_storage, Write_external_storage

1 answer

1

From Android 5.0 the permissions are requested on demand, IE, the developer needs to request the permissions at the time it will use. It may be happening this, go to the application settings and check if all permissions have been accepted.

  • By the application settings, all permissions have been accepted. My question would be, always q access the application these permissions should be redone?

  • No, permissions only need to be accepted once by the user

Browser other questions tagged

You are not signed in. Login or sign up in order to post.