i have string resource:
<string name="dialog"> text + 800-800-800 + text</string> 800-800-800 - phone number
i use string in dialog:
the question is: how make phone number clickable , onclick dial number , call phone ?
i know how make hyperlink using html <a href=""> tag, make textview clickable , setmovementmethod() , navigate website textview there case, need behavior such intent.action_dial. idea make string 3 different strings, , middle string phone number set onclick listener, think it`s work-around, maybe there better way how answer question?
hope, explain problem. thank you!
use clickablespan make string clickable onclick
http://developer.android.com/reference/android/text/style/clickablespan.html
solution explained on page: how set part of text view clickable
good luck!
Comments
Post a Comment