• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Read an Online XML or Text file from android

dilith

Lurker
Please give me and solution to read online XML or Text file and take the text to a TextView :)

Eg:- Get a saved url from a online source (XML ot TXT)
 
PHP:
InputStream _in_s ;
 _in_s = new ByteArrayInputStream(YourXMLString.getBytes(Charset.defaultCharset()));

 byte[] b = new byte[_in_s.available()];
_in_s.read(b);
YourTextView.setText(new String(b));

I do not know, why CODE-Wrapping formatter just Tags with HIGH but PHP formatter at least highlights more reader friendly, though for android we develop in java and not php.
 
Back
Top Bottom