Running in a Background Service

2016-09-20  本文已影响0人  Archo

使用IntentService

create an IntentService

RSSPullService extends IntentService
override onHandleIntent()

Define the IntentService in the Manifest

android:exported is set to "false", the service is only available to this app.

Create and Send a Work Request to an IntentService

Report Status From an IntentService

Recieve Status Broadcasts from an IntentService

上一篇下一篇

猜你喜欢

热点阅读