0

In my application there is one tab uses sherlocklistfragment containing list items.I wanna add items to that list from my service class without opening the app and when the app is opened that list fetches the items from the service and adds it to the ilst but I can't figure out any way how can I do this?

4

1 回答 1

0

您可以将值从服务保存到本地 SQLite 数据库,然后从片段中检索它们,或者您可以绑定到服务:http: //developer.android.com/guide/components/bound-services.html

于 2013-05-29T17:54:23.580 回答