将图像和音频文件存储在android内部存储中

时间:2010-09-18 07:39:13

标签: android

如何在android内部存储中存储图像和音频文件?

如何在imageview中检索回显示图像?

1 个答案:

答案 0 :(得分:4)

您可以将文件写入内部存储空间。检查此链接

https://developer.android.com/guide/topics/data/data-storage.html#filesInternal

检索文件

 ImageView image = new ImageView();
 Bitmap bMap = BitmapFactory.decodeFile("/folder/yourfilename.png");
 image.setImageBitmap(bMap);
相关问题