Welcome, Guest. Please Login.
Linuxslate.com Forums

<=== Back to the Linuxslate.com Homepage

Newest Forum Posts

Jan 15th, 2021, 10:15am
News: Welcome to the linuxslate.com forums. May 2020: Forum registration has been disabled due to recent advancements in bypassing captcha's and the resulting increase in spam on the forums. Registration may be re-enabled at a later date. In the meantime, if you would like to register, please email "john" at this domain, and I will manually create an account for you. Registration is for legitimate and relevant discussion only. Misused accounts will be deleted without warning.

Pages: 1
Stupid workaround (Android 2.1 and Bluetooth OBEX) (Read 4190 times)
Forum Administrator


Posts: 124
Stupid workaround (Android 2.1 and Bluetooth OBEX)
Aug 26th, 2010, 1:58pm
Android can now support OBEX file exchange over bluetooth.
For some reason I cannot quite fathom the developers have chosen to hard code a small list of mime types into the OBEX Android code.
So if you want to send plain text, or a .gif or .jpg image to your 2.1 based device (For example my Dell Streak), it works fine*.
But the Dell Streak comes with Quick Office, so let's say I want to send a M$ Word file (.doc) from my Desk Top machine to the Dell Streak -- Well it's a word file, and thus has a different mime type ("application/msword" or something like that), so the Android device arbitrarily rejects it.
The simple workaround is to simply rename the file before you send it.  Such as
document.doc   ==>  document.doc.txt
The desktop OS will then send it with a mime type appropriate for text, which Android is perfectly happy with.
Once it's on the Dell Streak, go to the file manager part of Quick Office (or other file manager) and rename it back to document.doc.
If the file is not surviving the transfer once you call it text, try a different fake extension, such as .jpg.
It's a good example of something that was probably done in the name of security, but really makes it harder for the user, while being extremely unlikely to stop anything nasty.
*(Note: Different devices support different BT profiles.  Some devices do not allow BT file transfer at all.)
Back to top

Mobile Linux ?
Got That!
WWW   IP Logged
Pages: 1