Mobile app uses a lot of cache memory - android

I have a problem. I created the android app, when I start the app I see 48,09 MB cache memory. My app uses different libraries, has a lot of classes. I can't find a reason why the app uses so many cache memory? How do I find the problem?
Interesting thing: When I start an empty app, this app uses approximately 4Mb cache memory , I think it's too much.

Related

Android Picasso, using cache

I have a photo gallery(list) in my app, and I use the Picasso library to display images.
But while using the app, the app crashed sometimes because of the Out of memory error. And after searching a web, I found the solution which is to disable using cache for Picasso library.
.memoryPolicy(MemoryPolicy.NO_STORE, MemoryPolicy.NO_CACHE)
After disabled using cache, the error is gone, but I think there is some smart way to using the cache.
Is there any guild line for using Picasso cache? like if the memory usage is closing to limit then, disable the using cache?
As I know, the Out of memory means that the application's memory limit is reached, maybe you try to load a really big image, or the memory for your app is not enough.
Maybe the top answer in this question can help you Simple Android App - Out of Memory error when running on smartphone

Application does not start, cache size

I am encountering an issue regarding my application. My application has local database. it is a courier delivery service application. I have noticed that when my application cache size reaches to 32MB or above. The application does not start.
After I clear cache and clear data from the settings. Application runs smooth.
Can anyone please tell me what I have to do in order to overcome it?

Android App uses a lot of cache memory

I'm new to android, so I don't have much experience with memory management. I don't explicitly cache any data myself, but for some reason my app uses a lot of cache memory. My app deals with a lot of bitmaps, so I can see why, but I don't know how to curtail this or keep it down. How do I restrict the amount of cache my program uses, and periodically clear the cache?

Android Application process scope in memory

Dear Folks,
I have idea regarding the general Memory Structure and how the OS manages the memory by using different mechanism!
I know that android uses linux kernel and there would be memory management module which would control access the way the memory is allocated to a process.
I recently had my doubt arising when i ran through the Out of memory exception in android.
Consider I have 10 images to be displayed in an activity and when my application opens the said activity all the 10 images would be loaded in memory and will be in the primary memory until my app is pushed to the background. This is how I understood so far regarding the processes in any operation system.
But I also ran into the doubt once the images are loaded in the memory and dispatched to the GUI I mean set to the activity , will not those images be present in primary memory or they will be cleared out from the memory ?
Please help me in understanding this!
I already Google -ed it, but not able to find what I needed
Thanks in Advance
This is completely wrong. You should not load 10 full sized images at all. You usually load them way smaller, directly from the disk into Thumbnails that are not a few megabytes each. You should read this article: https://developer.android.com/training/displaying-bitmaps/load-bitmap.html

Android & Admob unexpected data storage and cache values

after adding adMob ads to my application, I have noticed some strange memory behaviour. On my android phone, If I go Settings>Applications>Manage applications>myApp
I obtain the storage information for my app.
What concerned me was that the Data storage was around 600kb, and the Cache was over 2.5MB (as opposed to 28kb and 0kb maximum without admob).
After some trial and error, I discovered that the Data storage value seems to increase with the cache. If I clear the cache and restart my app, the data value drops significantly, back to what I would expect for my program.
I have no idea what this cache is doing, but it is related to adMob. I have not integrated any specific cache management in my program. I worry that if this cache content grows as it has been, then the users of my app will not be impressed if my App starts taking up 10+MB of space. Should I be worried? Could it be that because I did nothing than run my app repeatedly for a day that no other app or program will have outed my data from the cache? Should I manually clear the cache? what is it's purpose with regards to Admob?
Admob is just caching its ads so they load quicker. The Android OS will clear the /cache directory if the filesystem gets too full, and Admob should be managing its own cache size. You shouldn't have to worry about it
when use the admob,it save some file(cookies,index etc) under Android/yourfile/app_webview. if you dont want increase your data usage, you can delete the file before exit your app.

Categories

Resources