After I transfered data between two Android devices using Android Beam, I am looking for a way to be notified when these devices go out of range.
Asked
Active
Viewed 91 times
1 Answers
0
No, Android does not provide an API for this.
If peer-to-peer mode/Android Beam is not a requirement, if both devices have Android 4.4+, and if your app runs in the foreground on at least one of the devices, then you could use a combination of HCE on one device and reader mode on the other device. Then, on the reader side, you could continuously send commands to the HCE side. If communication fails, you would know that the devices are no longer in range of each other.

Michael Roland
- 39,663
- 10
- 99
- 206