即時得到即使在最基本的形式開始MapActivity時「未閉合光標檢測」:非閉合光標檢測
protected void onCreate(Bundle icicle) {
super.onCreate(icicle); // <--- The Exception occurs here
setContentView(R.layout.layout_map);
}
異常後,地圖開始和它的作品完美,但該異常每一次它開始的活動真的困擾我。
除外:
12月4日至四日:02:22.858:W /光標(14122):未關閉的光標檢測 12月4日至四日:02:22.866:W /光標(14122):在android.content.ContentResolver.query(ContentResolver.java:258) 04-04 12:02:22.866:W /光標(14122):com.google.common.android.AndroidConfig.getSetting(Unknown Source) 04- 04 12:02:22.866:W /光標(14122):在com.google.common.android.AndroidConfig.getDistributionChannelInternal(未知源) 04-04 12:02:22.866:W /光標(14122):at com。 google.common.Config.init(未知來源) 04-04 12:02:22.866:W /光標(14122): (未知來源) 04-04 12:02:22.866:W /光標(14122):在com.google.common.android.AndroidConfig。(未知來源) 04- 04 12:02:22.866:W /光標(14122):在com.google.android.maps.MapActivity.onCreate(MapActivity.java:405) 04-04 12:02:22.866:W /光標(14122)在com.myapp.activity.MyMapActivity.onCreate(MyMapActivity.java:25) 04-04 12:02:22.874:W /光標(14122):在android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 04-04 12:02:22.874:W /光標(14122):在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2717) 04-04 12:02:22.874:W /光標(14122):在android .app.ActivityThread.handleLaunchActivity(ActivityThread.java:2769) 04-04 12:02:22.874:W /光標(14122):在android.app.A cactiveThread.access $ 2500(ActivityThread.java:129) 04-04 12:02:22.874:W/Cursor(14122):at android.app.ActivityThread $ H.handleMessage(ActivityThread.java:2117) 04-04 12 :02:22.874:W /光標(14122):在android.os.Handler.dispatchMessage(Handler.java:99) 04-04 12:02:22.874:W /光標(14122):在android.os.Looper .loop(Looper.java:143) 04-04 12:02:22.874:W/Cursor(14122):at android.app.ActivityThread.main(ActivityThread.java:4717) 04-04 12:02:22.874 :W/Cursor(14122):at java.lang.reflect.Method.invokeNative(Native Method) 04-04 12:02:22.882:W/Cursor(14122):at java.lang.reflect.Method.invoke Method.java:521) 04-04 12:02:22.882:W/Cursor(14122):at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:858) 04-04 12:02:22.882:W /光標(14122):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 04-04 12:02:22.882:W /光標(14122):at dalvik.system.NativeStart.main(本機方法)
我在網上搜索,但一無所獲...... 額外的信息:
- 進出口使用谷歌API 2.2
- 測試它的設備上和AVD
- 有其他使用Google API 2.1的地圖項目(沒有那個例外)
- 我AndroidManifest不遺漏任何東西(因此地圖開始和作品的異常被拋出後)
幫助表示讚賞!
編輯:
我更新谷歌都API級別7,8(問題開始8)現在它發生在API第7級太...
繡球幫我注意到包變量名稱在我的MapActivity(冰柱)不同於「標準」(savedInstanceState)也許這與問題有關?
沒有任何數據庫連接。 – Lisandro 2012-04-05 21:29:56