Wednesday, December 16, 2009

[android-developers] setType is useless for createChooser?

Hi all,

When using Email app to send mail, it should be able to attach any
type of files. But the Email app embedded in SDK can't do this. I try
to modify onAddAttachment() method in
com.android.email.activity.MessageCompose class as following

i.setType(Email.ACCEPTABLE_ATTACHMENT_SEND_TYPES[0]);

to

i.setType("video/*");

or

i.setType("application/*");

and indeed there are some avi, doc, or ptt files in SD card.

But the modification is useless, I can't see any files in the chooser.

Is anyone can give me some suggestions?
Thanks!!

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate