最初に、この方法で画像を内部ストレージに保存します。
FileOutputStream fos = context.openFileOutput("myimage.png", Context.MODE_PRIVATE);
bitmap.compress(CompressFormat.PNG, 100, fos);
fos.close();
そして、次のように表示しますImageView
。
File filepath = context.getFileStreamPath("myimage.png");
Uri uri = Uri.parse(filepath.toString());
myImageView.setImageUri(uri);
しかし、画像は決して表示されませんImageView
。setImageBitmap()
諸事情によりこちらではご利用いただけません。どこが間違っているのか誰にも教えてもらえますか?
ご協力いただきありがとうございます!