Answer the question
In order to leave comments, you need to log in
How to clear the cache of a specific application (programmatically)?
Hello.
I use wps office (office client to open doc, exl, pdf, etc.)
When I receive an email with an office file, I open it through wps office.
But I really do not want these files to be stored on my device.
Is it possible (programmatically) to make sure that the cache of this application and the files downloaded by it are deleted automatically? Let's say once a day?
Is there a ready-made product for this? Or do I need to write software from scratch
Answer the question
In order to leave comments, you need to log in
Who will give you the rights to one application to climb into another.
you root the device.
look in /data/data/ for the wps offic directory and see which directories contain extra information.
you write a script to delete these files (or a script in a special environment like AutomateIt, Tasker and MacroDroid...)
and run it when you need it.
option 2: periodically run CCleaner (with root of course) and the like, they clean the caches perfectly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question