How to access file system of another phone using bluetooth in Android?

為{幸葍}努か 提交于 2019-12-03 09:14:31

问题


After pairing with a phone via bluetooth, is it possible to access the sd card contents (like music or images)?

Are there any tutorials or sample code for this?

i see an application named "Bluetooth File Transfer" and want to make another like that i read about bluetooth, bluetooth socket but not found any thing useful how to perform that operation i am researching more if i found i will post here the solution if anyone found soon then please post here.... Thanks


回答1:


Sure it is possible. But you need to know:

  1. Which Bluetooth protocol you want to use? Some of them are here: Bluetooth protocols
  2. How big data you are willing to share between, because if you have big data then you need to use some other connection.
  3. You need to know how to secure data, Bluetooth is very vulnerable.

And you can tell us what you want to do? You are programmer or just asking? If so use link as suggested in your comments.

EDIT: Here is for example some examples in QT programming language, which I use for developing apps for Android: http://www.developer.nokia.com/Community/Wiki/QBluetooth_-_A_Qt_bluetooth_library




回答2:


If you want to open sd-card and phone storage of any phone using android, then you can follow the following method:

  1. Open your android settings.

  2. Now open bluetooth settings.

  3. Activate your bluetooth.

  4. Search for devices.

  5. Pair the bluetooth device.

  6. Now you will be able to see a setting sign on right side of name of bluetooth device.

  7. Touch that sign. You will now see a file transfer box then ftp client will open and you can open the other phone's storage.



来源:https://stackoverflow.com/questions/9157720/how-to-access-file-system-of-another-phone-using-bluetooth-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!