Questions tagged «networkonmainthread»

30
'Android.os.NetworkOnMainThreadException' නිවැරදි කරන්නේ කෙසේද?
RssReader සඳහා මගේ ඇන්ඩ්‍රොයිඩ් ව්‍යාපෘතිය ක්‍රියාත්මක කිරීමේදී මට දෝෂයක් ඇතිවිය. කේතය: 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(); එය පහත දෝෂය පෙන්වයි: android.os.NetworkOnMainThreadException මෙම ගැටළුව විසඳන්නේ …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.