I would like to create a service that it just executes a php file in server in order to retrieve a table data count/number of records.
$query = "SELECT COUNT(id_person) FROM user_details";
Normally, I’m using an AsyncTaskclass to execute a php file in server (ProgressDialog, etc…) and that’s working perfectly. However, i’d like to make that check in a Service, so that if the count has changed i trigger a notification. Any idea please of how making that ? Thank you very much.
I would like to create a service that it just executes a php file
Share
You can trigger a broadcast from your service, and then implement a BroadCastReceiver that does the processing.
Then