0
我遇到了我的應用程序,在摩托DEXT soley問題。我試圖重現我的英雄和1.5模擬器沒有運氣。摩托羅拉dext和谷歌地圖
該異常(請參閱下面的logcat代碼段)似乎來自系統代碼內部,所以我可能會失敗。
粗糙的jist是,用戶按下按鈕,新的MapActivity加載,他們看到網格開始,然後得到一個力量關閉。在加載MapActivity時加載一個自定義的MyLocationOverly(幾乎沒有改變,主要是一個讓地圖點擊被捕獲的kludge)。
有沒有其他人經歷過類似的事情,並且可以指出我是否會出錯。
02-12 18:21:18.587 I/ActivityManager( 83): Displayed activity uk.me.cpearson.runningLate/.LocationMap: 1589 ms
02-12 18:21:19.807 I/Maps.MyLocationOverlay(2094): Running deferred on first fix: [email protected]
02-12 18:21:19.907 W/dalvikvm(2094): threadid=3: thread exiting with uncaught exception (group=0x4000ff28)
02-12 18:21:19.907 E/AndroidRuntime(2094): Uncaught handler: thread main exiting due to uncaught exception
02-12 18:21:19.957 E/AndroidRuntime(2094): java.lang.ClassCastException: android.graphics.drawable.BitmapDrawable
02-12 18:21:19.957 E/AndroidRuntime(2094): at com.google.android.maps.MyLocationOverlay.getLocationDot(MyLocationOverlay.java:180)
02-12 18:21:19.957 E/AndroidRuntime(2094): at com.google.android.maps.MyLocationOverlay.drawMyLocation(MyLocationOverlay.java:561)
02-12 18:21:19.957 E/AndroidRuntime(2094): at com.google.android.maps.MyLocationOverlay.draw(MyLocationOverlay.java:511)
02-12 18:21:19.957 E/AndroidRuntime(2094): at com.google.android.maps.OverlayBundle.draw(OverlayBundle.java:45)
02-12 18:21:19.957 E/AndroidRuntime(2094): at com.google.android.maps.MapView.onDraw(MapView.java:471)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.view.View.draw(View.java:5838)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.view.ViewGroup.drawChild(ViewGroup.java:1486)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.view.ViewGroup.drawChild(ViewGroup.java:1484)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.view.View.draw(View.java:5841)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.widget.FrameLayout.draw(FrameLayout.java:352)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.view.ViewGroup.drawChild(ViewGroup.java:1486)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.view.ViewGroup.drawChild(ViewGroup.java:1484)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.view.View.draw(View.java:5841)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.widget.FrameLayout.draw(FrameLayout.java:352)
02-12 18:21:19.957 E/AndroidRuntime(2094): at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1904)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.view.ViewRoot.draw(ViewRoot.java:1239)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.view.ViewRoot.performTraversals(ViewRoot.java:1049)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.view.ViewRoot.handleMessage(ViewRoot.java:1518)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.os.Handler.dispatchMessage(Handler.java:99)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.os.Looper.loop(Looper.java:123)
02-12 18:21:19.957 E/AndroidRuntime(2094): at android.app.ActivityThread.main(ActivityThread.java:3977)
02-12 18:21:19.957 E/AndroidRuntime(2094): at java.lang.reflect.Method.invokeNative(Native Method)
02-12 18:21:19.957 E/AndroidRuntime(2094): at java.lang.reflect.Method.invoke(Method.java:521)
02-12 18:21:19.957 E/AndroidRuntime(2094): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
02-12 18:21:19.957 E/AndroidRuntime(2094): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
02-12 18:21:19.957 E/AndroidRuntime(2094): at dalvik.system.NativeStart.main(Native Method)
02-12 18:21:22.927 I/ActivityManager( 83): Process uk.me.cpearson.runningLate (pid 2094) has died.
02-12 18:21:22.937 I/WindowManager( 83): WIN DEATH: Window{43687060 Toast paused=false}
02-12 18:21:22.947 I/WindowManager( 83): WIN DEATH: Window{43677f00 uk.me.cpearson.runningLate/uk.me.cpearson.runningLate.Home paused=false}
02-12 18:21:22.947 I/WindowManager( 83): WIN DEATH: Window{43682890 uk.me.cpearson.runningLate/uk.me.cpearson.runningLate.LocationMap paused=false}
02-12 18:21:23.007 I/ActivityManager( 83): Start proc uk.me.cpearson.runningLate for activity uk.me.cpearson.runningLate/.Home: pid=2105 uid=10063 gids={3003}
如果您在這裏沒有得到任何答案,因爲這可能是摩托羅拉特有的問題,您可以嘗試MOTODEV支持主板。 – CommonsWare 2010-02-15 17:39:57