2

From this post: Loading an Android Resource into a WebView

I tried Uri path = Uri.parse("android.resource://"+galleryPackageName+"/"+info.icon);

then in webview: <img src="android.resource://com.android.gallery3d/2130838158">

but I got Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME

if same package I can use file:///android_asset/xxx

but how can I load from different packages?

Community
  • 1
  • 1
user3896501
  • 2,987
  • 1
  • 22
  • 25

0 Answers0