タグ

RemoteViewsとAndroidに関するastk_fのブックマーク (1)

  • Android適当メモ : RemoteViewsの仕組み

    2011年02月02日21:43 カテゴリRemoteViews RemoteViewsの仕組み AppWidgetProviderで使っているRemoteViewsクラスの仕組みについて調べてみた。 Widgetは、表示領域を提供するAppWidgetHost(大抵はホームアプリ)に、部品を提供するAppWidgetProviderから表示情報を送る形で構成されている。 ホームアプリとAppWidgetProviderは別プロセスなので、AppWidgetManager~AppWidgetSeriveを通してBinderでIPCで情報を送っている。 AppWidgetHostではMessageを使って別スレッドで動作しているが、細かいところを省略すると以下のシーケンスになる。 要するにAppWidgetManagerに渡したRemoteViewsがHost側まで渡され、そこでapply(

  • 1