flood action iet technical bid a community organisation tool for android
TRANSCRIPT
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
Contacts Manager
Live Feeds
Development Tools
Fire Fox Sqlite Plugin
Eclipse Indigo with Android 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 • Bitmap resize objective to not exceed the 16MB Heap size!
Start
Decode Image
Width>512px
Reduce 1/4
Return new resize bitmap
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
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