Related questions
How to fix 'android.os.NetworkOnMainThreadException'?
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(…
Converting double to string
I am not sure it is me or what but I am having a problem converting a double to string.
here is my code:
double total = 44;
String total2 = Double.toString(total);
Am i doing something wrong or am i missing …