Keep XMPP connection (using asmack) alive on Android
问题 I'm developing an application that receives push notifications via XMPP ( I know C2DM, but it has some limitations and I can't use because of it ), the problem is the connection that after some time is garbage collected and I can't send push notification to the Android device. I think I need to implement an Android service but I have no idea how to implement a service that would keep the connection alive. Somebody could help me? 回答1: I am not sure if "garbage collected" is the right term here