The goal of this sample is to demonstrate how we can use Nearby technologies to offer seamless experiences between devices.
Apache License 2.0
- use Android Studio Canary
- 2 devices connected on the same wifi network
- Shared whiteboard / home work / collaboration / tic-tac-toe
- News app: continue reading on the next device
- Video File Transfer: transfer large files to another device within the app (WIP)
- Open the app on 2 devices close to each others on the same Wi-Fi
- tap the connection button at the top on both devices
- wait for the devices to be connected
- draw something, it will replicate on the other device
- Open the app on 2 devices close to each others
- tap the connection button at the top on both devices
- on one device open on of the article and scroll down a bit
- wait a few seconds, the article should show on the other devices at the same scroll position
- Open the app on 2 devices close to each others
- tap the connection button at the top on both devices
- wait for the devices to be connected
- tap record on one device only
- record a few seconds of video
- tap stop
- the file transfer should start (this is not working yet)
<activity
android:name=".MainActivity"
<activity
android:name=".NewsActivity"
<activity
android:name=".FileTransferActivity"
Most of the implementation is in ConnectionsActivity.kt
This is an adaptation of NearbyConnectionsWalkieTalkie