开发者

How to create Yahoo Messenger Client in Android?

I am trying to create Yahoo messenger client in Android, and i got Openymsg api to implement that.This is small snippet of my code

        Session session=new Session();
        session.login("Email Id", "password");

But this code is throwing UnknownHost Exception in "scs.msg.yahoo.com".I dont know how to fix t开发者_如何转开发his.If any body knows it please help me.


Have you trapped the packets to see if they give you any exception details? Try to use wireshark or tcpdump to view the entire session.


Most likely you haven't included the INTERNET permission.

Add this to your AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET" />


Does it only happen in the emulator?

I've had the emulator somehow "drop" the connection on occasion. Restarting the emulator always fixes it..


have you tried this? cn.scs.msg.yahoo.com adding cn subdomain in scs.msg.yahoo.com

http://jasoet.wordpress.com/2009/06/30/pidgin-tidak-konek-ke-yahoo/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜