On Wed, May 1, 2013 at 3:16 AM, Saqib Vohra <[email protected]> wrote:
> I was wondering if i can launch an activity or application when a text is > selected in any application like browser, messages etc. > > Like when we select a text at any where a small pop-up appears mentioning > cut, copy, paste option. can i add another button there? to launch my > application? or something like that? > You cannot add anything to that context menu. > i know it is possible because similar work is done in screenshot apps. > that a service is running and when a user shakes his mobile it send a > screenshot to the service and save it. or it can also be done using overlay > button, power button, volume button. > What you can do is have your app respond to Share Intents and your app will be an option when the user attempts to share something. Google "handle share intent" or something. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

