295 |
boolean res; |
boolean res; |
296 |
switch(item.getItemId()) { |
switch(item.getItemId()) { |
297 |
case MENU_MAP: |
case MENU_MAP: |
298 |
Uri uri = Uri.parse("geo:" + station.getLatitude() + "," + station.getLongitude()); |
Uri uri = Uri.parse("geo:" + station.getLatitude() + "," + station.getLongitude() + "?z=16"); |
299 |
startActivity( new Intent(Intent.ACTION_VIEW, uri)); |
startActivity( new Intent(Intent.ACTION_VIEW, uri)); |
300 |
res = true; |
res = true; |
301 |
break; |
break; |
406 |
|
|
407 |
@Override |
@Override |
408 |
protected Void doInBackground(Integer... params) { |
protected Void doInBackground(Integer... params) { |
409 |
departures = provider.lookupDepartures(params[0], DepartureList.this.arrival); |
departures = provider.lookupDepartures(params[0], DepartureList.this.arrival, "BOTH"); |
410 |
return null; |
return null; |
411 |
} |
} |
412 |
|
|
424 |
|
|
425 |
TextView h1 = new TextView(this); |
TextView h1 = new TextView(this); |
426 |
h1.setText("Metro"); |
h1.setText("Metro"); |
427 |
|
h1.setTextSize(16); |
428 |
h1.setTypeface( Typeface.defaultFromStyle(Typeface.BOLD)); |
h1.setTypeface( Typeface.defaultFromStyle(Typeface.BOLD)); |
429 |
|
|
430 |
|
|
435 |
|
|
436 |
|
|
437 |
TextView h2 = new TextView(this); |
TextView h2 = new TextView(this); |
438 |
|
h2.setTextSize(16); |
439 |
h2.setTypeface( Typeface.defaultFromStyle(Typeface.BOLD)); |
h2.setTypeface( Typeface.defaultFromStyle(Typeface.BOLD)); |
440 |
h2.setText("Om minutter"); |
h2.setText("Om minutter"); |
441 |
|
|
442 |
|
params = new TableRow.LayoutParams(); |
443 |
|
params.weight = 2; |
444 |
head.addView(h2,params); |
head.addView(h2,params); |
445 |
|
|
446 |
|
|
453 |
Log.e("Test", "" + entry.destination); |
Log.e("Test", "" + entry.destination); |
454 |
|
|
455 |
TextView v1 = new TextView(this); |
TextView v1 = new TextView(this); |
456 |
v1.setText( entry.metro ); |
v1.setTextSize(16); |
457 |
|
v1.setText( entry.metro ); |
458 |
row.addView(v1); |
row.addView(v1); |
459 |
|
|
460 |
TextView v2 = new TextView(this); |
TextView v2 = new TextView(this); |
461 |
|
v2.setTextSize(16); |
462 |
v2.setText( entry.destination ); |
v2.setText( entry.destination ); |
463 |
row.addView(v2); |
row.addView(v2); |
464 |
|
|
465 |
TextView v3 = new TextView(this); |
TextView v3 = new TextView(this); |
466 |
|
v3.setTextSize(16); |
467 |
v3.setText( entry.minutes ); |
v3.setText( entry.minutes ); |
468 |
row.addView(v3); |
row.addView(v3); |
469 |
|
|