Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/189.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Android上从网站获取HTML表_Android_Html_Android Asynctask_Jsoup - Fatal编程技术网

如何在Android上从网站获取HTML表

如何在Android上从网站获取HTML表,android,html,android-asynctask,jsoup,Android,Html,Android Asynctask,Jsoup,我是Android开发新手,在我的Android应用程序中,我想从网站检索HTML表格值。我将使用从HTML表中获得的值(在后台) 我想得到(td)值 HTML表是这样的 <table width="482" height="187" cellspacing="1" cellpadding="1" border="1"> <tbody> <tr> <td>&nbsp;</td> <

我是Android开发新手,在我的Android应用程序中,我想从网站检索HTML表格值。我将使用从HTML表中获得的值(在后台)

我想得到(td)值

HTML表是这样的

<table width="482" height="187" cellspacing="1" cellpadding="1" border="1">
   <tbody>
     <tr>
       <td>&nbsp;</td>
       <td colspan="3" style="text-align:center;>
         <strong>"UKOME&nbsp;KARARI</strong>
       </td>
     </tr>
     <tr>
     <td>Elektronik Bilet</td>

         .....

</table>


您可以在android应用程序中使用jsoup库从web站点实现HTML表

使用这个库,你可以在Android中解析html页面

从链接下载“jsoup库”


快乐编码…

您应该在
webView
中打开该网站,然后使用一些
JS
捕捉HTML页面的每一行。谢谢。我如何在Android Studio上添加.jar文件?我做了,再次感谢您。