Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
と を含む zip ファイルがhtml filesあります。zip ファイルをファイルに抽出せずに にリンクするにはimagesどうすればよいですか?imagesloaded htmlWebViewbyte[]
html files
images
loaded html
WebView
byte[]
zipファイルをSDカードに抽出せずに、WebViewにロードされたhtmlで画像をリンクする方法
オプション #1: ZIP ファイルを内部ストレージに抽出し、ファイルをfile://指す URLを使用する
file://
オプション #2: ZIP ファイルを内部ストレージに抽出し、ContentProviderそれらのファイルを公開するための を作成content://し、プロバイダーを指す URLを使用する
ContentProvider
content://
zip ファイルが RAM にロードされます
これは、小さな ZIP ファイルの場合にのみ実用的です。