I want to change the background of a widget. This is from the wiki word of the day widget example code: Thanks for any leads! -cellurl
I have tried: /** * Build a widget update to show the current Wiktionary * "Word of the day." Will block until the online API returns. */ public RemoteViews buildUpdate(Context context) { RemoteViews updateViews = null; updateViews = new RemoteViews(context.getPackageName(), R.layout.widget_word); updateViews.setTextViewText(R.id.definition, "off"); Intent i=new Intent(this, WidgetService.class); PendingIntent pi=PendingIntent.getService(this, 0, i, 0); updateViews.setOnClickPendingIntent(R.id.widget, pi); ->none of these work //updateViews.setImageViewBitmap(R.id.widget, R.drawable.widget_bg_normal_ticket); //updateViews.setImageViewResource(R.id.widget, R.drawable.widget_bg_normal_ticket); //updateViews.setImageViewResource(Global.myAppWidgetId, R.drawable.widget_bg_normal_ticket); return updateViews; } -- 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