1
我們正在開發用於android操作系統的k9-email客戶端的插件...我想從已發佈的表單中以已解碼格式返回名稱值對..從發佈的表單獲取名稱值對(以解碼後的格式)
當我點擊Gmail隨即會顯示以下信息......就像「顯示原始」後打開郵件..
input name=3D"DefaultZDM" value=3D"https://voltage-pp-0000.july.co=
m/zdr" type=3D"hidden">
input name=3D"ZFRDesignatedRecipient" value=3D"[email protected]=
l.com" type=3D"hidden">
div style=3D"width: 1px; max-width: 1px; min-height: 1px; max-heig=
ht: 1px; overflow: hidden; padding: 5px;">
pre style=3D"width: 1px; max-width: 1px; min-height: 1px; max-=
height: 1px; overflow: hidden; padding: 5px;"> =20
-----BEGIN VOLTAGE SECURE BLOCK V2-----
pt7tH1g22PVBtplPHn6zQgtRS2LFWbVavN5ZMOWs+S/x5OiPmWNy+Na8Xek9ICpE
3cm5xa5dIYvgYiYLbk8C0CuTd6koONPGs2IH2IQhm32phDpafXoa/1n3xOcfuuSB
v79H3sWZtW7EKy2hblpKi+0Y9KOZvpaL7nSd6tz9EVrA7XBa9nM1fvpBWvOsWIkA
VeYgMgjMFpLOVsastOqj3eJW7Jp+u4cm5n8PWAI4T9YuETtP/waOvYF8TAMI8Vey
3y09ZmJ2BS9VLhPKMJHSod6cYeSbD1gRwPoVp+AybnKz+BeBzd2DjBHS+sbd7/Va
Gn1beoCwfdPAteYxWcFShb6Sznw7whlZDyDnwtCwqrcHOpHIYkzXp4N5/4qzUzof
/QyBRY35rSciihyKqdo=3D
-----END VOLTAGE SECURE BLOCK V2-----
</pre>
</div>
</font>
</td></tr>
</tbody></table>
=20
</div>
</div>
從上面
,輸入標籤,我想獲得 DefaultZDM="https://voltage-pp-0000.july.com/zdr"
和 ZFRDesignatedRecipient="[email protected]"
謝謝..
感謝您的ANS是正確的,但他們是在做same..ie – dexter 2011-04-11 10:26:21
(繼續上述評論)添加外部Jsoup.jar文件到你的Android項目它有解析HTML – dexter 2011-04-11 10:28:12
@saurabh的API時,帕蒂爾這就是另一種方式真棒。我會看看。 – 2011-04-11 11:47:00