Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

updated apk files are remained #376

Closed
YoungjaeKim opened this issue May 10, 2018 · 1 comment
Closed

updated apk files are remained #376

YoungjaeKim opened this issue May 10, 2018 · 1 comment

Comments

@YoungjaeKim
Copy link

I found that updated apk files are in download directory.
Below code is what I did in my project.

It would be good to remove previous ones, or provide RemoveDownloaded option to UpdateManager.

private void removeUpdateApk() {
    File externalFileDir = getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS);
    File[] apkList = externalFileDir.listFiles(new FilenameFilter() {
        @Override
        public boolean accept(File dir, String name) {
            return name.endsWith(".apk");
        }
    });
    for(File file : apkList) {
        file.delete();
    }
}  
@ElektrojungeAtWork
Copy link
Contributor

Hi @YoungjaeKim,

this is a known issue but I cannot provide you with an ETA for this as we're working on making App Center awesome.
In fact, the App Center SDK behaves differently and cleans up app updates.

Please get in touch if you have further questions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants