loc_names = res.getStringArray(R.array.loc_names);
loc_lats = res.getStringArray(R.array.loc_lats);
loc_lons = res.getStringArray(R.array.loc_lons);
- loc_lons = res.getStringArray(R.array.loc_dists);
+ loc_dists = res.getStringArray(R.array.loc_dists);
HttpTransport transport = AndroidHttp.newCompatibleTransport();
JsonFactory jsonFactory = new JacksonFactory();
Double.parseDouble(loc_lons[i]));
Log.v(TAG, "Dist from " + loc_names[i] +
" is " + dist);
- //if ((loc_dists[i] == "0") ||
- // (dist < Double.parseDouble(loc_dists[i]))) {
- // locmsg = loc_names[i];
- // break;
- //}
+ if ((loc_dists[i] == "0") ||
+ (dist < Double.parseDouble(loc_dists[i]))) {
+ locmsg = loc_names[i];
+ break;
+ }
}
return locmsg;
}