Subversion Repository Public Repository

Nextrek

Diff Revisions 514 vs 515 for /Android/SmartCharging/SmartCharging/app/src/main/java/it/fedeloper/smartcharging/SetPositionLocaleActivity.java

Diff revisions: vs.
  @@ -48,6 +48,7 @@
48 48 private Double lat;
49 49 private Double lon;
50 50 Context c;
51 + int idlocale;
51 52 private TextView txt;
52 53 Geocoder geoCoder;
53 54 @Override
  @@ -58,6 +59,11 @@
58 59 txt= ((TextView) findViewById(R.id.editText9));
59 60 map = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap();
60 61 c=this;
62 +
63 + Bundle b = new Bundle();
64 + b = getIntent().getExtras();
65 +
66 + idlocale= b.getInt("idlocale");
61 67 EditText addressView = (EditText) findViewById(R.id.editText9);
62 68 addressView.setImeOptions(EditorInfo.IME_ACTION_DONE);
63 69 addressView.setOnEditorActionListener(new TextView.OnEditorActionListener()
  @@ -119,7 +125,7 @@
119 125 JSONObject obj = new JSONObject();
120 126 try {
121 127 Log.e("id localeeeeeeeee", String.valueOf(PrefsManager.getId(c)));
122 - obj.put("id", PrefsManager.getId(c));
128 + obj.put("id",idlocale);
123 129 obj.put("lat", lat);
124 130 obj.put("lon", lon);
125 131 obj.put("token", PrefsManager.getToken(c));