Hi! I have this code:
try{
File f = new File("/data/cizip.zip");
if(f.exists()){
ZipFile zf = new ZipFile(f); //this always throws an error
/*some of my codes here*/
}
catch(IOException e){
AlertDialog.Builder abd = new AlertDialog.Builder(this);
abd.setMessage(e.getMessage());
abd.show();
}
the line ZipFile zf = new ZipFile(f);
always throws an error and I don't know why. And the error message is the file name ("/data/cizip.zip"), therefore I can't know the cause of the error. Can someone please tell me what causes this error? Thanks in advance.