在Android中获取以下错误,同时在电话结束后将控制权恢复为应用。我们检查了完整的代码并确认所有对象都实现了 Serializable ,同时将数据从一个活动传递到另一个活动。
我们首先将值/对象存储在Bundle中,然后将其推送到intent。但是,当应用程序内的调用结束,并且控制权返回应用程序时,应用程序正在崩溃。
错误如下:
java.lang.IllegalStateException: Bad magic number for Bundle: 0x6f0063
at android.os.BaseBundle.readFromParcelInner(BaseBundle.java:1346)
at android.os.BaseBundle.readFromParcelInner(BaseBundle.java:1334)
at android.os.Bundle.readFromParcel(Bundle.java:1046)
at com.google.android.gms.maps.internal.IMapFragmentDelegate$zza$zza.onSaveInstanceState(Unknown Source)
at com.google.android.gms.maps.MapFragment$zza.onSaveInstanceState(Unknown Source)
at com.google.android.gms.dynamic.zza.onSaveInstanceState(Unknown Source)
at com.google.android.gms.maps.MapFragment.onSaveInstanceState(Unknown Source)
at android.app.Fragment.performSaveInstanceState(Fragment.java:2198)
at android.app.FragmentManagerImpl.saveFragmentBasicState(FragmentManager.java:1605)
at android.app.FragmentManagerImpl.saveAllState(FragmentManager.java:1662)
at android.app.Fragment.performSaveInstanceState(Fragment.java:2200)
at android.app.FragmentManagerImpl.saveFragmentBasicState(FragmentManager.java:1605)
at android.app.FragmentManagerImpl.saveAllState(FragmentManager.java:1662)
at android.app.Activity.onSaveInstanceState(Activity.java:1389)
at android.app.Activity.performSaveInstanceState(Activity.java:1320)
at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1288)
at android.app.ActivityThread.callCallActivityOnSaveInstanceState(ActivityThread.java:3973)
at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:3384)
at android.app.ActivityThread.handleStopActivity(ActivityThread.java:3440)
at android.app.ActivityThread.access$1200(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1342)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5273)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)