Skip to content Skip to sidebar Skip to footer

Require Help While Writing Date Value To Parceable Class In Android

We're getting Null Pointer Exception while writing Date value to Parceable Class in Android. We wanted to know what is the correct way to write Date Value to Parceable class This i

Solution 1:

 private Date mDueDate = Calendar.getInstance().getTime();

instead to serialize the Date object, get the long rapresenting the time in milliseconds and serialize that long. When you deserialize the object you can recreate the Date object


Post a Comment for "Require Help While Writing Date Value To Parceable Class In Android"