开发者

How to exchange data between Android services

I would like to know what is the best and fastest way to exchange data between services. I have been trying to bind one service to another using ServiceConnect开发者_开发知识库ion but the actual connection never happened. Also I did not saw anything strange in LogCat.

Thanks in advance for all your replies.


Intents and [bindService][1] are usually the best way to go.

Could you give more details regarding "the actual connection never happened"?

[1]: http://developer.android.com/reference/android/content/Context.html#bindService(android.content.Intent, android.content.ServiceConnection, int)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜