Android Question Get Installed App's Cache Size

Discussion in 'Android Questions' started by cambopad, May 31, 2015.

  1. cambopad

    cambopad Active Member Licensed User

    Hi, all B4A-ers!
    How can I get the Cache Size of an already installed app on Android phone? I spent hours searching everywhere in this site, but found no answers at all!

    Can anyone post some code examples on how to get the Cache Size of the installed application?

    Thanks you in advance!
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Do you want to get the cache size of your app or of a different app?
     
    cambopad likes this.
  3. cambopad

    cambopad Active Member Licensed User

    Hi @Erel! I want to get the Cache size of the other apps, not my own app. Can you provide me some sample code?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    I don't think that it is possible to find the cache size of other applications.
     
  5. cambopad

    cambopad Active Member Licensed User

    Hi, Erel! Thanks you for your reply!
    I have found out that many apps on Playstore can do that. For example, App Cache Cleaner.But I don't know how they do it :(.
    2015-06-01_184204.png
    I searched again all over the Internet, and found this on Stackoverflow.

    http://stackoverflow.com/questions/...ulate-all-cache-size-of-installed-application

    I tried to test it using Inline Java Code, but I can't get it working as I am really a noob in Java :(

    Please help me!
    Thanks you,
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice