我不想使用bindService,因为我想自己处理使用寿命.
如果我不使用bindService,我如何获取服务启动的实例?我想要能够得到一个在服务类中创建的处理程序来发布活动的消息.
谢谢.
/亨利克
解决方法I do not want to use bindService as I
want to handle the service life time
myself.
这并不意味着你必须避免使用bindService().如果需要,同时使用startService()和bindService().
How can I get an instance to the
service started if I do not use
bindService?
使用bindService()与startService(),或使用单例.
总结以上是内存溢出为你收集整理的如何获取Android本地服务实例全部内容,希望文章能够帮你解决如何获取Android本地服务实例所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)