I am able to update sqlite database and retrieving the data through a thread from my Activity. But i need to update the database using Service, which will update the database in every 5 minute, whether my Application running or not. So when i run the application, i will get data from current database.
I am stuck while writing Service to update the database.Can someone guide.
I am able to update sqlite database and retrieving the data through a thread
Share
Create a timer object on your service class
Timer timer=new Timer();On on create
Class DelayedTask