After downloaded the zip file I unzip it, and take it file and use it. but now, How can I delete the downloaded zip file?
4
-
What version of android? Are you writing a program to do this? – David Vogel Aug 15 '14 at 18:53
-
possible duplicate of How to delete internal storage file in android? – Sam Aug 15 '14 at 19:11
-
@KaliforniaDreaming It isn't possible to "un-flag" a post. – Sam Aug 15 '14 at 19:34
-
Welcome to Stack Overflow. Questions here should show research effort or attempts. Please take a tour. – Unihedron Aug 22 '14 at 0:56
Add a comment
|
Just use the delete()
method in your File
. Like this:
File file = new File(filePath);
boolean deleted = file.delete();
filePath
is a String
containing the path to your zip file.
Do not forget to check if deleted is true. It is true if the file was successfully deleted.