Programmatically clearing map cache

I have caching enabled in my SupportMapFragment created with the Android Google Maps API v2. I'd like to be able to programmatically clear the cache of my program within the application itself, a requirement being levied on me. I am doing this using the trimCache() method described here by crony_cd.

When I execute this method though, it only seems to be deleting a small piece of the cache, presumably the cache files that my own application is creating, not the cache files created by the Google Maps API. Is it possible to wipe the cache that the Maps API produces?


As far as I know no. The cache is controlled by Googles maps library on a project to project basis. That means tiles are cached for each app using maps. When you've decided to use Googles Maps library you'll also have to live with this, trying to remove these files or doing something with reflection will only possibly break your app with future updates of Google services.


This is the same for me: my cache contains new files and one of its files has a size of 2.2M (and it can go until 20-30M.)...Those files appear only when I open the map activity.

So I guess that this is the cache map. But to my opinion, due to the size, it is not a link...

I do not have any idea for the moment on the way to manage this cache. I think it is not our job...


  • Query tangled array in Pymongo
  • Yahoo-Finance module doesn't work anymore? [duplicate]
  • Get the clientWidth and clientHeight of resized image
  • Execute compiled ClojureScript from the commandline with Rhino
  • using xpaths in javascript
  • Failed: Cannot read property 'getWebElements' of undefined
  • Protractor UI Tests fail with Jenkins, successful on WinServer on cmd run
  • 400 Bad Request Required: X-Goog-Encode-Response-If-Executable
  • Display Dialog from Chrome Extension
  • How to create an element using values of already existed elements in a dict, inside a list?
  • Selenium: Unable to Select DropDown
  • Google Closure Compiler advanced: remove code blocks at compile time
  • Matplotlib: Plot 3d data with alpha
  • Web scraping information other than price from Yahoo Finance in Python 3
  • Does aria-hidden=true mean you don't have to use display:none?
  • How to redirect pages in ASP MVC using AngularJS?
  • Read data from a txt file without downloading it?
  • Why is my event listener written in Google Closure not working?
  • React textarea with value is readonly but need to be updated
  • Kubernetes 1.7 on Google Cloud: FailedSync Error syncing pod, SandboxChanged Pod sandbox changed, it
  • How to initialize context? [closed]
  • Express displaying mongodb documents in Jade
  • Fat binaries in iOS
  • Are there any side effects from calling SQLAlchemy flush() within code?
  • Put value at centre of bins for histogram
  • Magento site down due to mysql error General error: 1030 Got error -1 from storage engine
  • User messaging system
  • ASP.NET MVC Application won't update some controllers
  • Java color detection
  • Security issues with PHP's Readfile method
  • SharedPreferences or SQLite Database?
  • onBackPressed() not being executed
  • Using $this when not in object context
  • Uncaught Error: Could not find module `ember-load-initializers`
  • Trying to switch camera back to front but getting exception
  • Delete MySQLi record without showing the id in the URL
  • json Serialization in asp
  • Free memory of cv::Mat loaded using FileStorage API
  • Angular 2 constructor injection vs direct access
  • Programmatically clearing map cache