java - Android: Open alertdialog from part of string? -
i have checkbox string says "i have read , understood terms , conditions". want make words "terms , conditions" link opens alertdialog terms , conditions can read. nothing special. i'm thinking in line of: <string name="cont_agree">i have read , understood <a ref="open alertdialog">terms , conditions.</a></string> is possible, , should use says "open alertdialog"? if can't done way, how should do? addition: open url use code: <string name="cont_agree"><a ref="http://www.stackoverflow.com">stackoverflow</a></string> but how open alertdialog, or screen, string? have seen apps possible, of course, how? edit: code use spannablestringbuilder: spannablestringbuilder text = new spannablestringbuilder(); text.append(getstring(r.string.before)); //now create clickablespan clickablespan clickablespan = new clickablespan() { @override