【问题标题】:connection to MSN messanger in android连接到 Android 中的 MSN Messenger
【发布时间】:2010-11-10 12:57:42
【问题描述】:

我尝试使用带有以下代码的 Smack 库连接到 MSN messanger

import org.jivesoftware.smack.ConnectionConfiguration;
import org.jivesoftware.smack.ConnectionConfiguration.SecurityMode;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.XMPPException;

ConnectionConfiguration configuration = new
ConnectionConfiguration("messenger.hotmail.com", 1863, "hotmail.com"); 

configuration.setSecurityMode(SecurityMode.disabled);
configuration.setCompressionEnabled(false);

XMPPConnection connection = new XMPPConnection(configuration);

try 
{
    connection.connect();
}
catch (XMPPException e) 
{
    Log.e(TAG, "MSN connect Failed !!");
}

我收到“连接失败,服务器没有响应”

我也尝试过使用 java msn 库,它也无法正常工作。

我也尝试使用 TJMSN 库,但我的应用程序因验证错误而崩溃:

请帮助我...通过建议任何方法连接到 android 中的 msn messanger

【问题讨论】:

    标签: android xmpp smack msn-messenger


    【解决方案1】:

    Microsoft Messenger 不使用 XMPP,因此您无法使用 XMPP 客户端连接到它(您正在尝试这样做)

    【讨论】:

    • 你知道如何连接到 Microsoft messenger 吗?
    【解决方案2】:

    Microsoft Messenger 不使用 XMPP

    看起来情况不再如此。看看下面的帖子Anyone can build a Messenger client—with open standards access via XMPP

    文章提供了开发文档和Smack based Android code samples的链接:

    “有兴趣了解更多关于我们的 XMPP 界面的开发人员可以查看 our code samples on GitHub 以及 the overview documentation on the Live Connect developer center。这些应该为您提供足够的信息来获取开始将 Messenger 网络集成到您的移动应用、设备和网站中。”

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-06-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多