Android和放大器; AdMob的意外的数据存储和缓存值放大器、缓存、数据存储、意外

2023-09-08 00:33:48 作者:§帅^是我的■本能※

将广告加入我的应用程序后,我注意到一些奇怪的记忆行为。在我的Andr​​oid手机,如果我去设置>应用>管理应用程序和GT;对myApp 我获得存储信息,我的应用程序。

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.

关心什么我是,数据存储大约为600KB,并且缓存超过2.5MB(相对于28KB和0KB最大不AdMob的)。一些试验和错误之后,我发现,数据存储价值似乎增加与缓存。如果我清空缓存并重新启动我的应用程序,数据值显著下降,回到了我希望我的程序。

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.

我不知道这个缓存是干什么的,但它关系到的AdMob。我没有在我的程序集成任何特定的缓存管理。我担心如果这个缓存内容的增加,因为它已经,那么我的应用程序的用户将无法IM pressed如果我的应用程序启动时占用10 + MB的空间。我应该担心吗?难道是因为我确实没有什么比重复运行我的应用程序了一天,没有任何其他应用程序或程序会从缓存中驱赶出局我的数据?我应该手动清除缓存?什么是它的目的与问候与AdMob?

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是刚刚缓存的广告,使广告加载更快。 Android操作系统将清除/ cache目录,如果文件系统已满,和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