Hello, been pulling my hair out on this one:
I have a ContentProvider that I use to send a file via
Intent.createChooser().
If I pick eMail or GMail as the app to send vith, it's working fine,
but if I pick Bluetooth, it fails with "Unknown file, Failure reason:
Storage issue"
Sending an image from the Camera app via Bluetooth works fine. My
phone is the Nexus One.
I've tried:
- Added logging statements to all my Content Provider methods. The
Bluetooth sender calls "OpenAssetFile", "OpenFile" and
"GetContentType", in that order, while EMail/GMail only calls OpenFile
and GetContentType. So I suspect a problem with OpenAssetFile
- I overrode OpenAssetFile so it just calls OpenFile(), but this
doesn't help:
return new AssetFileDescriptor(openFile(uri, mode), 0,
AssetFileDescriptor.UNKNOWN_LENGTH);
I also tried the actual length instead of UNKNOWN_LENGTH
- The file I am sending is about 100k, so the size is not an issue.
Does somebody have any idea as to the problem, or at least point me to
the source code for the Bluetooth sending module, which I couldn't
locate so far.
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en