11-12-2009 07:12 AM
We also are getting the MyLocationOverlay to cause a FC
11-12 08:55:56.449 W/dalvikvm( 4020): threadid=3: thread exiting with uncaught exception (group=0x4000ff28)11-12 08:55:56.479 E/AndroidRuntime( 4020): at com.google.android.maps.MapView.onDraw(MapView.jav
I also reported this to Cyanogen, as they had the issue : http://code.google.com/p/cyanogenmod/issues/detail
Not sure what they did to fix it, but they did fix it..
11-12-2009 09:06 PM
Hi Guys,
My Apologies - Seems like I was not paying full attention while reading this issue - I just presumed it was Overlays and tested with normal Overlay - The issue is with "MyLocationOverlay". I too get the Force Close now. We are investigating this internally but my guess is that this may invovle verifying with Google about the Maps libraries we are using - We shall keep you'll informed. Thanks for reporting this issue.
Thanks,
Karan
12-07-2009 11:32 AM
Any update on this issue?
This is a frustrating issue because it effects so many applications. I suspect that you have included the wrong Google API library in your build and it seems like this should be a simple fix. I tested it on the 1.1.3.1 release and it remains broken. Possibly related to this is the Google Logo on the bottom right of MapView displays is missing. The box displays a red background most likely a missing resource.
The two workarounds that I have now are:
1. Stop supporting cliq/dex until they upgrade to 1.6 by setting <uses-sdk android:minSdkVersion="4" /> in your manifest.
2. Extend the MyLocationOverlay class and draw method and manually position the icon.
- Another user has provided a Fixed class that you can implement
You are free to use and adapt the source code as you see fit:http://www.spectrekking.com/download/FixedMyLocati
onOverlay.java
And the accompanying drawable:
You can see how neither one are great solutions. Let me know if we can help push this issue forward at all.
Thanks.
12-07-2009 11:51 AM
Inside your MyLocationOverlay
You can put a try catch around the super() call.
That will prevent the dot from crashing the app. You can then use the location passed into MyLocationOverlay to manually draw the dot. If you need sample code let me know.. But should be pretty easy..
© Copyright 1994-2012 Motorola Mobility, Inc. All rights reserved.
Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.
Android, Android Market and YouTube are trademarks of Google, Inc.
DROID is a trademark of Lucasfilm Ltd. and its related companies. Used under license.
Source code displayed on this page may be licensed under Apache License, Version 2
Copyright © 2010, Android Open Source Project. All rights reserved unless otherwise explicitly indicated.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.