Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamic Linkify Text in ListView - Error : no intent found with data : specified 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>")));
like image 366
MKJParekh Avatar asked Feb 22 '23 22:02

MKJParekh


1 Answers

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.

like image 101
Moog Avatar answered Apr 08 '23 13:04

Moog