Sunday, September 11, 2011

[android-developers] Re: External images in the notification area.

Nobody can help me?


> The external storage is available, device is not plugged at all.
>
> As I wrote external images is displayed in appwidgets but not in the
> notification area.
>
> I call:
>
> Uri imageUri = Uri.fromFile(file);
> remoteViews.setImageViewUri(imageViewId, imageUri);
>
> I haven't seen it before but now I can see that I got an exception:
> java.io.FileNotFoundException:  (Permission denied)
>
> The file has the following permission:
>
> ----rwxr-x    1 system   sdcard_r      8204 Aug 29 21:45 time.png
>
> And every parent directory:
>
> d---rwxr-x    3 system   sdcard_r
>
> Any process should be able to read it, shouldn't?
>
> Tamás
>
> On Sep 7, 10:06 pm, rich friedel <rich.frie...@gmail.com> wrote:
>
>
>
>
>
>
>
> >http://developer.android.com/guide/topics/data/data-storage.html#file...
>
> > How are you gaining access to the external images?
>
> > Are you sure that the files and storage actually are available to your
> > application?
>
> > Before you do any work with the external storage, you should always call
> > getExternalStorageState()<http://developer.android.com/reference/android/os/Environment.html#ge...()> to
> > check whether the media is available.
>
> > If not, is the device plugged in with USB?
>
> > Caution: External files can disappear if the user mounts the external
> > storage on a computer or removes the media...

--
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

No comments:

Post a Comment