【发布时间】:2011-07-24 13:10:10
【问题描述】:
我知道Service can have a reference to Activity。对面成立吗?
我有一项服务可以监控我的音频播放/暂停/停止。在我的活动中,我有 3 个用于这些功能的按钮和一个搜索栏。
I want to call the appropriate function at the Service when the corresponding button is pressed at the Activty. Also I want the seekBar to set its max to the Audio length at the service. 所以,我认为我需要引用我的服务才能做到这一点。
我是对的还是什么?
【问题讨论】:
标签: android android-activity android-service