It seems you have started your service as STICKY and this is the reason its connect to XMPP server again when you completely kill your app from task manager .
You dont have to connect XMPP server every time when user come to the app.
Check if connection is not connected then only try to connect in your running service .
connection.isConnected()
{
Do you code to connect
}
else
nothing