slandau
slandau

Reputation: 24062

Use Android to detect other devices running my app nearby

Is there any API or framework or anything that I can use in my Android app to detect other Android devices nearby that also have my app running on them?

Upvotes: 5

Views: 7860

Answers (4)

Shubhamhackz
Shubhamhackz

Reputation: 7973

You Can use Google Nearby API https://developers.google.com/nearby/. It uses Wifi, Bluetooth and allows phones to emit ultrasonic sound which is imperceptible to humans to detect NearBy Devices.....

Upvotes: 0

Ollie C
Ollie C

Reputation: 28519

If your definition of "nearby" means inside the same wifi network or within bluetooth range, then be aware that Qualcomm have put together a free SDK and platform to build peer-to-peer application on Android, which works over both Bluetooth and/or Wifi.

http://developer.qualcomm.com/dev/alljoyn-p2p

Upvotes: 0

tamsler
tamsler

Reputation: 1615

Look at what Google Latitude does:

http://code.google.com/apis/latitude/

Upvotes: 1

Will Tate
Will Tate

Reputation: 33509

Slandau,

The Bump App API is available and has a somewhat similar feature implemented. When two phones "bump" one another it uses their current location to know which two phones bumped. So, their proximity is calculated to some degree. You should look into their API and see if you can do something similar. I don't think there is just a standard API for this as the privacy/security risks should be obvious.

Upvotes: 1

Related Questions