26 |
StringBuilder builder = new StringBuilder(512); |
StringBuilder builder = new StringBuilder(512); |
27 |
|
|
28 |
@Override |
@Override |
29 |
public void lookupDepartures(String station) { |
public void lookupDepartures(String stationCode) { |
30 |
departures.clear(); |
departures.clear(); |
31 |
try |
try |
32 |
{ String url = "http://t-hoerup.dk/tog/xml_display.php?stationname="+station; |
{ |
33 |
String doc = DownloadUtil.getContent(url, 45000, "ISO-8859-1"); |
String url = "http://t-hoerup.dk/tog/xml_display.php?stationcode="+stationCode; |
34 |
|
Log.i("xmlurl",url); |
35 |
|
String doc = DownloadUtil.getContentString(url, 45000, "ISO-8859-1"); |
36 |
|
|
37 |
InputSource source = new InputSource( new StringReader(doc)); |
InputSource source = new InputSource( new StringReader(doc)); |
38 |
|
|