File file = new File(myFilePath); boolean deleted = file.delete(); Log.v("log_tag","deleted: " + deleted);
You must pass the complete path to file that you want to delete in myFilePath
Example: /data/data/com.as400samplecode/myDirectory/20111113_153214_abc.png
No comments:
Post a Comment
NO JUNK, Please try to keep this clean and related to the topic at hand.
Comments are for users to ask questions, collaborate or improve on existing.