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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -