Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
startService(Intent)我的应用程序有两个组件,即主要活动和服务,如果我在设备的任务管理器中看到我可以看到(1 进程 1 服务)但我需要服务之间的双向通信,则构建服务并调用和我的活动。
startService(Intent)
现在我必须使用bindService(service, conn, flags)并且通信按预期工作,但我可以在任务管理器中看到该过程。
bindService(service, conn, flags)