开发者

How to Delete Image From SDCard in Android [duplicate]

开发者 https://www.devze.com 2023-01-30 21:46 出处:网络
This question already has answers here: Android file delete leaves empty placeholder in Gallery (9 answers)
This question already has answers here: Android file delete leaves empty placeholder in Gallery (9 answers) Closed 8 years ago.
File file = new File(imagePath); 
boolean deleted = file.delete(); 

using this code image delete on current screen But it not deleted from SDCard. so Please An开发者_开发技巧yone who know Answer please Post it.


file.delete(); Its not delete File or Images.

0

精彩评论

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