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

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

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

revision 556 by torben, Wed Jan 27 06:14:00 2010 UTC revision 557 by torben, Wed Jan 27 10:04:28 2010 UTC
# Line 309  public class StationList extends ListAct Line 309  public class StationList extends ListAct
309                  super.onListItemClick(l, v, position, id);                  super.onListItemClick(l, v, position, id);
310                                                                    
311                  StationBean station = stations.get(position);                  StationBean station = stations.get(position);
   
                 double latitude = station.getLatitude();  
                 double longitude = station.getLongitude();  
   
   
312                                    
313                  Intent intent = new Intent(this, DepartureList.class);                  Intent intent = new Intent(this, DepartureList.class);
314                  intent.putExtra("name", station.getName());                  intent.putExtra("stationbean", station);
                 intent.putExtra("distance", station.getDistance());  
                 intent.putExtra("latitude", latitude);  
                 intent.putExtra("longitude", longitude);  
                 intent.putExtra("stationid", station.getId());  
                 intent.putExtra("address", station.getAddress());  
                 intent.putExtra("isregional", station.isRegional());  
                 intent.putExtra("isstrain", station.isSTrain());  
                 intent.putExtra("ismetro", station.isMetro());  
315                  startActivity(intent);                  startActivity(intent);
316          }          }
317    

Legend:
Removed from v.556  
changed lines
  Added in v.557

  ViewVC Help
Powered by ViewVC 1.1.20