Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Coders,

My scenario :
I am developing an android app where I run two instances of my app one instance runs on device1 and the other on device2 , how do I send data generated by device1 to device2 over the internet. These devices are NOT connect over wifi or bluetooth . only connected via the internet.


My Queries: Please answer inline.
1. which is the method for sending/receiving Data for the above scenario?

2.What is the best data format I should generate the data in device1 , so that i send it to device2. is it JSON format? preferable?

Let me know

Thanks you in advance!

What I have tried:

I have not yet tried. Not yet tried. In the research phase now
Posted
Comments
David Crow 24-Sep-18 9:48am    
"These devices are NOT connect over wifi...only connected via the internet." So does that mean that WiFi does not send data via the Internet?

I believe you meant they are connected (to the Internet) via mobile/cellular data.

"1. which is the method for sending/receiving Data for the above scenario?"

See here for an example.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900