Add my app to HTC cut & paste sendto app

my HTC has a nice cut and paste function that allows me to mark text with two green sliders, and then either search on it, paste text into the clipboard, or send it to the application.

Applications shown in the menu: Friend Stream, Mail, Nachricht (SMS), Peep (all HTC)

I want my application to appear here, but I don’t know how.

My application appears in other send menus (for example, send a link, send an image), but I cannot get into the cut and paste menu.

Anyone who knows more?

/ Paul

+3
android android-intent
source share
2 answers

Try browse logcat for ActivityManager. You should see a line that looks like this when you select one of the options, for example, "Friend Stream."

I/ActivityManager( 54): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher/.Launcher } (This is what is displayed when the HOME key is pressed)

You will need to add an intent filter that will correspond to all the various parameters (action, categories, data, etc.) by the intention that is sent, and then your application should also appear.

It looks like HTC is definitely because I cannot find it on a device other than HTC, otherwise I will try to be more specific.

+2
source share

you tip was very useful! This is what I captured:

09-09 08: 07: 19.477: INFO / ActivityManager (79): Initial activity: Intent {act = share typ = text / plain flg = 0x13000000 cmp = com.android.mms / .ui.ComposeMessageActivity (has additional functions)}

At first I did not understand the action, as this was not a standard android action, such as act = android.intent.action.SEND

But I tried:

Oddly enough, it works!

Thanks for pointing me in the right direction.

/ Paul

+1
source share

All Articles