how to look up info on internet and display it in text view?
I would like to look up i开发者_运维百科nformation with a specific number unique to that item online. and return information about it back to the user view internet. Does any one have an idea of how i would go about doing this?
I thought about just implementing a webview and have the user pick through different links. but i want to make it a better experience.
You can use Jsoup to fetch the data.After fetching you can make the comparison with your data(comes from SQL database).To see how jsoup works with android see my answers here
To parse href that contains cmd=category_details&category_id from tag You can write following
Document doc = doc=Jsoup.parse("http:\\",10000);
Elements links=doc.select("A");
for(Element link:links){
href=link.attr("href");
if(href.contains("cmd=category_details&category_id"))
{
}
Test several function like link.ownText().This is not exactly your answer but you can definitely go with it to find the data
精彩评论