Full support for the SEND intent

26 views
Skip to first unread message

Peli

unread,
Dec 17, 2008, 8:01:18 AM12/17/08
to K-9 Mail
According to the Manifest the following SEND and SENDTO intents are
supported:
SEND + MIME type "image/*"
SENDTO + "mailto:" scheme
VIEW + "mailto:" scheme.

It would be nice to extend the SEND intent to other MIME types as
well, especially:
* Support for the "message/rfc822" MIME type
* Support for other MIME types, like "audio/*", "video/*", ...

Since no data is specified through getData(), probably it is enough to
change this:
<intent-filter>
<action android:name="android.intent.action.SEND" />
<data android:mimeType="image/*" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
into this:
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

to accept all MIME types.

This intent could be tested with the OI File Manager
http://www.openintents.org/en/node/159 that uses the SEND intent to
send a selected file.

Peli

Peli

unread,
Dec 17, 2008, 9:01:25 AM12/17/08
to K-9 Mail
Maybe one could use a generic mime type <data android:mimeType="*/*" /
>.

This discussion was triggered here:
http://groups.google.com/group/android-developers/browse_frm/thread/c58d75c1ccfe598b#

People want to use the SEND intent (see here: http://www.openintents.org/en/node/121
), but this currently only works on the G1 device (through Google Mail
or MMS). The emulator currently does not support this intent. It would
be cool if K-9 mail could handle it for general mime types.

Peli
www.openintents.org
> This intent could be tested with the OI File Managerhttp://www.openintents.org/en/node/159that uses the SEND intent to

Bao-Long

unread,
Dec 22, 2008, 6:46:33 PM12/22/08
to k-9-...@googlegroups.com
What's the expected bahavior? I tried both mimeType="*/* and not mimeType and was not able to send a PDF file stored on my sdcard.

Also, K9 uses

Intent i = new Intent(Intent.ACTION_GET_CONTENT);
i.addCategory(Intent.CATEGORY_OPENABLE);
i.setType("*/*");

To load pick attachments. It does not look like IO File Manager registers for this intent.


Bao-Long

--- On Wed, 12/17/08, Peli <peli...@googlemail.com> wrote:

Peli

unread,
Dec 26, 2008, 4:00:24 AM12/26/08
to K-9 Mail
The expected behavior would be that one can send various file types
from the OI File Manager, by long-clicking on a file and choosing the
"Send" command.

For this, the OI File Manager sends the SEND intent which the K-9 Mail
client should properly handle.

It is a good suggestion though that OI File Manager could also handle
the GET_CONTENT action to pick arbitrary files.

Peli

On 23 Dez., 00:46, Bao-Long <baolon...@yahoo.com> wrote:
> What's the expected bahavior? I tried both mimeType="*/* and not mimeType and was not able to send a PDF file stored on my sdcard.
>
> Also, K9 uses
>
>         Intent i = new Intent(Intent.ACTION_GET_CONTENT);
>         i.addCategory(Intent.CATEGORY_OPENABLE);
>         i.setType("*/*");
>
> To load pick attachments. It does not look like IO File Manager registers for this intent.
>
> Bao-Long
>
> --- On Wed, 12/17/08, Peli <peli0...@googlemail.com> wrote:
>
> > From: Peli <peli0...@googlemail.com>
> > Subject: Re: Full support for the SEND intent
> > To: "K-9 Mail" <k-9-...@googlegroups.com>
> > Date: Wednesday, December 17, 2008, 6:01 AM
> > Maybe one could use a generic mime type <data
> > android:mimeType="*/*" /
> > >.
>
> > This discussion was triggered here:
> >http://groups.google.com/group/android-developers/browse_frm/thread/c...
> > Managerhttp://www.openintents.org/en/node/159thatuses the
Reply all
Reply to author
Forward
0 new messages