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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -