Self-updating every 10 seconds widget Handler.postDelayed problem
问题 I'm trying to make work a self-updating functionality in an Android widget, something simple as changing two TextViews of it every 10 seconds. The ideal solution would be to make it similar to the genie widget (news & weather). And so far, it works okay: it updates every 10 seconds via Handler.postDelayed's Runnable. Runnable updateWidgetText = new Runnable() { @Override public void run() { if (screenEnabled) { AppWidgetManager gm = AppWidgetManager.getInstance(ctx); ComponentName thisWidget