How to handle click on a particular html text?

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
There is an html text where there are tags with special attributes, special styles by clicking on them, you need to perform an action in the application without leaving activiti.
Is this possible and how to implement it?
Maybe you know a different approach, something like parsing the text and paste into the required position button
by | 16 views

1 Answer

0 like 0 dislike
Yes - you need your WebView to say that you decide what to do with the link.
WebView webView;//should already be progruzheno widget and set the handler webView.setWebViewClient(webViewClient);//set the handler //handler itself is where the thread in init aktiviti WebViewClient webViewClient= new WebViewClient(){ @Override public boolean shouldOverrideUrlLoading(WebView view, String url){ return true; } @Override public void onLoadResource(WebView view, String url){ if( url.equals("http://адрес-сайта.рф") ){ // here is something to perform } } }

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
110,608 questions
257,187 answers
40,796 users