开发者

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

开发者 https://www.devze.com 2023-04-05 06:54 出处:网络
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

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

精彩评论

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