httpリクエストでGPSデータを送信しようとしています。
問題は、GPSデータが二重形式であり、nameValuePair.add(new BasicNameValuePair(String, String)
double値は許可されません。
double値を送信したり、doubleを文字列に変換したりするにはどうすればよいですか?
ありがとう、
httpclient client = new defaulthttpclient();
httppost post = new httppost("web address");
post.setEntity(new UrlencodedFormEntity(nameValuePairs));
httpresponse response = client.execute(post);