You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WebView does not display the local file stored in the cache ... In fact, the cache is not always activated so we must validate that the picture is there before to use it in the webview.
The text was updated successfully, but these errors were encountered:
int version = Integer.parseInt(android.os.Build.VERSION.SDK);
// Build the full path of the image to display
String src = app.getDataProvider().getBitmapPathFromCache(apodData.getDate());
if(src != null && version < 16)
src = "file:/" + src;
else
src = apodData.getSrc();
The WebView does not display the local file stored in the cache ... In fact, the cache is not always activated so we must validate that the picture is there before to use it in the webview.
The text was updated successfully, but these errors were encountered: