PDA

View Full Version : Temporary file using SDCARD



dailton.menezes
04-06-2011, 06:55 AM
Hi everybody,

I am developing an application that needs to download zip files, next, unzip these files and analyze them. I'm using SDCARD for it. The first part has already done, that is to download into SDCARD. When I go to the second step, unzip, I get a weird error (arguments out of bounds) in the instantiation of the class ZipFile. The same routine (I mean unzip) I tested outside of Android (Pure Java) and it worked perfectly. I concluded that there may be some lack of the right to read SDCARD. I have already put the permissions in the Manifest ("android.permission.INTERNET"and "android.permission.WRITE_EXTERNAL_STORAGE") but I'm not understanding what is happening.

The Download and unzip are being done inside a thread not to block the user interface.

Have a tip or have already gone through something similar?

Grateful

Dailton Menezes

dailton.menezes
04-07-2011, 09:21 AM
Guys,

I managed to find the problem. Actually it was my fault in the coding of the routine that left the download zip file corrupted. Hence, when the run was going to unzip the problem appeared to suggest that was an error of permission in SDCARD.

Anyway, many thanks.

Dailton Menezes