Commit 607295033863eef907c3dd62f2f7b20eefadec42

Authored by florian staine
1 parent 6414e7ce

Fix ',' in the URL

app/src/main/java/fr/utbm/lo53/p2017/positionningapp/network/URLSolver.java
... ... @@ -5,6 +5,8 @@ import android.content.SharedPreferences;
5 5 import android.net.Uri;
6 6 import android.util.Log;
7 7  
  8 +import java.util.Locale;
  9 +
8 10 public class URLSolver implements SharedPreferences.OnSharedPreferenceChangeListener {
9 11  
10 12 private static final String TAG = "URLSolver;";
... ... @@ -61,8 +63,8 @@ public class URLSolver implements SharedPreferences.OnSharedPreferenceChangeList
61 63 Uri.Builder b = baseURL();
62 64 b.appendPath("calibration")
63 65 .appendPath("request")
64   - .appendQueryParameter("X", String.format("%f",x))
65   - .appendQueryParameter("Y", String.format("%f",y))
  66 + .appendQueryParameter("X", String.format(Locale.US, "%f",x))
  67 + .appendQueryParameter("Y", String.format(Locale.US, "%f",y))
66 68 .appendQueryParameter("CLIENT_MAC_ADDR", mac)
67 69 .appendQueryParameter("MAP_ID", String.format("%d", map_id));
68 70 return b.build().toString();
... ...