Android Question Sending and Receiving data/Text files

raphipps2002

Active Member
Licensed User
Longtime User
Can someone point me in the direction of a tutorial about sending and receiving data

Say for example if want to draw a map and have a few friends locations plot on it. I know I could use sms interceptor to get and receive an sms with a the long and lat co-ordinates but is there way to send data somehow and receive it back over the internet or wi-fi

And like SMS interceptor know who it is from and likewise they know who they are sending it to?

Perhaps using IP addresses?

What tutorials and knowledge would I need to research to achieve this

thanks
 

John D.

Member
Licensed User
Longtime User
If you wanted to do something like put an app on your friend's phone that would send their location every so many minutes, so that you could display their location on your phone, using the internet, you need to have it send the info to a dedicated server that you set up, or have it save a file on Google drive or something like that. Then have your phone check for the appropriate file and read the information on it. It would be very difficult (not feasible) using IP addresses because the phones get different IP's all the time, like when switching from the phone network to wifi and so on.

If I were doing this I would start here;
http://www.b4x.com/android/forum/threads/android-network-tutorial.7001/
and set up a client to log into my Google Drive account and drop a text file. The name of the file could include information that identifies the sending phone and the time. A client on the other phone could log into the same account, recognize the new file, grab it, and get the data from it.

Location;
http://www.b4x.com/android/forum/th...y-friendly-background-location-updates.35988/

The sending app would need to run as a service, I guess.
 
Upvote 0

raphipps2002

Active Member
Licensed User
Longtime User
hmmm...sounds complicated but gives me something to research. Thanks very much for the solution

yes my sms version ends up in a service if user closes :)
 
Upvote 0
Top