android - Make my activity one of the mail apps shown in the intent chooser -
when clicking email address browser or contacts app...
is there way app show mail client in intent list?
as can see mail application's source, having application catch intent simple adding intent-filter
androidmanifest.xml
inside mail composition activity
definition.
<intent-filter> <action android:name="android.intent.action.view" /> <action android:name="android.intent.action.sendto" /> <data android:scheme="mailto" /> <category android:name="android.intent.category.default" /> <category android:name="android.intent.category.browsable" /> </intent-filter>
you can see <data>
tag specifies handle mailto:
links. browsable
category means can launched browser.
k-9 mail similar, except using sendto
action default
category, , view
action browsable
category.
Comments
Post a Comment