我有一个类TrackingInfo扩展到RealmObject,它有一个名为RealmList savedPath的realmList ..MySavedLatLng扩展了RealmObject现在我想要获取对象
mRealm.allObjects(TrackingInfo.class);
RealmResults<TrackingInfo> trackinresult = mRealm.where(TrackingInfo.class).equalTo("order_id", order_id).findAll();
if (!trackinresult.isEmpty()) {
for (int i = trackinresult.size() - 1; i >= 0; i--) {
trackinresult.get(i);
double getdistanation=trackinresult.get(i).getSavedDistance();
double getduration=trackinresult.get(i).getSavedDuration();
int getOrder_id=trackinresult.get(i).getOrder_id();
RealmList<MySavedLatLng> getpath=trackinresult.get(i).getSavedPath();
Log.e("data saved",getdistanation+""+getduration+""+getOrder_id+"" +getpath+"");
Log.e("result", trackinresult.get(i) + "");
}
我想从MySavedLatLng对象中获取纬度和经度!! 我该怎么做 ? 感谢名单..