【发布时间】:2016-01-03 04:09:50
【问题描述】:
我正在使用具有 LatLong 对象的 mapsforge 库来存储地图上的点。不幸的是它只实现了 Serializable 接口,而不是 Parcelable。
public class LatLong implements Comparable<LatLong>, Serializable
在我的应用程序中,我有一个对象(我们称之为结果),其中存储了 LatLong 点的列表:
List<LatLong> points;
我的类 Result 实现了 Parcelable。
我的问题是如何写入 Parcel 一个列表,其中 LatLong 是可序列化的但不是 Parcelable? writeSerializable,writeTypedList 不工作。
【问题讨论】:
标签: android parcelable serializable parcel