inversebit / imek

Generate a native Android UI from a sketched interface
https://inversebit.github.io/imek/2017/11/21/imek-intro.html
MIT License
1 stars 1 forks source link

Cleanup storage after generating UI #5

Closed inversebit closed 6 years ago

inversebit commented 6 years ago

The app keeps hoarding storage MBs.

Investigate what it is saving and write the code to clean up all unnecessary storage space after using it.

inversebit commented 6 years ago

So... deleteOnExit doesn't work

The unix trick of deleting files after opening them seems nice, but it won't work with the original image. If I delete it on the ImageParsingTask then the DebugActivity wouldn't be able to open it. And if I don't delete it there and the DebugActivity is not used the image would stay there.

So, two methods will be applied:

This may conflict with the current back behaviour, #4 may solve any problems here