Those files aren't be accessed by you, they are being opened by another app
(the launcher) when it applies your RemoteViews to the widget it is
displaying.

On Mon, Aug 1, 2011 at 9:23 AM, Ash McConnell <ash.mcconn...@gmail.com>wrote:

> Hi Kostya / Dianne,
>
> Thanks for the replies.  As Dianne suggested, removing half the bitmaps
> does indeed make it work.
>
> I can't really reduce the amount of bitmaps, so I am trying to use the
> setImageURI on ImageView.  Unfortunately I am getting permission denied
> errors.
>
> Here is the test code I used: -
>
>                 File file = new
> File(context.getFilesDir().getAbsolutePath() +
> "/skins/Minimal/flight_on.png");
> if (file.exists()){
>  Uri uri = Uri.fromFile(file);
> Log.i(LOGTAG, uri.toString());
> views.setUri(R.id.buttonSound, "setImageURI", uri);
>  }
>
>
> The file *does* exist and I get the following log message: -
>
> 08-01 17:19:20.304: INFO/WidgetTest(4563):
> file:///data/data/sirocco.widgets/files/skins/Minimal/flight_on.png
>
> I didn't think I would have permission problems with the widget's own
> files.  Is there a problem with accessing these files from a widget
> (actually a private service class within the widget)?
>
> Thanks again for your help
> All the best,
> Ash
>
>  --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to