/[projects]/android/PicturePoster/src/dk/thoerup/pictureposter/PostActivity.java
ViewVC logotype

Diff of /android/PicturePoster/src/dk/thoerup/pictureposter/PostActivity.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 599 by torben, Sun Feb 21 18:09:14 2010 UTC revision 600 by torben, Sun Feb 21 19:59:36 2010 UTC
# Line 194  public class PostActivity extends Activi Line 194  public class PostActivity extends Activi
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") ));

Legend:
Removed from v.599  
changed lines
  Added in v.600

  ViewVC Help
Powered by ViewVC 1.1.20