/[projects]/android/Side9/src/dk/thoerup/side9/Side9Xml.java
ViewVC logotype

Diff of /android/Side9/src/dk/thoerup/side9/Side9Xml.java

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

revision 1001 by torben, Wed Jun 16 07:45:53 2010 UTC revision 1002 by torben, Mon Jul 26 10:10:38 2010 UTC
# Line 17  import org.w3c.dom.Node; Line 17  import org.w3c.dom.Node;
17  import org.w3c.dom.NodeList;  import org.w3c.dom.NodeList;
18  import org.xml.sax.SAXException;  import org.xml.sax.SAXException;
19    
20    import android.provider.Settings;
21  import android.util.Log;  import android.util.Log;
22    
23    
# Line 61  public class Side9Xml { Line 62  public class Side9Xml {
62                  return baos.toByteArray();                  return baos.toByteArray();
63          }          }
64                    
65          public static Side9Data loadXml() throws IOException, ParserConfigurationException, SAXException{          public static Side9Data loadXml(String androidID) throws IOException, ParserConfigurationException, SAXException{
66                  String dataURL = BASEURL + "xml.php?width=" + WIDTH;                  String dataURL = BASEURL + "xml.php?width=" + WIDTH + "&androidID=" + androidID;
67                    Log.i("Side9Xml", "URL=" + dataURL);
68                            
69                                    
70                  byte data[] = getContent( dataURL );                              byte data[] = getContent( dataURL );            
71                  Document doc = parseXML( data );                                  Document doc = parseXML( data );                

Legend:
Removed from v.1001  
changed lines
  Added in v.1002

  ViewVC Help
Powered by ViewVC 1.1.20