curia007 / osmbonuspack

Automatically exported from code.google.com/p/osmbonuspack
0 stars 0 forks source link

Android2.1 crashes in RadiusMarkerClusterer #109

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When starting an app in the android2.1 Emulator that uses RadiusMarkerClusterer 
the app crashes (app has unexpectedly stopped)

i identified this line of code as the source

// this code is used to genereate a marker-icon with the number of clusted 
Points inside:

Bitmap finalIcon = Bitmap.createBitmap(mClusterIcon.getWidth(), 
mClusterIcon.getHeight(), mClusterIcon.getConfig());

this is probably due to a bug in android-2.1. in android-4.4 the code works as 
expected. I have no info which android Versions are affected.

After changing the line to

Bitmap finalIcon = Bitmap.createBitmap(mClusterIcon.getWidth(), 
mClusterIcon.getHeight(), Bitmap.Config.ARGB_8888);

the code works under android-2.1

Original issue reported on code.google.com by klaus3b...@yahoo.de on 30 Jan 2015 at 4:01

GoogleCodeExporter commented 8 years ago
sorry i have no permission to Change the title of the ticket:

Can someone Change the titile to "App uncaught exception in 
RadiusMarkerClusterer when using android-2.1"

Original comment by klaus3b...@yahoo.de on 30 Jan 2015 at 4:07