动态Linkify文本ListView中 - 错误:没有意图与数据发现:指定网址 [英] Dynamic Linkify Text in ListView - Error : no intent found with data : specified url
问题描述
我创建一个列表视图即可。
在该列表中的每个项目都有文本视图即可。
并在文本视图我定义的 linkify文本根据从Web服务数据 ..
现在,当我点击上 linkify文本我得到的错误如
09-21 20:27:38.031:ERROR / AndroidRuntime(766):android.content.ActivityNotFoundException:无活动来处理意图行事{= android.intent.action.VIEW DAT = \\ticbeat.com/socialmedia/fa...(有临时演员)
请帮我解决这个问题..
与溶液中的任何答案将高度AP preciated。
更新:
code:
如果(urlentities [位置] = NULL&放大器;!&安培;!dpurlentities [位置] = NULL)
holder.twtdata.setText(Html.fromHtml(时间表[位置] .replace(urlentities [位置],< A HREF = \\\\\\+ dpurlentities [位置] +\\>中+ urlentities [位置] +&下; / A>中)));
看起来像你需要把的http://
在这个网址的开头。如果没有协议说明Android的出现承担起的内容://,是预期的URL类型
i am creating a listview. in that list each item has text view. and in text views i am defining linkify texts based on data from the web service..
now when i click on that linkify text i am getting error like
09-21 20:27:38.031: ERROR/AndroidRuntime(766): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=\"ticbeat.com/socialmedia/fa…" (has extras)
please help me solving this problem.. any answer with solution will highly appreciated.
Update:
Code:
if(urlentities[position]!=null && dpurlentities[position]!=null)
holder.twtdata.setText(Html.fromHtml(timelines[position].replace(urlentities[position],"<a href=\\\""+dpurlentities[position]+"\">"+urlentities[position]+"</a>")));
Look like you need to put http://
at the beginning of that URL. Without the protocol specifier Android appears to assume "content://" is the intended url type.
这篇关于动态Linkify文本ListView中 - 错误:没有意图与数据发现:指定网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!