As mentioned here ,we can start Activity by Intent that is created with specific url,when Activity has desired intent filter.So we can start Activity by setting a URLSpan
for SpanableString that is set as text for text view,like this:
ss.setSpan(new URLSpan("http:my.Activity"), 13, 17,
Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
When we use an Intent to start Activity,we can add more details as extras
to intent and retrieve them in Activity by getExtras
method.My question is:
Is there any way to start Activity by URLSpan
and also send a String which can be retrieved by target Activity?
当然,请扩展URLSpan并覆盖其onClick方法
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.