I created a webservice and the application and everything worked fine, however I would like my app to update the listview as soon as a new data is entered in the database (this data may come from another device) and I would like you to send a notification too , but my problem is in updating the listview, I think I should create an AsyncTask or a Service, however, I've read about them but I'm having a hard time understanding them and using them, so is there any other way to do this list update without the use of AsyncTask or Service, if not, does anyone have a good example to pass me?
I have an application that shows me the tasks I should do today, and this information is stored in a database that access through a webservice, however when a new task is inserted into the database I have to go in application and click the button to refresh the listview and thus the new task appears.
I would like when the new task was inserted into the database, my app on my phone would update the listview automatically and display a notification or play an audio or vibrate the phone and etc ...