I've programmatically created TextView and then set data in it. But I'm not able to detect the links inside the data.
This is the code:
TextView dataView = new TextView(this);
dataView.setLayoutParams(dataParams);
dataView.setText("www.google.com");
I've tried with the : dataView.setMovementMethod(LinkMovementMethod.getInstance());
and
dataView.setLinksClickable(true);
but it doesn't works for me.
It will be great if anyone can help me here. Thanks in advance.