--- android/TrainInfo/src/dk/thoerup/traininfo/TimetableList.java 2010/06/11 17:39:11 839 +++ android/TrainInfo/src/dk/thoerup/traininfo/TimetableList.java 2010/06/11 18:46:46 840 @@ -19,7 +19,10 @@ import android.os.AsyncTask; import android.os.Bundle; import android.util.Log; +import android.view.View; +import android.widget.ListView; import android.widget.TextView; +import android.widget.Toast; import dk.thoerup.traininfo.provider.ProviderFactory; import dk.thoerup.traininfo.provider.TimetableProvider; import dk.thoerup.traininfo.util.MessageBox; @@ -66,7 +69,26 @@ } - @Override + @Override + protected void onListItemClick(ListView l, View v, int position, long id) { + super.onListItemClick(l, v, position, id); + + TimetableBean tt = timetables.get(position); + + StationBean station = new StationBean(); + station.setName( tt.getStation() ); + station.setId( tt.getStationId() ); + station.setRegional(true); + + Intent intent = new Intent(this, DepartureList.class); + intent.putExtra("stationbean", station); + startActivity(intent); + + } + + + + @Override public void onSaveInstanceState(Bundle outState) { dismissDialog(DLG_PROGRESS);