Reading a website table from android -
i read 3 column table site , store 3 variables col1
,col2
,col3
found here sample code connecting web tutorial , i'm trying manipulate
string str = downloadtext("http://xxxx.com/table1.htm"); textview txt = (textview) findviewbyid(r.id.text); txt.settext(str);
know see on emulator html source
<html> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <body> <table border="0"> <tr> <td class="col1">8800</td> <td class="col2">test</td> <td class="col3">300</td> </tr> </table> </body> </html>
how can store each cell variable (e.g. col1=8000, col2=test, col3=300) ?
try use not sure may you
string str = downloadtext("http://xxxx.com/table1.htm"); textview txt = (textview) findviewbyid(r.id.text); txt.settext(html.fromhtml(str));
Comments
Post a Comment