Whether it is registration or landing, or chat and other functions, you must first make a server connection, the connection code is as follows
① the
custom XMPP Connection Tool class:
②
call to create a connection method: ③
Connection Server method: * Note that the connection is not encrypted to the customer service side, so the server should change the settings, as such can be connected to the server ④
registration call Code: ⑤
Login code: with the above tool class, the following is the call connection to login and registration, here
is particularly important to note that these operations need to be called in the child thread, pro-Test ⑥
start thread Call registration code: Thread Code: ⑦< c11> Login and Registration code similar: at this point, login registration has been completed, the following can be tried, the results of the interface is not given!
Welcome to Rose Blog http://www.cnblogs.com/lvyerose/
XMPP implements simple Chat series---② user registration and Login