AppWidget Button onClick stops working
问题 I have a widget I'm trying to build that consists of only a button. What I'm wanting to do is have the button clicked and then run some simple piece of code (in my test it's a toast alert). It seems to work fine initially, but suddenly the button stops responding to clicks. I've noticed it consistently after the phone has been asleep. Here is my code for the AppWidgetProvider. onUpdate: for (int appWidgetId : appWidgetIds) { RemoteViews remoteView = new RemoteViews(context.getPackageName(), R