How to use PendingIntent to communicate from a Service to a client/Activity?

前端 未结 3 1900
迷失自我
迷失自我 2021-01-30 02:41

I have been reading the following text on the Android Developers Site, specifically under the Framework Topics -> Services -> Starting a Service.

There it states the fol

3条回答
  •  粉色の甜心
    2021-01-30 03:07

    In order to perform communication between service and activity. You can also use Binder as mentioned in Official Android Example http://developer.android.com/reference/android/app/Service.html#LocalServiceSample

    For detail explanation see this answers https://stackoverflow.com/a/36983011/4754141

提交回复
热议问题