I'm storing images in an SQLite database as bitmap. My code works but when I try to store large pictures (5 megapixels from the built in camera or storage) it crashes and screws up the database so that the app crashes whenever I try to launch it again.
How can I control image size before inserting into database? If the size is > 1 megapixel the apm will show an error message.