Kostya, Ok, that was easy. So now I don't crash but the background isn't changing either! After setting the alpha value do I need to somehow tell the appwidget to use the modified background? Or am I actually going about this the entirely wrong way and not even using the right method?
...Jake >>>>> "KV" == Kostya Vasilyev <[email protected]> writes: KV> You are trying to load your own drawable from system KV> resources. Get rid of the getSystem thing. KV> 04.04.2011 17:23 пользователь "Jake Colman" <[email protected]> KV> написал: >> >> I want to be able to set the alpha value for my appwidget's >> background so that I can control its transparency at >> runtime. After googling a bit, I came up with the following: >> >> Drawable bg = >> Resources.getSystem().getDrawable(R.drawable.appwidget_bg); >> bg.setAlpha(100); >> >> This code throws a Resources$NotFoundException. >> >> I'm sure I missed something blazingly obvious. Can someone tell me >> what it is? I suspect that the problem is since this is a widget I >> can only work with the remote views - even though I can get >> programmatic access to the resource as I did above. If that is the >> case, what is the remote view equivalent of what I am trying to >> do? >> >> Thanks. >> >> -- >> Jake Colman -- Android Tinkerer >> >> -- >> 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 KV> -- KV> You received this message because you are subscribed to the Google KV> Groups "Android Developers" group. KV> To post to this group, send email to [email protected] KV> To unsubscribe from this group, send email to KV> [email protected] KV> For more options, visit this group at KV> http://groups.google.com/group/android-developers?hl=en -- Jake Colman -- Android Tinkerer -- 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

