简体   繁体   中英

How can I automatically run an android application after a given time

I Have an application that causes several downloads, and after a while these files will grow to the point where it'll be too much to handle (fills up device storage).

Is There a way to create an application in android studio using Java that automatically runs at at given time (like at the end of the day) to delete the files. Or is my only option to make an application that Runs on boot?

why are you handling files inside the app!!, I think all you need to do is to make a server and every time you need to do something just let the application send it to the server and the server will do all that,

check this video will let you know how to create a small server with a node.js easy way click here ,

check this video will help you how to send REST API requests to your server click here

and the hard work let the server do

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM