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

Diff of /android/TrainInfo/src/dk/thoerup/traininfo/provider/XmlStationProvider.java

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

revision 317 by torben, Thu Sep 10 19:09:09 2009 UTC revision 318 by torben, Fri Sep 11 11:51:57 2009 UTC
# Line 32  public class XmlStationProvider implemen Line 32  public class XmlStationProvider implemen
32          @Override          @Override
33          public void lookupStations(Location location) {          public void lookupStations(Location location) {
34                                    
                 //String url = "http://pumba.t-hoerup.dk:8080/TrainInfoService/LocateStations?latitude=" + location.getLatitude() + "&longitude=" + location.getLongitude();  
35                  String url = "http://app.t-hoerup.dk/TrainInfoService/LocateStations?latitude=" + location.getLatitude() + "&longitude=" + location.getLongitude();                  String url = "http://app.t-hoerup.dk/TrainInfoService/LocateStations?latitude=" + location.getLatitude() + "&longitude=" + location.getLongitude();
36                  Log.i("url", url);                  Log.i("url", url);
37                  try {                  try {
# Line 64  public class XmlStationProvider implemen Line 63  public class XmlStationProvider implemen
63                                                                                    
64                                          String nodeName = current.getNodeName();                                          String nodeName = current.getNodeName();
65                                                                                    
                                         Log.i("XML", "" + nodeName + "=" + content);  
                                           
66                                          if (nodeName.equals("id"))                                          if (nodeName.equals("id"))
67                                                  station.setId( Integer.parseInt(content));                                                  station.setId( Integer.parseInt(content));
68                                                                                    

Legend:
Removed from v.317  
changed lines
  Added in v.318

  ViewVC Help
Powered by ViewVC 1.1.20