android custom URLSpan not working
问题 The problem is to handle my own action on click on URL span. I wrote custom URLSpan but it doesn't work. This is my custom URLSpan: public class CustomURLSpan extends android.text.style.URLSpan { private Command mClickAction; public CustomURLSpan(String url, Command clickAction) { super(url); mClickAction = clickAction; } @Override public void onClick(View widget) { try { mClickAction.execute(); } catch (Exception e) { } } public static void clickifyTextView(TextView tv, Command clickAction)