Android Gtalk API?

ぃ、小莉子 提交于 2019-12-06 13:59:48

问题


Long back, android used to have GtalkService that let applications use Gtalk for various purposes, it was removed due to security reasons. Do we still have a method of invoking a Gtalk service that let us interact with gtalk from another application e.g. pinging a friend programmatically.


回答1:


GTalk is nothing else as a Google XMPP Service. So you have 2 options for android:

  1. Use Asmack, a ported Smack Library for Android

or

  1. Use AsmackService (not yet releases but functional), together with AsmackLibrary.



回答2:


You may want to check sources of TalkMyPhone application. Don't know if its using GtalkService, but it does gtalk interaction, works nicely for me.



来源:https://stackoverflow.com/questions/3977260/android-gtalk-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!