D
D
DIGTECH2019-05-11 13:52:07
MySQL
DIGTECH, 2019-05-11 13:52:07

What is the best way to work with a remote database on Android?

There is an application on Android, it needs to receive data from the database. What is the best way to do this or how to replace it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2019-05-11
@inoise

API, API and more API. And do not forget about security (tokens, all that)

R
rPman, 2019-05-11
@rPman

I strongly recommend that everything that walks through the Internet should be wrapped via http (including websocket), of course it is better with encryption (https), there will be less hemorrhoids, since providers (Russia), and more often mobile ones, diligently slow down or even block other traffic (for example, p2p is almost completely killed, even webrtc needs magic to use).
Or rather, the traffic that the provider’s DPI does not understand can be severely limited or even broken (they climb with crooked hands where they don’t follow), so don’t invent a locomotive.
On the basis of http, take either ready-made frameworks and serializers or invent your own. Popular directions, use json, xml, and if binary, then Protobuf (generally a universal thing). For any of the given examples, there are libraries in java.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question