How To Create Service In Android Which Makes Persist Xmpp Connection With XMPP Server?
问题 After searching a lot on Internet we have came to one conclusion in order to ensure an persist connection with XMPP server we have to create a service, We have created one which uses Smack library to connect with XMPP server and it is working fine with mobile and wi-fi network. Every time you make something design approach always matter!!!, Smack have this reconnection mechanism already implicitly implemented in there library which listen to connection and if connection drops Smack try to