简体   繁体   中英

How to communicate between same application installed on two android handset?

I want to interact between two android enabled handset with same application installed, but i dont want to use any web service.

Is this possible even if i know the recipent mobile number? If there is any way to do that then please tell me. you can also send me the link of the webpage.

If the devices are close enough, take a look at blutooth communication. Most Android devices are equipped with those.

If the devices are not near each other, you could implement a Sms parser.

But maybe if you tell us why you don't want to use internet, we could better understand your use case.

Use content providers, when you create it you will get a content URI from where you can access data between two apps. Its the same way your android contacts manager provide you contacts. Android dev link

Android dev link

For phones running Android 4.0 or later, there's WiFi Direct:

http://developer.android.com/guide/topics/connectivity/wifip2p.html

Why Not use NFC for the purpose, please see link:

http://developer.android.com/guide/topics/nfc/nfc.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM