2011/07/12

【Android】ウィジェットConfigure で onUpdate() が呼ばれとる

 
すっごい不思議。Widget の設定クラス(アクティビティ)を作成した場合、
onUpdate() は呼ばれませんと公式ドキュメントに記載されてますが、
アクティビティ起動直後に、思いっきり呼ばれてるのですが…
 
The onUpdate() method will not be called when the App Widget is created (the system will not send the ACTION_APPWIDGET_UPDATE broadcast when a configuration Activity is launched). It is the responsibility of the configuration Activity to request an update from the AppWidgetManager when the App Widget is first created. However, onUpdate() will be called for subsequent updates—it is only skipped the first time.
 
なぜコールされるんだろう。

0 件のコメント:

コメントを投稿