Smack on Android

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Smack on Android

Postby Addion » Fri Dec 26, 2008 10:11 am

My android can’t authenticate to my XMPP server. however, I could use IM program to login to my server.

The log in the server showed the sever had accepted the connection from android, but there was no any authentication occuring.

please help me

Thanks
Addion
Addion
Developer
Developer
 
Posts: 29
Joined: Tue Nov 18, 2008 3:49 am

Top

Postby MrSnowflake » Sat Dec 27, 2008 1:05 pm

If you want help, you need to give more info.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby Addion » Tue Dec 30, 2008 4:17 am

Soory for late replying. My code is shown as below. The client can connect to the server with connect method, but it get "host-unknown" error at the login line

ConnectionConfiguration connConfig = new ConnectionConfiguration(
"192.168.0.44", Integer.parseInt(5222), "");

XMPPConnection conn
conn = new XMPPConnection(connConfig);

try{
conn.connect();

conn.login("test", "test");

}catch (Exception e){
}
Addion
Developer
Developer
 
Posts: 29
Joined: Tue Nov 18, 2008 3:49 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 5 guests