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