Hi I have a WebView where I load some html text using this code:
text6.loadDataWithBaseURL("","<html>\n" +
"<head>\n" +
"<style type=\"text/css\">\n" +
"@font-face {\n" +
" font-family: MyFont;\n" +
" src: url(\"file:///android_asset/fonts/Brandon_light.otf\")\n" +
"}\n" +
"body {\n" +
" font-family: MyFont;\n" +
" font-size: medium;\n" +
" text-align: center;\n" +
MessageFormat.format("link: {0};color:{1}", ColorManager.generalColorHEX, ColorManager.colorNameActivityCellHEX)+
"}\n" +
"</style>\n" +
"</head>\n" +
MessageFormat.format("<body link={0}>", ColorManager.generalColorHEX) +
MessageFormat.format("{0}", DataManager.surveyDesc) +
"</body>\n" +
"</html>",DataManager.mimeType, DataManager.encoding, "");
the text that is loaded could contains email address, phone numbers and links. Is it possibile that the WebView recognises the hyperlinks and on tap it executes the correct actions (send email, open links, call a number...) thanks!