Subversion Repository Public Repository

Nextrek

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

Diff revisions: vs.
  @@ -25,6 +25,7 @@
25 25 import android.widget.RatingBar;
26 26 import android.widget.TextView;
27 27
28 + import it.fedeloper.smartcharging.Service.EndPoint;
28 29 import it.fedeloper.smartcharging.Service.HttpClient;
29 30 import it.fedeloper.smartcharging.Manager.PrefsManager;
30 31 import it.fedeloper.smartcharging.R;
  @@ -150,7 +151,7 @@
150 151
151 152 mpEntity.addPart("image_file", bab);
152 153
153 - JSONObject resp = HttpClient.SendHttpPostDirect("http://svm19842.vps.tagadab.it:8084/smartcharging" + MainActivity.path + "/upload_image.php", mpEntity);
154 + JSONObject resp = HttpClient.SendHttpPostDirect(EndPoint.MAIN_END_POINT + "/upload_image.php", mpEntity);
154 155 int id = resp.getInt("return");
155 156 switch (id) {
156 157 case 0: {
  @@ -241,7 +242,7 @@
241 242 obj.put("token", PrefsManager.getToken(c));
242 243 obj.put("imgs", jsonImg);
243 244
244 - final JSONObject resp = HttpClient.SendHttpPostAsync("http://svm19842.vps.tagadab.it:8084/smartcharging" + MainActivity.path + "/add_commento.php", obj);
245 + final JSONObject resp = HttpClient.SendHttpPostAsync(EndPoint.MAIN_END_POINT + "/add_commento.php", obj);
245 246 // resp.getInt("id"); ID COMMENTO
246 247 if (resp.getInt("return") == 0) {
247 248 sendSuccesfully();