I am trying to create a ground overlay similar as those available in web APIs provided by Google.
I came across these on StackOverflow
does-android-maps-support-ground-overlay
android-google-maps-groundoverlay
I have implemented both of them with a bit of tweaking, but problem is same with both of them. When area is large to cover especially when zoomed in at high levels I get VMBudget error and application crashes.
I have tried all the tuning while scaling bitmaps for the overlay, like recycling and using BitmapOptions, but no success.
The sole issue is 16 MB VM Budget proves to be insufficient for the scaling at runtime more than 3500px image is required at max zoom in my case and since draw() overlay calls almost every ms its eating up.
I need a solution which can crop image to the screen size.