• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android App Detect when two phones touch

So I am making an app which needs to detect when two phones are close (1-2meters or less) and transmit some small amount of information (some strings and such).

I have been looking at the Google Nearby Connections API. But i cant limit that to just work when the phones are within 1-2 meters. And it also drains a lot of battery and both of the phones need to both Advertise and Discover at once.

Does anybody here know how I could do it? Something like NFC, Bluetooth Low Energy or??
 
  • Like
Reactions: Tharpebb63

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones