How can I update the UI for an android appwidget
问题 I'm sure I'm missing something, but I'm just trying to get an app widget with a button and a counter. Every time I click the button I want the counter to update by 1. I've set the onUpdate() function of the WidgetProvider to register a pending event to the button so that it starts a service to bump the counter numbver: Intent active = new Intent(context, CounterService.class); active.setAction(CounterService.COUNT); PendingIntent pending = PendingIntent.getService(context, 0, active,