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 |
|
|
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 ); |