java me - J2ME Gtalk Connection over XMPP fails -


i developing j2me app connect gtalk. using wtk2.5.2. here code sample,

      streamconnection connection = (streamconnection) connector.open(                   "socket://gmail.com:5222", connector.read_write);       inputstream instream  = connection.openinputstream();       int = instream.read();//returns -1 

it doesn't connected on port 5222 port.(with 5222 port open in firewall) when connect 443 port, connects input stream not read correctly. while reading stream, first read character return -1.

please me!


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -