开发者

Send ArrayList<GeoPoint> array in putExtra method

开发者 https://www.devze.com 2023-01-15 05:40 出处:网络
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 :

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

精彩评论

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

关注公众号