5

Did anyone know how to auto detect the phone number, email and URL link at Webview? Then user can click on it to popup call function, email apps and web browser just like as iPhone sdk got auto detect function on it at webview.

Can anyone help on it?

Thank you.

user831098
  • 1,803
  • 6
  • 27
  • 47
  • http://stackoverflow.com/questions/3401059/having-android-webview-detect-and-popup-email-dialog-or-phone-call-dialog – Samir Mangroliya Feb 20 '12 at 09:37
  • old question indeed but am gna give it a try anyway, that function was deprecated in iOS4 and now you may have to let user input their own phone number / per parameter security issues –  Nov 15 '12 at 12:13

1 Answers1

-2

Read up on the Linkify class here.

A snippet from the documentation:

addLinks(TextView text, int mask)

Scans the text of the provided TextView and turns all occurrences of the link types indicated in the mask into clickable links.'

Brian Mendez
  • 27
  • 1
  • 8