所以我刚刚为我的应用实现了一个小部件。它通过我的ContentProvider从数据库中获取数据。我在list中定义了自己的读/写权限,声明我使用它们(似乎没有什么区别),并在内容提供者中要求它们:............我通过Service更新我的小部件(根据小部件教程):而Service依次执行此操作(不包括一堆代码):/***Thisistheservicethatprovidesthefactorytobeboundtothecollection*service.*/publicclassListWidgetServiceextendsRemoteViewsService{@O
所以我刚刚为我的应用实现了一个小部件。它通过我的ContentProvider从数据库中获取数据。我在list中定义了自己的读/写权限,声明我使用它们(似乎没有什么区别),并在内容提供者中要求它们:............我通过Service更新我的小部件(根据小部件教程):而Service依次执行此操作(不包括一堆代码):/***Thisistheservicethatprovidesthefactorytobeboundtothecollection*service.*/publicclassListWidgetServiceextendsRemoteViewsService{@O