Updating Textview in an Activity with Local Service

前端 未结 2 1959
我寻月下人不归
我寻月下人不归 2021-01-05 14:26

I have an Activity with R.id.eventDistance and R.id.eventTime to display the distance & travel time based on current location. I calculate these values every 30 seconds

2条回答
  •  再見小時候
    2021-01-05 14:53

    You should bind your Activity to your service so that they can directly communicate and message pass.

    Ref

    http://developer.android.com/guide/components/bound-services.html

提交回复
热议问题