> Thanks for the immediate response. I tried using this approach and I
> have a zip file in assets folder, which is throwing
> "FileNotFoundException". Can you please suggest how to solve this
> exception.

Don't put a ZIP file in the assets/ folder. The APK file *is* a ZIP file,
so putting a ZIP in a ZIP is not necessary.

You do not indicate whether your FileNotFoundException is on the line
where you get your asset, or on the line where you try to get your output
stream. If it is the former, make sure you are passing the correct value
to open(). If it is the latter, make sure you are using
Environment.getExternalStorageDirectory() to determine the SD card
location, and make sure you create any subdirectories you are trying to
use, and make sure your device or emulator has an SD card attached.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to