The Question : 2467 people think this question is useful I got an error while running my Android project for RssReader. Code: And it shows the below error: How can I fix this issue? The Question Comments : Read this blog post on the NetworkOnMainThreadException for more information. It explains why this occurs on Android
The Question : 2467 people think this question is useful I got an error while running my Android project for RssReader. Code: And it shows the below error: How can I fix this issue? The Question Comments : Read this blog post on the NetworkOnMainThreadException for more information. It explains why this occurs on Android
The Question : 2467 people think this question is useful I got an error while running my Android project for RssReader. Code: URL url = new URL(urlToRssFeed); SAXParserFactory factory = SAXParserFactory.newInstance(); SAXParser parser = factory.newSAXParser(); XMLReader xmlreader = parser.getXMLReader(); RssHandler theRSSHandler = new RssHandler(); xmlreader.setContentHandler(theRSSHandler); InputSource is = new InputSource(url.openStream()); xmlreader.parse(is); return theRSSHandler.getFeed(); And it