90 likes | 179 Views
Flood Action IET Technical Bid. A community organisation tool for android. Our Innovation. Digital Platform for planning a response to environmental flooding Integration with smartphone hardware was critical. Camera Feature
E N D
Flood ActionIET Technical Bid A community organisation tool for android
Our Innovation • Digital Platform for planning a response to environmental flooding • Integration with smartphone hardware was critical. • Camera Feature • Encountered problems with holding images in the application
Integration SQLite Live Feeds Contacts Manager
Development Tools Eclipse Indigo with Android Plugin Fire Fox Sqlite Plugin Test Hardware link Camera Android AVD Emulate phone
The Limitations Screen Size 480 x 800 px of phone( ZTE Blade) Camera take Jpeg pictures at 2048 x 1536px Android Virtual Machine App limited to 16 MB
The Problems Remember application runs at 16MB! Image Jpeg on SD 2048 x 1536px = 1.0MB Display Bitmap BMP 2048 x 1536px = 9.4MB Showing more 2 images BMP 9.4MB x 2 = 18.8MB exceeding the 16 MB Heap.
Engineered Solution Start Decode jpeg to temp space as Bitmap Check save on computation of small images Then divide by 4 as 2048 / 4 = 512 px 2048 / 4 = 512 px width & 1536 /4 = 384 px new size is 512 x 384 px bitmap = 62.4kb Decode Image Width>512px Reduce 1/4 Return new resize bitmap Bitmap resize objective to not exceed the 16MB Heap size!
What Can The User do? • View all images in Gallery view • Allow for smooth animation • Efficient use of running memory
Summary • Unique development in community organisation and flood planning • Integrated with available services to give up-to-date information • Overcome a technical problem using knowledge of image compression