我试图将经度和纬度变量传递给Google地图片段的另一个活动。到目前为止,我已设法做到这一点将GPS坐标传递给活动
Intent i = new Intent(Main.this, Main2.class);
i.putExtra(Double.toString(gettextLong), xLocation.getLongitude());
i.putExtra(Double.toString(gettextLat), xLocation.getLatitude());'
如何在其他活动中接收它?
得到一些误差修改这里:类型不匹配无法从束转换为意图。方法getDouble(String)是未定义的类型意图 – ffs
尝试更新的答案! –
感谢您的帮助! – ffs