As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
hi.. anybody can provide code .. i have same problem in serialization of GenericJson extended class..
public Child(HashMap map){
for(String key : map.keySet()){
this.put(key, map.get(key));
}
}
i put this constructor in class but is show error : Type mismatch cannot convert from element type object to string.
thnx.
Sukhpal,
We do not generally provide custom code for people. There are perfectly working examples of code above in this thread outlining not only how to use it, but with Ed going into detail of expected data types, returns, etc. This entire example is rather contingent upon the last line that Ed said, which is:
Car car = new Car((HashMap) this.getIntent().getSerializableExtra("car"));
Without that, you will get a type error. If you are having issues that defy the code provided above (which you have not proven at this time) please let us know.
Thanks,
fabreax
I'm using an object retrieved from Kinvey :
public class Car extends GenericJson implements Serializable {... }
I'm trying to move a Car object from one Activity to another :
In ActivityA :
Bundle bundle = new Bundle();
bundle.putSerializable("car", car);
Intent intent = new Intent(context, ActivityB.class);
intent.putExtras(bundle);
startActivity(intent);
In ActivityB :
Bundle bundle = this.getIntent().getExtras();
car = (Car) bundle.get("car");
But I'm facing an exception : java.lang.ClassCastException: java.util.HashMap cannot be cast to com.mypackage.Car
Could you help me to make it working ?
Thank you.