--- android/TrainInfo/src/dk/thoerup/traininfo/DepartureList.java 2009/09/11 08:48:18 316 +++ android/TrainInfo/src/dk/thoerup/traininfo/DepartureList.java 2009/09/11 09:12:45 317 @@ -56,8 +56,9 @@ String name = launchedBy.getStringExtra("name"); ((TextView) findViewById(R.id.stationName)).setText( name ); - - ((TextView) findViewById(R.id.stationAddr)).setText( "searching..." ); + + String address = launchedBy.getStringExtra("address"); + ((TextView) findViewById(R.id.stationAddr)).setText( address ); int stationId = launchedBy.getIntExtra("stationid", -1); @@ -156,32 +157,6 @@ return super.onCreateDialog(id); } } - - String lookupAddress(double latitude, double longitude) { - - Geocoder coder = new Geocoder(this, new Locale("da")); - StringBuilder sb = new StringBuilder(); - Log.i("lookupaddr", "" + latitude + "/" + longitude); - try { - List
addressList = coder.getFromLocation(latitude, longitude, 1); - Address addr = addressList.get(0); - - - int max = addr.getMaxAddressLineIndex(); - for (int i=0; i