P
P
paulvales2016-02-10 10:59:26
Android
paulvales, 2016-02-10 10:59:26

How to automatically update data in an Android application?

Hello! I'm trying to create an application to work with the Mysql database, the catch is that I need an alert when a new record appears, but a new record appears only after manually refreshing the screen. Maybe somehow you can do it automatically with an interval, or with sockets. I would be grateful for useful links to lessons and articles.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey, 2016-02-10
@kozinakoff

You can make a service that will knock on the database at a certain interval, something like this: https ://xjaphx.wordpress.com/2012/07/07/create-as...
people", then I recommend paying attention to how Google itself advises solving such a problem: https://habrahabr.ru/post/240543/

N
Nicholas, 2016-02-11
@ACCNCC

There is such a topic as mysql-events for nodejs, it will report when a new record appears, etc. in the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question