[android-developers] Sending files with specific MIME types over Bluetooth.
In my app, I have a "Share" menu. Here's the code that creates the
Chooser:
Intent intent = new Intent();
intent.setAction(Intent.ACTION_SEND);
if (TextUtils.isEmpty(mimeType))
intent.setType("*/*"); //$NON-NLS-1$
else
intent.setType(mimeType.toString());
Uri uri = Uri.fromFile(transferFile);
intent.putExtra(Intent.EXTRA_STREAM, uri);
return Intent.createChooser(intent,
activity.getText(R.string.send));
Now, if I pass in an empty MIME type, I am allowed to pick Bluetooth
as a transfer method, but if I give it a specific type, Bluetooth is
not an option.
So, my question is: Why would Bluetooth care about the MIME type, and
is there a way to force Bluetooth to appear as one of the choices?
--
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