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: |