Is there a way to link the Linkify'd link method in mine, Activityor am I allowed to use Linkifyto create links to other actions / applications, etc.?
Linkify
Activity
You can also just opt out of using linkify and just use the regex to snap to go and attach clickable spaces to the places you want. These interactive spaces can trigger your code.
Here is an example: Android: starting activity with interactive text
, . , , . , , (android:launchMode="singleTop").
android:launchMode="singleTop"
, :
1) addLinks , Linkify.Matcher Linkify.TransformFilter
2) , , .
3) onReceive BroadcastReceiver , , . startActivity Activity ( ), Intent.
4) onResume Activity Intent, , .
You can set up a receiver that will listen to a particular pattern, and when you click on the call call, some kind of URL starts with that pattern.
Check this answer for more details.
Nope. Linkify comes with:
EMAIL_ADDRESSES
MAP_ADDRESSES
PHONE_NUMBERS
WEB_URLS
You can try to expand it. Here is the src code.
Source: https://habr.com/ru/post/1754252/More articles:Как выполнять обработку ошибок в службах Windows.NET - .netWhat is the difference between short addressing mode and long addressing mode - addressing-modeHow to get product list from wxpython ListBox - pythonRegular expression for a specific pair or each element in a pair - regexWhat is the best QA way - disaster recovery plan? - disaster-recoveryYou need to call activity from the javascript interface created for WebView - androidHibernate: What am I missing? Cannot find @Id, instead of @Index - javaComplexType HOWTO-defined WSDL list, return from service? - wsdliphone mobile web + удалить панели интерфейса Safari - iphoneUINavigationController and UIViewController dealloc - memoryAll Articles