As in Андроид Студио
create an online mode, such as checkers online or the like. At least in which direction to move? It is clear that in a nutshell not to answer, but at least in what to work. I assume that the server is in google
, maybe there are developers who have already created similar applications. Yes, I tried to find it in Google, but the fact is that it is not entirely clear what to look for, how to form a question. In the search results, it gives out unnecessary online designers
Closed due to the fact that the question is too common for the participants Enikeyschik , Kromster , Eugene Krivenja , freim , LFC on Apr 6 at 8:56 .
Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .
1 answer
Android Studio
alone will not be enough. You will also need a server (preferably your own, because the step to the left-right of a third-party solution will be rested against the impossibility of implementation without hellish crutches).
A rough plan for creating such a one:
- Rented server with a dedicated IP. It to hosters, it is necessary to choose VPS / VDS.
- On the server rented put the program-containers. For example
Tomcat
forJava-Servlet
. - Writes the server program. It is necessary to use the technology of sockets (not bare, but one of the protocols, such as
WebSocket
). So you can keep an open two-way connection between the server and clients and exchange data. On the server, you need to write the logic of transferring data from one client to another through this same server. Those. one client sends information to the server, and the server sends it to another client. - The client must connect to the server and send / receive information.
If you are writing a native application for android, then it will be wise for the server to use Java / Kotlin and use bare Servlet
(just to learn, inconvenient for serious use) or to use Spring
- a complex harvester to build a server (difficult to learn, but awesome opportunities; works on Servlet
ah).
If you don’t want to write your server, you can use third-party solutions. For example Firebase
. But there are a lot of minuses. Only minimal use is free, a lot of restrictions, a lot of inconvenience in using and, most importantly, it is a product from Google, and they are a corporation of evil, you shouldn’t be tied to them somehow.
- Thank you, I will at least understand how it works and what information you need to look for. - Artsait 6:42 pm
- The fact that they are a corporation of evil, I completely agree)) The developer account has already been blocked. Initially, the application was blocked, after I wrote to tech support, the account was blocked so that it is better not to write to them. But the problem is that they still have to lay out the application, unfortunately there is no decent alternative - Artsait
- And what they in the reasons about removal and blocking wrote in your case? If you are interested in how they treat developers - see their recent webinar for developers - it immediately becomes clear who they are holding us: youtu.be/8yKI-igsWVE - YuriySPb ♦ pm
- I don’t remember, it’s impossible to insert WebView, but it turned out that I created several applications and downloaded them one day and used them everywhere I don’t know this WebView code and they deleted several applications at once, after they wrote, they deleted the account, and warned me not to create more accounts. It's a shame that there were about 50 applications loaded. For the past year I haven’t upload anything there yet, while I’m afraid, although the application was absolutely harmless - Artsait
- @Artsait, it’s understandable (They have completely become brutalized lately. No, that normal pre-moderation and technical support should be done with living people ... Instead, the robots just rub everything and then have no one to talk to anyone about this topic and do not warn them in advance. In the end, everything will come to the fact that they are recognized by monopolists and legally obliged to conduct themselves decently, but it will take years, but for now only one way to achieve the truth is media hype, but the courts, which is also expensive and expensive ( - YuriiSPb ♦