/[projects]/android/TrainInfo/src/dk/thoerup/traininfo/DepartureList.java
ViewVC logotype

Diff of /android/TrainInfo/src/dk/thoerup/traininfo/DepartureList.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1431 by torben, Mon May 2 17:14:29 2011 UTC revision 1432 by torben, Tue May 3 12:35:34 2011 UTC
# Line 364  public class DepartureList extends ListA Line 364  public class DepartureList extends ListA
364                  boolean res;                  boolean res;
365                  switch(item.getItemId()) {                  switch(item.getItemId()) {
366                  case MENU_MAP:                  case MENU_MAP:
367                          Uri uri = Uri.parse("geo:" + station.getLatitude() + "," + station.getLongitude() + "?z=16");                          try {
368                          startActivity( new Intent(Intent.ACTION_VIEW, uri));                                  Uri uri = Uri.parse("geo:" + station.getLatitude() + "," + station.getLongitude() + "?z=16");
369                                    startActivity( new Intent(Intent.ACTION_VIEW, uri));
370                            } catch (ActivityNotFoundException anfe) {
371                                     Toast.makeText(this, "Could not launch google maps", Toast.LENGTH_LONG).show();
372                            }
373                          res = true;                          res = true;
374                          break;                          break;
375                  case MENU_NOTIFICATIONS:                  case MENU_NOTIFICATIONS:

Legend:
Removed from v.1431  
changed lines
  Added in v.1432

  ViewVC Help
Powered by ViewVC 1.1.20