Storage keeps going up on each run

15 views
Skip to first unread message

Gareth Murfin

unread,
Aug 6, 2016, 10:48:10 PM8/6/16
to CodenameOne Discussions

If I run my app and exit and run it again (Android) and check the app settings->storage - it goes up about 100k each time. I have made sure my code deletes anything it downloads (like a photo) so why is the storage going up? Some users are complaining if they use my app a lot it takes up more and more, up to 10 meg+. Indeed mine is now using 16.27meg and if I rerun it right now it goes up to 16.37, then 16.47,16.57 etc. This happens consistently even without any photo downloading, and code to delete all files (which finds none after first time photo so grabbed and deleted).

Anything that I write to storage is overwritten on each run (simple preferences), so I dont think that is it either.

Gareth Murfin

unread,
Aug 6, 2016, 11:01:46 PM8/6/16
to CodenameOne Discussions
Actually when I turn off all system outs, it doesnt happen!.. maybe the log is cached? 

Shai Almog

unread,
Aug 7, 2016, 1:22:44 AM8/7/16
to CodenameOne Discussions
Yes, logs are appended.

Gareth Murfin

unread,
Aug 7, 2016, 1:43:03 AM8/7/16
to CodenameOne Discussions
OK, thanks, all good, the messages are off for release. thanks for clearing that up.

On Sunday, August 7, 2016 at 1:22:44 PM UTC+8, Shai Almog wrote:
Yes, logs are appended.
Reply all
Reply to author
Forward
0 new messages