I have an Android application that sends data to a server via wireless, when sending changes from Activity B to A.
It turns out that when the connection is weak the application stops and gives the error below.
So I understand what I read in the SOen, because when I block my Activity B, you lose essential data that would be passed from Activity B to A and give the error.
Can anyone tell me a way to solve this?
PS: The process must be synchronous.
Error log:
09-30 14: 47: 22,999: E / Parcel (577): java.lang.ClassNotFoundException: com.example.objects.myObject 09-30 14: 47: 22,999: E / Parcel (577): at java.lang.Class.classForName (Native Method) 09-30 14: 47: 22,999: E / Parcel (577): at java.lang.Class.forName (Class.java:251) 09-30 14: 47: 22.999: E / Parcel (577): at java.lang.Class.forName (Class.java:216) 09-30 14: 47: 22,999: E / Parcel (577): at android.os.Parcel.readParcelableCreator (Parcel.java:2140) 09-30 14: 47: 22.999: E / Parcel (577): at android.os.Parcel.readParcelable (Parcel.java:2104) 09-30 14: 47: 22,999: E / Parcel (577): at android.os.Parcel.readValue (Parcel.java:2020) 09-30 14: 47: 22.999: E / Parcel (577): at android.os.Parcel.readArrayMapInternal (Parcel.java:2321) 09-30 14: 47: 22.999: E / Parcel (577): at android.os.Bundle.unparcel (Bundle.java:249) 09-30 14: 47: 22,999: E / Parcel (577): at android.os.Bundle.getString (Bundle.java:1118) 09-30 14: 47: 22.999: E / Parcel (577): at android.content.Intent.getStringExtra (Intent.java:5145) 09-30 14: 47: 22.999: E / Parcel (577): at com.android.server.am.ActivityStackSupervisor.startActivityLocked (ActivityStackSupervisor.java:1466) 09-30 14: 47: 22,999: E / Parcel (577): at com.android.server.am.ActivityStackSupervisor.startActivityMayWait (ActivityStackSupervisor.java:1061) 09-30 14: 47: 22,999: E / Parcel (577): at com.android.server.am.ActivityManagerService.startActivityAsUser (ActivityManagerService.java:4067) 09-30 14: 47: 22,999: E / Parcel (577): at com.android.server.am.ActivityManagerService.startActivity (ActivityManagerService.java:3965) 09-30 14: 47: 22,999: E / Parcel (577): at android.app.ActivityManagerNative.onTransact (ActivityManagerNative.java:159) 09-30 14: 47: 22,999: E / Parcel (577): at com.android.server.am.ActivityManagerService.onTransact (ActivityManagerService.java:2646) 09-30 14: 47: 22,999: E / Parcel (577): at android.os.Binder.execTransact (Binder.java:404) 09-30 14: 47: 22,999: E / Parcel (577): at dalvik.system.NativeStart.run (Native Method) 09-30 14: 47: 22,999: E / Parcel (577): Caused by: java.lang.NoClassDefFoundError: with / example / objects / myObject 09-30 14: 47: 22,999: E / Parcel (577): ... 18 more 09-30 14: 47: 22,999: E / Parcel (577): Caused by: java.lang.ClassNotFoundException: Did not find class "with.example.objects.myObject" on path: DexPathList [[directory "."], NativeLibraryDirectories = [/ vendor / lib, / system / lib]] 09-30 14: 47: 22,999: E / Parcel (577): at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:56) 09-30 14: 47: 22,999: E / Parcel (577): at java.lang.ClassLoader.loadClass (ClassLoader.java:497) 09-30 14: 47: 22.999: E / Parcel (577): at java.lang.ClassLoader.loadClass (ClassLoader.java:457)