]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/commit
Fix application crashing issue master
authorMichal Horn <hornmich@fel.cvut.cz>
Mon, 23 Feb 2015 16:36:45 +0000 (17:36 +0100)
committerMichal Horn <hornmich@fel.cvut.cz>
Mon, 23 Feb 2015 16:36:45 +0000 (17:36 +0100)
commit1937e50accd8bdcc77272d1725d042d57ec01776
treeaabb24d56b2e090cec6d5d3e9bbec4b43487fe2a
parent50cc2c5e8a28aeb1497959e38270abf4df4d1a62
Fix application crashing issue

The application crasched after approximately 10 screen rotation repetitions
with an out of memory exception.
Forcing the Garbage Collector to clean the memory from unused bitmap references
solved the problem.

On Google Glass this is no issue because there is no screen rotation feature.
QRScanner/mobile/src/main/java/cz/cvut/fel/dce/qrscanner/PreviewActivity.java