Rajapandian
Rajapandian

Reputation: 9317

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 this.If any body knows it please help me.

Upvotes: 0

Views: 1770

Answers (4)

Christopher Orr
Christopher Orr

Reputation: 111625

Most likely you haven't included the INTERNET permission.

Add this to your AndroidManifest.xml:

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

Upvotes: 1

tedi
tedi

Reputation: 1

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/

Upvotes: 0

user19
user19

Reputation:

Does it only happen in the emulator?

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

Upvotes: 0

Jay Zeng
Jay Zeng

Reputation: 1421

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.

Upvotes: 1

Related Questions