Easiest way to detect / listen for MySQL database changes from an Android application?

My question is indicated in the title.

More specific? In my MySQL database, I have a “events” table, and every time an event is added / deleted, I would like to update points on the map in my Android application.

If possible, a tutorial or sample code will also be very helpful as I am still new to Android and exploring Android.

Appreciated.

+3
source share
2 answers

You can use C2DM to notify an Android application of database changes on your server:

https://developers.google.com/android/c2dm/

Update

: C2DM 26 2012 20 2015 . C2DM Google Cloud Messaging (GCM). . C2DM-GCM. GCM .

C2DM , Firebase GCM ( )

FCM

Firebase Cloud Messaging (FCM) - GCM. GCM, ! . , . , FCM. GCM FCM, FCM .

GCM

+2

, → MySQL Android → SQLite.

- → , .

... , , - .

0

All Articles