I have an android application where I am storing user\'s data on database when he/she activates the app. My app requires the user to stop the application manually in order t
Try this way,hope this will help you to solve your problem.
new Timer().scheduleAtFixedRate(task, after, interval);