Welcome, Guest. Please Login.
Linuxslate.com Forums

<=== Back to the Linuxslate.com Homepage

Sep 24th, 2017, 9:40pm
News: Welcome to the linuxslate.com forums. 16 Janruary 2015: Forum registration has been disabled due to recent advancements in bypassing captcha's and the resulting increase in spam on the forums. Registration will be re-enabled at a later date. In the meantime, if you need to register, or have relevant information, please email "john" at this domain, or request an account using the linuxslate.com Google+ Page: https://plus.google.com/+Linuxslate/


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


Administrator

Posts: 122
Gender: male
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:
Z1 Android Watch Phone, Huawei Honor 2, Nexus 7 (2013), MUCH G2.
WWW   IP Logged
Pages: 1