Send ArrayList<GeoPoint> array in putExtra method
I hav开发者_如何学编程e created Intent and I put data using putExtra
method.
Now I want to put my geoPointsArray
type variable to my intent object, here is type of geoPointsArray :
List<GeoPoint> geoPointsArray = new ArrayList<GeoPoint>();
In existing methods putExtra
I can't find how to put my custom type.
Can someone help me with this?
Thanks
GeoPoint
must be Parcelable or Serializable. So you should subclass it to add these functionalities as I think they miss from the original implementation.
Then look into these other questions they will help you. Serialization issue with SortedSet, Arrays, an Serializable
精彩评论