Closest to what you describe will be registered for your application as an intent processing android.intent.action.SEND , as described here:
http://developer.android.com/training/sharing/receive.html
The intent-filter declaration will look something like this:
<intent-filter> <action android:name="android.intent.action.SEND" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="text/plain" /> </intent-filter>
What the user sees ...
When the user is in another application and selects the text, if it is supported by the application, they will receive the copy and paste options that you have already seen, but they will also receive the option โshareโ - an icon of three dots connected by two lines:

... and when the user then clicks on the Share icon:
Your application will appear in the list of applications that are displayed to the user. If the user selects your application, you will receive the intent with a common text that you can extract, that is:
String sharedText = intent.getStringExtra(Intent.EXTRA_TEXT);
Further reading
http://android-developers.blogspot.com/2012/02/share-with-intents.html
source share