I have a text view in an android application.
textView.setText(message); Linkify.addLinks(textView, Linkify.ALL);
with this code, it identifies the phone number, email address, web link, etc. and select it for a click, so the corresponding call of intent.
I want to get any link in my text mode, save it in an array Example
if my text contains the string "Hello, this is deer, my phone number is 9988776655 and email id is abc@gmail.com and weburl is www.abc.com"
then I want to get "9988776655", " abc@gmail.com ", "www.abc.com" and save it in an array, is that possible ...!?!
source share