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.
我已经从画布创建了一个位图。将其保存到我的“/sdcard/folder/subfolder/file.png”
我想在保存后将此 png 文件放入 imageview 中。我尝试使用 BitmapFactory.decodeFile("/sdcard/folder/subfolder/file.png"); 方法。但它什么也没返回。imageview 上没有图像。
你有什么主意吗?
尝试使用
String filePath = Environment.getExternalStorageDirectory()+"/folder/subfolder/file.png";//or "folder/subfolder.."