Thanks Mark, it works.

On Jan 9, 3:32 pm, Mark Murphy <[email protected]> wrote:
> Business Talk wrote:
> > How is it that I can open a file with
>
> > FileInputStream inputStream = _Context.openFileInput("songs.zip");
>
> > but not with
>
> > ZipFile zipFile = new ZipFile("songs.zip");
>
> > the ZipFile throws the FileNotFoundException. What am I missing?
>
> openFileInput() knows about /data/data/your.package.here/files.
> ZipFile(), and everything else in stock Java, does not. You will need to
> fully-qualify your path:
>
> ZipFile zipFile=new ZipFile(new File(getFilesDir(), "songs.zip"));
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _Beginning Android_ from Apress Now Available!
-- 
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