How to embed an activity in android which gets activated every time user long presses on any text or url in specific applications on the phone -


how embed activity in android gets activated every time user long presses on text or url in specific applications , facebook or whatsapp, on phone.

this not possible.

the closest thing fits requirement in upcoming android m release, app can publish an action_process_text activity. activity option in floating action mode in edittext (and perhaps elsewhere selectable text). if user chooses activity's entry in action mode, activity started , can @ user selected.

however:

  • this not "every time user long presses on text or url", in user still has choose activity action mode,

  • this not "specific applications", applications, and

  • since seeing in developer preview, possible time android m ships production os, feature dropped or altered


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -