开发者

Use Android to detect other devices running my app nearby

Is there any API or fr开发者_开发知识库amework or anything that I can use in my Android app to detect other Android devices nearby that also have my app running on them?


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.


Look at what Google Latitude does:

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


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


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.....

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜