Android Question Sending info from a device to a server and forward to another device

ValhallSW

Member
Licensed User
Longtime User
How can I send info from a device to a server and from the server to another device?
How can this be done in the simplest and easiest way? I am not a professional!

Is this what is called push-notifications?
 

KMatle

Expert
Licensed User
Longtime User
There are several examples (socket communication). For this you need to be able to run B4J apps on the server (= root server). Another way is to use Google https://www.b4x.com/android/forum/t...tification-c2dm-framework-and-tutorial.10542/

A third and most common way (because every cheap server supports it) is to use HttpUtils + php + MySql.

For all solutions you need some experience or fun to try :D There are several examples here. Just start simple (sending strings and send something back)
 
Upvote 0

ValhallSW

Member
Licensed User
Longtime User
There are several examples (socket communication). For this you need to be able to run B4J apps on the server (= root server). Another way is to use Google https://www.b4x.com/android/forum/t...tification-c2dm-framework-and-tutorial.10542/

A third and most common way (because every cheap server supports it) is to use HttpUtils + php + MySql.

For all solutions you need some experience or fun to try :D There are several examples here. Just start simple (sending strings and send something back)

Using the "HttpUtils + php + MySql", I know how to send info to server, and get a replay from server, but if I want to send edited info (edited by server) to another device?

Do the other device check constantly to see if there has been changes at server? I hope not.
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

ValhallSW

Member
Licensed User
Longtime User
Upvote 0
Top