私はこのようなpojoを持っています:
public class LocationPoint {
protected double la;
protected double lo;
public double getLat() {
return la;
}
public void setLat(double value) {
this.la = value;
}
public double getLong() {
return lo;
}
public void setLong(double value) {
this.lo = value;
}
}
シナリオ:MapViewアクティビティで何かを実行した後、idと呼ばれるアクティビティに戻ります
if (resultCode == RESULT_OK) {
int latitude = data.getIntExtra("Latitude", 0);
int longitude = data.getIntExtra("Longitude", 0);
if (latitude!=0 && longitude!=0)
{
LocationPoint p = new LocationPoint();
p.setLat((double) latitude);
p.setLong((double) longitude);
}
int緯度=43802334およびint経度=24825592pで変換された値は、4.3802334E7および2.4825592E7です。
E7が原因でWebサービスがエラーをスローするため、double値をE7なしにします。私は何か間違ったことをしているので、その理由を理解できません。アドバイスをいただけますか?ありがとう