Nextrek
Diff Revisions
524
vs
525
for /Android/SmartCharging/SmartCharging/app/src/main/java/it/fedeloper/smartcharging/Controller/SetPositionLocaleActivity.java
|
@@ -23,6 +23,7 @@ |
23 |
23 |
|
import com.google.android.gms.maps.model.LatLng; |
24 |
24 |
|
import com.google.android.gms.maps.model.MarkerOptions; |
25 |
25 |
|
|
|
26 |
+ |
import it.fedeloper.smartcharging.Service.EndPoint; |
26 |
27 |
|
import it.fedeloper.smartcharging.Service.HttpClient; |
27 |
28 |
|
import it.fedeloper.smartcharging.Manager.MyLocation; |
28 |
29 |
|
import it.fedeloper.smartcharging.Manager.PrefsManager; |
|
@@ -117,7 +118,7 @@ |
117 |
118 |
|
obj.put("token", PrefsManager.getToken(c)); |
118 |
119 |
|
obj.put("indirizzo", txt.getText()); |
119 |
120 |
|
|
120 |
|
- |
JSONObject resp = HttpClient.SendHttpPostAsync("http://svm19842.vps.tagadab.it:8084/smartcharging" + MainActivity.path + "/set_position.php", obj); |
|
121 |
+ |
JSONObject resp = HttpClient.SendHttpPostAsync(EndPoint.MAIN_END_POINT + "/set_position.php", obj); |
121 |
122 |
|
int code = resp.getInt("return"); |
122 |
123 |
|
|
123 |
124 |
|
|