I am creating an app where user data should be saved in my database. When a user submit certain data like "name" "personal note" I need to get a real time notification from my MySQL database. How do I implement this?
Asked
Active
Viewed 432 times
0
-
did you try anything yet? – dy_ Nov 23 '15 at 15:51
-
Yes .. Someone suggested using jquery for local notification from db.. But am fairly new to this. I couldn't implement it. – Abhilash Murali Nov 23 '15 at 15:54
-
Maybe you should learn some basics first before implementing this. What you need is a ContentObserver. See this post for some sample code to listen to database changes: http://stackoverflow.com/questions/1401280/how-to-listen-for-changes-in-contact-database – dy_ Nov 23 '15 at 16:11
-
Thanks a lot... I will refer that for now. – Abhilash Murali Nov 23 '15 at 16:12
-
I am using only external database. I need a notification on my pc. – Abhilash Murali Nov 23 '15 at 16:17
1 Answers
0
It may be easier to create a notification from the submission, rather that from the database.
Which User on which database ? Who is client, who is server ?

compte14031879
- 1,531
- 14
- 27
-
Android app is the client .. It's a simple app where can can submit "name" "phone Number" .. Am hosting a MySQL server where the data should be stored from the Android application. I will have a php script on the server which will receive the data from Android app and store it in database. I need to refresh the db every time to see if I received any data..I want to get a notification every time user submit data from the app. That's what am looking to implement. – Abhilash Murali Nov 23 '15 at 16:10