Tuesday, August 7, 2012

Re: [android-developers] Re: getting assets file in Uri ......FileNotFoundException

Narendra Singh Rathore wrote:
> On Tue, Aug 7, 2012 at 12:43 PM, skink <pskink@gmail.com> wrote:
>
> >
> >
> >
> > what statement throws FileNotFoundException?
> >
> >
> >
>
> try {
> fis = new FileInputStream(mUris[0].toString());
> } catch (FileNotFoundException e) {
>
> e.printStackTrace();
> }
>
>
> This is giving me FileNotFoundException, when I am using asset path.

have you seen FileInputStream(String name) javadocs? if so are you
aware of the fact it can be used only with normal files stored in the
local file system?

pskink

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate