Skip to content Skip to sidebar Skip to footer

Sendding List Into A Kvmserializable Class

how I can to send a List of java.util.List inside a class that implements KvmSerializable in Ksoap2 on android?. when running the application I get the following error: java.lang.R

Solution 1:

There are several ways to make class serializable in ksoap2:

  1. Create marshall object for this class and addMapping for it
  2. Implement interface KvmSerializable
  3. SoapObject and Vector serializable by default.

List does not match any of this condition, so you get an error. You can create custom marshall object for class List or create custom class which would implement List interface and KvmSerializable. Or you can use Vector (or may be even convert your object to SoapObject by calling addProperty and addSoapObject).

Post a Comment for "Sendding List Into A Kvmserializable Class"