Subversion Repository Public Repository

Nextrek

Diff Revisions 524 vs 525 for /Android/SmartCharging/SmartCharging/app/src/main/java/it/fedeloper/smartcharging/Controller/SettingSelectionActivity.java

Diff revisions: vs.
  @@ -27,6 +27,7 @@
27 27 import android.widget.Spinner;
28 28 import android.widget.TextView;
29 29
30 + import it.fedeloper.smartcharging.Service.EndPoint;
30 31 import it.fedeloper.smartcharging.Service.HttpClient;
31 32 import it.fedeloper.smartcharging.Manager.PrefsManager;
32 33 import it.fedeloper.smartcharging.R;
  @@ -73,7 +74,7 @@
73 74 obj.put("token", PrefsManager.getToken(c));
74 75 obj.put("user_id", PrefsManager.getId(c));
75 76
76 - JSONObject resp = HttpClient.SendHttpPostAsync("http://svm19842.vps.tagadab.it:8084/smartcharging" + MainActivity.path + "/get_locals_by_user.php", obj);
77 + JSONObject resp = HttpClient.SendHttpPostAsync(EndPoint.MAIN_END_POINT +"/get_locals_by_user.php", obj);
77 78
78 79
79 80 arr = resp.getJSONArray("locals");
  @@ -165,7 +166,7 @@
165 166
166 167
167 168 Log.e("òfòsdkjdoigdofjgdl", "4a");
168 - JSONObject resp = HttpClient.SendHttpPostAsync("http://svm19842.vps.tagadab.it:8084/smartcharging" + MainActivity.path + "/add_locale.php", obj);
169 + JSONObject resp = HttpClient.SendHttpPostAsync(EndPoint.MAIN_END_POINT + "/add_locale.php", obj);
169 170 int code = resp.getInt("return");
170 171 Log.e("òfòsdkjdoigdofjgdl", "5a");
171 172
  @@ -285,7 +286,7 @@
285 286
286 287 mpEntity.addPart("image_file", bab);
287 288
288 - JSONObject resp = HttpClient.SendHttpPostDirect("http://svm19842.vps.tagadab.it:8084/smartcharging" + MainActivity.path + "/upload_image.php", mpEntity);
289 + JSONObject resp = HttpClient.SendHttpPostDirect(EndPoint.MAIN_END_POINT + "/upload_image.php", mpEntity);
289 290 int id = resp.getInt("return");
290 291 switch (id) {
291 292 case 0: {