How can i delete a file from android application.Is the same way that we use deleting a file in java or we have to use different way?
+1
A:
You should really read something about Android programming first... sorry! The Android Developer Homepage has a really good Dev Guide section.
Answer to your question:
Files can be deleted using: File.delete()
method. (I found that by searching for "file delete" on the page above!)
But of course, there's much more to that: you need to understand how Android stores files and which files your application is allowed to modify! (basically only its own files, all the others are not accessible)
Zordid
2010-02-16 11:38:14