Designing Long Lived XMPP(TCP) Connections on Android
summary
Explains how to maintain persistent XMPP over TCP connections on Android for chat or remote command apps while minimizing battery and network usage. Covers use of wakelocks and other Android APIs and techniques for designing a long-running, low-impact background service.
AI-written summary · about
chapters (14)
- 0:00Intro
- 0:22Harshit Bangar
- 0:52What is XMPP?
- 2:31Open Protocol
- 3:56XMPP and Android
- 5:00Design XMPP applications
- 5:52Listening for connectivity changes
- 6:45Designing for 2g: Optimizations
- 8:52Designing for 2g networks: Stream Resumption
- 9:57Designing for 2g networks: TLS resumption
- 12:28Designing for 29: Compression (XEP-0138)
- 13:01Designing for 2g: Privacy List (XEP-0016)
- 14:06Summary
- 14:58Reference and code sample
related talks
34mReal World Android Akka
37mDesign patterns for network agnostic android apps
46mBluetooth Low Energy on Android: Top Tips for the Tricky Bits
40mAndroid high performance baby
36mBackground Work in Android: Strategies and Best Practices
22mPower optimization for Android
45mThe Immortal App
54mAndroid chat app in the cloud
