Reputation: 9317
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
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
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
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
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