Jetzt kostenlos registrieren: Mitglieder surfen ohne Werbung!

MapView - Absturz wenn Handy offline

  • 0 Antworten
  • Neuester Beitrag
Diskutiere MapView - Absturz wenn Handy offline im Android App Entwicklung im Bereich Betriebssysteme & Apps.
F

Flecki89

Neues Mitglied
Hallo. Ich habe in meiner App eine MapView, welche soweit auch das macht, was sie machen soll.

Öffne ich diese allerdings, wenn ich offline bin, stürzt die App ab.

Code:
09-22 12:48:52.348: ERROR/AndroidRuntime(17328): FATAL EXCEPTION: main
09-22 12:48:52.348: ERROR/AndroidRuntime(17328): java.lang.NullPointerException
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at com.google.android.maps.ItemizedOverlay.getItemsAtLocation(ItemizedOverlay.java:617)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at com.google.android.maps.ItemizedOverlay.getItemAtLocation(ItemizedOverlay.java:586)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at com.google.android.maps.ItemizedOverlay.handleMotionEvent(ItemizedOverlay.java:498)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at com.google.android.maps.ItemizedOverlay.onTouchEvent(ItemizedOverlay.java:572)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at com.google.android.maps.OverlayBundle.onTouchEvent(OverlayBundle.java:63)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at com.google.android.maps.MapView.onTouchEvent(MapView.java:643)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at android.view.View.dispatchTouchEvent(View.java:3765)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:905)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:871)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:871)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:871)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:871)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1701)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1116)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at android.app.Activity.dispatchTouchEvent(Activity.java:2093)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1685)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at android.view.ViewRoot.handleMessage(ViewRoot.java:1802)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at android.os.Handler.dispatchMessage(Handler.java:99)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at android.os.Looper.loop(Looper.java:144)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at android.app.ActivityThread.main(ActivityThread.java:4937)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at java.lang.reflect.Method.invokeNative(Native Method)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at java.lang.reflect.Method.invoke(Method.java:521)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
09-22 12:48:52.348: ERROR/AndroidRuntime(17328):     at dalvik.system.NativeStart.main(Native Method)
Wo kann ich hier einen Fehlerabfang machen? In meinen Klassen tritt ja keine Exception auf
 
Ähnliche Themen - MapView - Absturz wenn Handy offline Antworten Datum
2