--- android/TrainInfo/src/dk/thoerup/traininfo/DepartureList.java 2011/05/02 19:28:02 1431 +++ android/TrainInfo/src/dk/thoerup/traininfo/DepartureList.java 2011/05/03 12:35:34 1432 @@ -364,8 +364,12 @@ boolean res; switch(item.getItemId()) { case MENU_MAP: - Uri uri = Uri.parse("geo:" + station.getLatitude() + "," + station.getLongitude() + "?z=16"); - startActivity( new Intent(Intent.ACTION_VIEW, uri)); + try { + Uri uri = Uri.parse("geo:" + station.getLatitude() + "," + station.getLongitude() + "?z=16"); + startActivity( new Intent(Intent.ACTION_VIEW, uri)); + } catch (ActivityNotFoundException anfe) { + Toast.makeText(this, "Could not launch google maps", Toast.LENGTH_LONG).show(); + } res = true; break; case MENU_NOTIFICATIONS: