Hi to all, I'm trying to develop a simple application to handle mail forwards (basically a proof of concept on intent filters). My starting poing was: http://www.rainbowbreeze.it/android-e-intent-filters-per-registrare-unapplicazione-tra-quelle-per-mandare-sms/
For non-italian readers, this blog sample declares intent filters to handle sms composition with a custom activity. This works perfectly, here my manifest, copied (and refactored) from the link above: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.ms.test" android:versionCode="1" android:versionName="1.0"> <application android:icon="@drawable/icon" android:label="@string/ app_name"> <activity android:name=".Main" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> <!-- Sends sms for someone --> <intent-filter> <action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.SENDTO" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="sms" /> <data android:scheme="smsto" /> </intent-filter> <!-- Sends text to someone --> <intent-filter> <action android:name="android.intent.action.SEND" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="text/plain" /> </intent-filter> </activity> </application> </manifest> When you go to Contact -> (context menu on contact) Send SMS, the "Complete action with" dialog appears, letting users choose application to use (my "Sample app" or default messaging application). I want to realize something similar on email context menu, for the "Forward" option, implementing an Activity that reads forwarded email text/attachments. I've tried a number of change in manifest, with different action, category and data (scheme/mime) but with no luck ("Complete action with" dialog never appears on "Forward" menu selection). Someone can point me in the right direction? Thanks a lot. Bye, M -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en