开发者

Android widget, distinguish if onUpdate triggered by periodical or click update?

I'm implementing a simple widget that updates periodically and by clicking it, no problem so far.

I would however like the widget to behave slightly different if updated by the periodic timer or by clicking it.

But I cant figure out how to distinguish if

onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds)

gets triggered by periodic timer set by updatePeriodMilli开发者_C百科s or by the click PendingIntent.

Is this possible or does my question not make any sense?

Thanks!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜