Commit 607295033863eef907c3dd62f2f7b20eefadec42
1 parent
6414e7ce
Fix ',' in the URL
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
app/src/main/java/fr/utbm/lo53/p2017/positionningapp/network/URLSolver.java
@@ -5,6 +5,8 @@ import android.content.SharedPreferences; | @@ -5,6 +5,8 @@ import android.content.SharedPreferences; | ||
5 | import android.net.Uri; | 5 | import android.net.Uri; |
6 | import android.util.Log; | 6 | import android.util.Log; |
7 | 7 | ||
8 | +import java.util.Locale; | ||
9 | + | ||
8 | public class URLSolver implements SharedPreferences.OnSharedPreferenceChangeListener { | 10 | public class URLSolver implements SharedPreferences.OnSharedPreferenceChangeListener { |
9 | 11 | ||
10 | private static final String TAG = "URLSolver;"; | 12 | private static final String TAG = "URLSolver;"; |
@@ -61,8 +63,8 @@ public class URLSolver implements SharedPreferences.OnSharedPreferenceChangeList | @@ -61,8 +63,8 @@ public class URLSolver implements SharedPreferences.OnSharedPreferenceChangeList | ||
61 | Uri.Builder b = baseURL(); | 63 | Uri.Builder b = baseURL(); |
62 | b.appendPath("calibration") | 64 | b.appendPath("calibration") |
63 | .appendPath("request") | 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 | .appendQueryParameter("CLIENT_MAC_ADDR", mac) | 68 | .appendQueryParameter("CLIENT_MAC_ADDR", mac) |
67 | .appendQueryParameter("MAP_ID", String.format("%d", map_id)); | 69 | .appendQueryParameter("MAP_ID", String.format("%d", map_id)); |
68 | return b.build().toString(); | 70 | return b.build().toString(); |