Android : Textview With Links Give Nullpointerexception Onlongclick
I can enable links via either: A) in Code using Linkify.addLinks(textView, Linkify.ALL); B) in XML android:autoLink='all' android:linksClickable='true' Whenever I enable li
Solution 1:
Use this to give link to a textview and then implement longclick listener
TextView.setText(Html.fromHtml("<a href=\"your link here">Click here</a> "));
TextView.setMovementMethod(LinkMovementMethod.getInstance());
Post a Comment for "Android : Textview With Links Give Nullpointerexception Onlongclick"