开发者

Store image and audio file in android internal storage

开发者 https://www.devze.com 2023-01-16 21:06 出处:网络
How to store image and audio files in android internal storage? And how to retrieve back to dis开发者_JS百科play image in imageview?You can write a file to your internal storage. Check this link

How to store image and audio files in android internal storage?

And how to retrieve back to dis开发者_JS百科play image in imageview?


You can write a file to your internal storage. Check this link

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

Retrieve a File

 ImageView image = new ImageView();
 Bitmap bMap = BitmapFactory.decodeFile("/folder/yourfilename.png");
 image.setImageBitmap(bMap);
0

精彩评论

暂无评论...
验证码 换一张
取 消