来自以下提取图像的src; IMG&gt;标签在android系统 [英] Extract image src from <img>tag in android
本文介绍了来自以下提取图像的src; IMG&gt;标签在android系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从服务器这个img标签。谁能告诉code从下面的标签提取图像链接。
i have this img tag from server. can anyone tell code to extract image link from the below tag.
> <img id="prescription_image"
> onClick=showPrescriptionDetails("34173cb38f07f89ddbebc2ac9128303f")
> onmouseover="this.style.cursor='pointer'"
> src="http://patient/1409210919.png" width="20" height="20">
非常感谢。
推荐答案
线沿线的东西:
int start = tags.indexOf("src=\"") + 5;
int end = tags.indexOf("\"", start);
String src = tags.substring(start, end);
这篇关于来自以下提取图像的src; IMG&gt;标签在android系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文