/[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 577 by torben, Thu Jan 28 10:34:50 2010 UTC revision 578 by torben, Tue Feb 2 08:44:35 2010 UTC
# Line 364  public class StationList extends ListAct Line 364  public class StationList extends ListAct
364                  findStationsTask.searchByLocation( locationLookup.getLocation() );                  findStationsTask.searchByLocation( locationLookup.getLocation() );
365                  findStationsTask.execute();                      findStationsTask.execute();    
366          }          }
           
   
         /* TODO: Remove this no longer needed function  
         String lookupAddress(double latitude, double longitude) {  
                   
                 Geocoder coder = new Geocoder(this, new Locale("da"));  
                 StringBuilder sb = new StringBuilder();  
                 Log.i("lookupaddr", "" + latitude + "/" + longitude);  
                 try {  
                         List<Address> addressList = coder.getFromLocation(latitude, longitude, 1);  
                         Address addr = addressList.get(0);  
                           
                           
                         int max = addr.getMaxAddressLineIndex();  
                         for (int i=0; i<max; i++) {  
                                 if (i>0)  
                                         sb.append(", ");  
                                   
                                 sb.append(addr.getAddressLine(i));  
                         }  
                           
                           
                 } catch (Exception e) {  
                         Log.e("DepartureList", "geocoder failed", e);  
                 }  
367                                    
                 return sb.toString();  
         }*/  
           
368                    
369          ////////////////////////////////////////////////////////////////////////////          ////////////////////////////////////////////////////////////////////////////
370          // Inner classes          // Inner classes

Legend:
Removed from v.577  
changed lines
  Added in v.578

  ViewVC Help
Powered by ViewVC 1.1.20