P
P
Palantir212017-02-22 08:44:33
Java
Palantir21, 2017-02-22 08:44:33

How to update the content of your application?

Hello, I am writing an Android application that will store quotes.
The question is, how do I add new quotes to it in the future?
I wanted it to be convenient, well, there is a separate tab in which I write down the quote itself, the author, on what topic and on click so that this quote is added to the database. But what would users not be able to do. Well, what would the database itself be online.
How to do this?
As an example, I want it to be like here
https://play.google.com/store/newsstand/news/%D0%9...
Articles are added to the application, but users themselves cannot add new ones.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
mitaichik, 2017-02-22
@Palantir21

I recommend using Google's Firebase https://firebase.google.com/docs/database/. On clients (in the users application), it will be updated automatically. And how do you edit - you can make your own admin panel for convenience, you can edit your database right on the Firebase website. You can also set the rights there, who can edit what. Very convenient, I advise.

I
illuzor, 2017-02-22
@iLLuzor

1) Server with admin panel. In the application, loading as needed.
2) Local database. You can write a desktop utility to add/remove/edit entries.

D
Dmitry Alexandrov, 2017-02-22
@jamakasi666

You already decide, first you want a tab in the application to add and then what could not be added.
In general, somewhere on the server on the internet, the database itself and the REST service, on the phone there is a local sqlite database, the application sends a request, for example, json to REST with a quote number, json with a quote comes in response, parse this json and push it into the local sqlite database. If you also need the user to be able to add the same thing, send a request from the phone with json in which everything you need and parse it on the server and push it into the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question