D devmobile Active Member Licensed User Aug 8, 2017 #1 I use some library that save data on ram(cache) example picasso How do i can clear this cache?
Computersmith64 Well-Known Member Licensed User Longtime User Aug 9, 2017 #2 I don't think it's possible in code. I think the only way to do it is via the app manager on your device. I could be wrong though - have you tried searching the forum for "Clear cache" or something similar? - Colin. Upvote 0
I don't think it's possible in code. I think the only way to do it is via the app manager on your device. I could be wrong though - have you tried searching the forum for "Clear cache" or something similar? - Colin.
D devmobile Active Member Licensed User Aug 9, 2017 #3 Computersmith64 said: I don't think it's possible in code. I think the only way to do it is via the app manager on your device. I could be wrong though - have you tried searching the forum for "Clear cache" or something similar? - Colin. Click to expand... It is bad solution. Maybe my app cache many files in device,so it shoule able to clear it without user action Upvote 0
Computersmith64 said: I don't think it's possible in code. I think the only way to do it is via the app manager on your device. I could be wrong though - have you tried searching the forum for "Clear cache" or something similar? - Colin. Click to expand... It is bad solution. Maybe my app cache many files in device,so it shoule able to clear it without user action
eps Expert Licensed User Longtime User Aug 9, 2017 #4 Recycler I think - if it's items held in memory as opposed to files stored for instance. ETA : Maybe this? https://www.b4x.com/android/forum/threads/java-method-recycle-not-found.17950/#content Search for Garbage Collection / Collector in the forum. Most of the time you shouldn't need to do this, but sometimes... Upvote 0
Recycler I think - if it's items held in memory as opposed to files stored for instance. ETA : Maybe this? https://www.b4x.com/android/forum/threads/java-method-recycle-not-found.17950/#content Search for Garbage Collection / Collector in the forum. Most of the time you shouldn't need to do this, but sometimes...
Erel B4X founder Staff member Licensed User Longtime User Aug 9, 2017 #5 There is no such thing. If a library stores something in memory then you need to clear the relevant references that are inside the library. You cannot do it externally unless the library exposes such a method. Upvote 0
There is no such thing. If a library stores something in memory then you need to clear the relevant references that are inside the library. You cannot do it externally unless the library exposes such a method.
D devmobile Active Member Licensed User Aug 9, 2017 #6 Erel said: There is no such thing. If a library stores something in memory then you need to clear the relevant references that are inside the library. You cannot do it externally unless the library exposes such a method. Click to expand... Thanks Upvote 0
Erel said: There is no such thing. If a library stores something in memory then you need to clear the relevant references that are inside the library. You cannot do it externally unless the library exposes such a method. Click to expand... Thanks
eps Expert Licensed User Longtime User Aug 9, 2017 #7 What exactly are you attempting to clear, is it memory or files, a combination of both or something else altogether? I'm not familiar with the Picasso stuff you mention. Upvote 0
What exactly are you attempting to clear, is it memory or files, a combination of both or something else altogether? I'm not familiar with the Picasso stuff you mention.