public static final class Navit_Address_Result_Struct\r
{\r
String result_type; // TWN,STR,SHN\r
- String item_id; // H<ddddd>L<ddddd> -> item.id_hi item.id_lo\r
+ String item_id; // H<ddddd>L<ddddd> -> item.id_hi item.id_lo\r
float lat;\r
float lon;\r
String addr;\r
if (Navit_last_address_search_string.equals(""))\r
{\r
// empty search string entered\r
- Toast.makeText(getApplicationContext(), Navit.get_text("No address found"), Toast.LENGTH_LONG).show(); //TRANS\r
+ Toast.makeText(getApplicationContext(), Navit.get_text("No address found"),\r
+ Toast.LENGTH_LONG).show(); //TRANS\r
}\r
else\r
{\r
if (addr.equals(""))\r
{\r
// empty search string entered\r
- Toast.makeText(getApplicationContext(), Navit.get_text("No search string entered"),\r
- Toast.LENGTH_LONG).show(); //TRANS\r
+ Toast.makeText(getApplicationContext(),\r
+ Navit.get_text("No search string entered"), Toast.LENGTH_LONG).show(); //TRANS\r
}\r
else\r
{\r
Toast\r
.makeText(\r
getApplicationContext(),\r
- Navit.get_text("setting destination to")+"\n"\r
+ Navit.get_text("setting destination to")\r
+ + "\n"\r
+ Navit.NavitAddressResultList_foundItems\r
.get(destination_id).addr, Toast.LENGTH_LONG).show(); //TRANS\r
\r
progressThread_pri.start();\r
// show license for OSM maps\r
Toast.makeText(getApplicationContext(),\r
- Navit.get_text("Map data (c) OpenStreetMap contributors, CC-BY-SA"), Toast.LENGTH_LONG).show(); //TRANS\r
+ Navit.get_text("Map data (c) OpenStreetMap contributors, CC-BY-SA"),\r
+ Toast.LENGTH_LONG).show(); //TRANS\r
return mapdownloader_dialog_pri;\r
case Navit.MAPDOWNLOAD_SEC_DIALOG :\r
mapdownloader_dialog_sec = new ProgressDialog(this);\r
progressThread_sec.start();\r
// show license for OSM maps\r
Toast.makeText(getApplicationContext(),\r
- Navit.get_text("Map data (c) OpenStreetMap contributors, CC-BY-SA"), Toast.LENGTH_LONG).show(); //TRANS\r
+ Navit.get_text("Map data (c) OpenStreetMap contributors, CC-BY-SA"),\r
+ Toast.LENGTH_LONG).show(); //TRANS\r
return mapdownloader_dialog_sec;\r
}\r
// should never get here!!\r
tmp_addr.lat = Float.parseFloat(tmp_s[2]);
tmp_addr.lon = Float.parseFloat(tmp_s[3]);
// the rest ist address
- tmp_addr.addr = s.substring(4 + tmp_s[0].length() + tmp_s[1].length() + tmp_s[2].length() + tmp_s[3].length(), s
- .length());
+ tmp_addr.addr = s.substring(4 + tmp_s[0].length() + tmp_s[1].length() + tmp_s[2].length()
+ + tmp_s[3].length(), s.length());
Navit.NavitAddressResultList_foundItems.add(tmp_addr);
if (tmp_addr.result_type.equals("TWN"))
b.putInt("cur", Navit.NavitAddressResultList_foundItems.size()
% (Navit.ADDRESS_RESULTS_DIALOG_MAX + 1));
b.putString("title", Navit.get_text("loading search results")); //TRANS
- b.putString("text", Navit.get_text("towns")+":" + Navit.search_results_towns + " " + Navit.get_text("Streets")
- + ":" + (int) (Navit.search_results_streets + Navit.search_results_streets_hn));
+ b.putString("text", Navit.get_text("towns") + ":" + Navit.search_results_towns + " "
+ + Navit.get_text("Streets") + ":" + Navit.search_results_streets + "/"
+ + Navit.search_results_streets_hn);
Navit.msg_to_msg_handler(b, 10); //TRANS
}
public void SearchResultList(int i, int partial_match, String text)