Won’t You Be My Neighbor? Making Friends with Google Nearby
summary
Google Nearby is usable here via Google Play services using the Nearby Messages API, Gson and base64 images; the workshop builds a working app called NerdAlert (APK on GitHub) that publishes and subscribes peer‑to‑peer over Bluetooth/BLE Wi‑Fi and ultrasound. Messages hit practical limits — roughly 10 kilobytes payload, TTL defaults to 5 minutes (max ~1 day), and an earshot (~3–4 ft) mode uses ultrasound. Requires API keys, user opt‑in, internet for auth, foreground activity and costs ~3–4× more battery, but the demo runs.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 2:11What is Google Nearby
- 5:20API keys and Play services
- 7:54Nerd Alert app codebase
- 13:34Connecting to Google API
- 16:21Publishing with Nearby Messages
- 21:57Nearby strategy and battery
- 25:14Publish callbacks and notifications
- 28:46Subscribing to messages
- 34:30Permissions and error handling
- 38:44Encoding messages with Nearby API
- 42:25Q&A
related talks
42mUp close and personal with Nearby
26mAdd proximity to apps with Nearby
36mContextualize Apps with Nearby + Awareness
38mPutting the “Pro” in “Proximity”: Interactive Demos of the Nearby API
41mWhat's New in Google Play Services
34mEddystone™, the open beacon format from Google (en)
58mAndroid Protips 3: Making Apps Work Like Magic
33mMaking Android Apps with Intelligence
