You should implement a background service see:
http://developer.android.com/training/run-background-service/index.html
Or depending on the use case you can implement push notifications in the server side and receive them once the client is not subscribed to the MQTT broker.