如何从服务 onStart() 中调用 Activity 的非静态方法?
最佳答案
How to call an Activity's non-static method from inside a service onStart()?
你不能。
但是,有许多方法可以让服务与正在运行的 Activity 进行通信,我在这里概述了其中的一些:How can I update information in an Android Activity from a background Service
关于Android访问服务里面的activity方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10783688/