Notify activity from service

后端 未结 4 1081
予麋鹿
予麋鹿 2020-11-28 04:10

I\'m trying to start a Service from my Activity to look out for changes on a web page, it\'s a private app so I don\'t bother the battery life...

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 05:14

    The ResultReceiver mechanism has been explained in another post :- Restful API service However it would not work in all cases. Please refer to my comment on that post. The limited scope broadcast or PendingIntent mechanism seem more suitable.

提交回复
热议问题