194 |
data.add( new BasicNameValuePair("title", titleStr) ); |
data.add( new BasicNameValuePair("title", titleStr) ); |
195 |
data.add( new BasicNameValuePair("note", noteStr) ); |
data.add( new BasicNameValuePair("note", noteStr) ); |
196 |
|
|
197 |
data.add( new BasicNameValuePair("latitude", hasLoc ? Float.toString((float)currentLocation.getLatitude()) : "-") ); |
data.add( new BasicNameValuePair("latitude", hasLoc ? Float.toString((float)currentLocation.getLatitude()) : "") ); |
198 |
data.add( new BasicNameValuePair("longitude", hasLoc ? Float.toString((float)currentLocation.getLongitude()) : "-" ) ); |
data.add( new BasicNameValuePair("longitude", hasLoc ? Float.toString((float)currentLocation.getLongitude()) : "" ) ); |
199 |
|
|
200 |
String encoded = URLEncodedUtils.format(data, "UTF-8"); |
String encoded = URLEncodedUtils.format(data, "UTF-8"); |
201 |
entity.addPart("text", new StringBody(encoded, URLEncodedUtils.CONTENT_TYPE, Charset.forName("UTF-8") )); |
entity.addPart("text", new StringBody(encoded, URLEncodedUtils.CONTENT_TYPE, Charset.forName("UTF-8") )); |