Xml Parsing Working Fine With Android 2.2, 2.3 But Not With Ics
I am fetching the some data from the server using XML parsing that is not working with ICS version of Android.here is my please tell me what correction do I make so that I should a
Solution 1:
i have got the solution myself.. Here is the code which is compatible with Android 4.0 as well as rest of the android versions...Just change the for loop like this.
for (int i = 0; i < nodeList.getLength(); i++) {
Node name = nodeList.item(i);
NodeList nodeEle = name.getChildNodes();
namephoto[i] = ((Node) nodeEle.item(0)).getNodeValue();
}
Post a Comment for "Xml Parsing Working Fine With Android 2.2, 2.3 But Not With Ics"