redbus: workaround core map crash on 1.6/2.1 devices

I’ve been working with a redbus user today to fix a mysterious crash in the view maps GUI. I’d originally thought it was the out of memory issue I had already fixed. However, it turned out to be an OS bug on the Dell Streak and other 1.6/2.1 android devices. There’s a discussion thread on it here.

Basically if you use the "MyLocationOverlay", it crashes when it tries to draw the indicator circle. The workaround I’ve put in place is to trap the exception and simply ignore it. You won’t get an indicator of your location on the affected devices, but the map will work, and it will centre the screen around you.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: