DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance ();
DocumentBuilder dBuilder = dbFactory.newDocumentBuilder ();
Document doc = dBuilder.parse ("http://feeds.feedburner.com/d0od?format=xml");
doc.getDocumentElement ().normalize ();
For some reason, at the third line, Android always seems to throw a “Permission denied” exception. Can anyone tell me why, and what I’m doing wrong?
Using API Level 8 (Froyo).
Add android.permission.INTERNET to your Manifest. This will let your application to access internet.