开发者

Send ArrayList<GeoPoint> array in putExtra method

I hav开发者_如何学编程e created Intent and I put data using putExtramethod.

Now I want to put my geoPointsArraytype variable to my intent object, here is type of geoPointsArray :

List<GeoPoint> geoPointsArray = new ArrayList<GeoPoint>();

In existing methods putExtraI 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜