I am just trying to fire a sql query to delete some data from db in my application. The point is that the sql query is going to be fire after some specified duration(like some days 1 or 2 days), in that time my application may be in idle state…
Share
You have to use android AlarmManager.
Schedule a Receiver that will be fired at specific time as you needed and in onReceive write code for deleting from datbase
Set the alarm like
);
and in the receiver write code for deletion