• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help When will we be able to file transfer via Bluetooth??

sam1014

Lurker
May 25, 2009
1
0
Right, i've gotta ask the question cuz its buggin the hell out of me now, and i'm sure everyone else feels the same.

so....DOES ANYONE KNOW ROUGHLY WHEN WE WE RECIEVE THE UPDATE TO BE ABLE TO SEND/RECIEVE FILES VIA BLUETOOTH????? :thinking:



Thanks to anyone that is able to reply to this question,

Sam :p
 
I was very surprised that the G1 couldnt do it. I thought it was a standard feature of bluetooth, along with being able to play music through any headset...grrrr

From what I understand the additional bluetooth functions beyond headset were either problematic or a security issue and are being worked on. With Google it's not a question of "if" it's a question of "how soon?"
 
Upvote 0
Holy crap Batman! You mean I just dropped 400$ ona new phone, that wont even send/rcv Bluetooth files??????????:eek: Hell, my 6 year old Sony/Erricson from Europe did it way back then! HELP! I have a whole slew of cool images that I want to use on my new T-mobile/MyTouch/Android...doable?? Write me direct at: desertsnake1991@yahoo.com

Holy crap, Batman -- you mean you just dropped 400$ for a product without doing any research despite the large amount of information right at your fingertips?

Holy crap, Batman -- you just dropped 400$ on a new phone without making sure it had a must-have feature you need?



Really?
 
Upvote 0
Hello,

Use following code for Bluetooth File Transfer

ContentValues values = new ContentValues();
values.put(BluetoothShare.URI, "content://" + uritoSend);
values.put(BluetoothShare.DESTINATION, deviceAddress);
values.put(BluetoothShare.DIRECTION, BluetoothShare.DIRECTION_OUTBOUND);
Long ts = System.currentTimeMillis();
values.put(BluetoothShare.TIMESTAMP, ts);
Uri contentUri = getContentResolver().insert(BluetoothShare.CONTENT_URI, values);


for more details refer following link

KP Bird: Android: Send Image via Bluetooth

enjoy....
 
Upvote 0
Hi ,
I tried the below code, for sending file over bluetooth OPP. But it is not working.

Please suggest any change.

public class BtAppExample extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

String filePath = Environment.getExternalStorageDirectory().toString() + "/Munnar/1.jpg";
Log.e("BtAppExample","Uri is: "+Uri.fromFile(new File(filePath)).toString());
ContentValues values = new ContentValues();
values.put(BluetoothShare.URI,Uri.fromFile(new File(filePath)).toString());
values.put(BluetoothShare.DESTINATION, "90:4C:E5:D9:0E:D0");
values.put(BluetoothShare.DIRECTION, BluetoothShare.DIRECTION_OUTBOUND);
Long ts = System.currentTimeMillis();
values.put(BluetoothShare.TIMESTAMP, ts);
Uri contentUri = getContentResolver().insert(BluetoothShare.CONTENT_URI, values);

}
}

Manifest file :

<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".BtAppExample"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

</application>
<uses-permission android:name="android.permission.ACCESS_BLUETOOTH_SHARE" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones