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.
私の Android アプリでは、次のコードを使用して画像を表示しています。
webview.loadUrl("file:///mnt/sdcard/Temp/somefile");
ただし、ファイル名に拡張子がない場合、webview は画像を表示しません。これがjpgであることをwebviewに示す方法はありますか?
imgタグを含むhtmlでloadDataとloadDataWithBaseURLも試しましたが、どちらも役に立ちませんでした。