flood action iet technical bid a community organisation tool for android
TRANSCRIPT
![Page 1: Flood Action IET Technical Bid A community organisation tool for android](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649e5f5503460f94b5a0d4/html5/thumbnails/1.jpg)
Flood ActionIET Technical Bid
A community organisation tool for android
![Page 2: Flood Action IET Technical Bid A community organisation tool for android](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649e5f5503460f94b5a0d4/html5/thumbnails/2.jpg)
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
![Page 3: Flood Action IET Technical Bid A community organisation tool for android](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649e5f5503460f94b5a0d4/html5/thumbnails/3.jpg)
Integration
SQLite
Contacts Manager
Live Feeds
![Page 4: Flood Action IET Technical Bid A community organisation tool for android](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649e5f5503460f94b5a0d4/html5/thumbnails/4.jpg)
Development Tools
Fire Fox Sqlite Plugin
Eclipse Indigo with Android Plugin
Test Hardware link Camera Android AVD
Emulate phone
![Page 5: Flood Action IET Technical Bid A community organisation tool for android](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649e5f5503460f94b5a0d4/html5/thumbnails/5.jpg)
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
![Page 6: Flood Action IET Technical Bid A community organisation tool for android](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649e5f5503460f94b5a0d4/html5/thumbnails/6.jpg)
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.
![Page 7: Flood Action IET Technical Bid A community organisation tool for android](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649e5f5503460f94b5a0d4/html5/thumbnails/7.jpg)
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
![Page 8: Flood Action IET Technical Bid A community organisation tool for android](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649e5f5503460f94b5a0d4/html5/thumbnails/8.jpg)
What Can The User do?
• View all images in Gallery view
• Allow for smooth animation
• Efficient use of running memory
![Page 9: Flood Action IET Technical Bid A community organisation tool for android](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649e5f5503460f94b5a0d4/html5/thumbnails/9.jpg)
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