Android app server | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Android app server

I want to create a simple chat application for Android. I can make a Java application communicate with SQL database but I have no idea how to make 2 smart phones communicate with each other? How to set up a server for an android application? Can I make it for free?

10th Apr 2019, 9:20 PM
Lighton
Lighton - avatar
3 Answers
+ 1
Your lookit from the wrong side you don't have to make them communicate with each other you have to communicate with the sever and asking for messages. If you just want to make them sql related make a table for new messages and a table for old messages and the Android app just have to "move the messages" (Deleting them from the new table and recreting the them in the old table) Now tho your second question. No you'll still need a server with a stable ip or just a stable ip and a server (for small scale a raspery pi should do it) at home
10th Apr 2019, 10:18 PM
Lexfuturorum
Lexfuturorum - avatar
+ 1
look into coding sockets and server connections.
11th Apr 2019, 3:34 AM
Jason Kennedy
0
Ohh yeah for lage scale with public access write something server sided that's secure to ensure an sql injection is not possible
10th Apr 2019, 10:21 PM
Lexfuturorum
Lexfuturorum - avatar