B4A Library Creat Your Own CacheCleaner App

Discussion in 'Additional libraries, classes and official updates' started by mohsen nasrabady, May 10, 2015.

Similar threads

B4A Tutorial Integrating Firebase Services
B4A Tutorial Google Maps
Java Question CacheCleaner
B4A Library CacheCleaner
B4A Tutorial Device Owner / TaskLock / Kiosk apps 2017
  1. mohsen nasrabady

    mohsen nasrabady Active Member Licensed User

    Finally I Could Write This Library
    i hope this can help you

    this library scan and clean cache data of all apps

    Add This Line to Your Monifest
    Code:
    AddApplicationText(<service android:name="com.frozendevs.cache.cleaner.model.CleanerService"/>)
     

    Attached Files:

    Last edited: May 11, 2015
    koaunglay and jsanchezc like this.
  2. mr23

    mr23 Active Member Licensed User

  3. bkoch0331

    bkoch0331 New Member Licensed User

    Mohsen, I was hoping you could help me understand the values CleanCacheExample displays when compared to system values (Settings->Application Managment->Gallery)

    - Before running, App Info displays : 2.08MB
    - CleanCacheExample displays after Scan Button : 16.00KB
    - CleanCacheExample displays after Clean Button : 8.00KB
    - After exit, App Info displays : 12.00KB

    There seems to be a significant difference in value initially - App Info shows a Cache value of 2.08MB and CleanCacheExample shows a Cache value of 16.00KB. However, after running CleanCache, the differences are small - App Info shows 12.00KB and CleanCacheExample shows 8.00KB.

    Attached are the screenshots showing both system and application values.

    Appreciate any assistance.

    cleanCacheExample_snapShots.PNG

    Using SGN2 (SGH-T892), Andrioid version 4.3 (not rooted), compiled with b4a (5.02)
     
  4. mohsen nasrabady

    mohsen nasrabady Active Member Licensed User

    hi sorry i dont know what's the problem?
    i see that in android kitkat and android 5
    in android 2.3 the cache cleared completly
     
  5. bkoch0331

    bkoch0331 New Member Licensed User

    Thanks for getting back to me. I believe the problem may be in my understanding of the return values from each library routine: ScanCache and CleanCache.

    How are the actual app's cache size determined?

    Why would there be a difference between what one of the library routine displays versus what the system shows e.g. Settings->Application Management->All e.g. the Samsung Gallery app. (see above attachment)

    The library does reduce the cache size for each app, however, the cache size is reduced to 8KB and not 0Kb.

    Is this to be expected?
     
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