简体   繁体   English

通过蓝牙将文件从PC发送到Android手机

[英]Sending Files from PC to Android Phones via bluetooth

I want to create an application that sends data from PC to android phones via bluetooth. 我想创建一个应用程序,通过蓝牙将数据从PC发送到Android手机。 Im referring the below mentioned link for the same 我指的是相同的下面提到的链接

http://www.substanceofcode.com/2008/06/20/sending-files-to-mobile-phone-using-bluetooth-and-obex/#comment-340224895 http://www.substanceofcode.com/2008/06/20/sending-files-to-mobile-phone-using-bluetooth-and-obex/#comment-340224895

i wonder if comments like "it works on some devices" are based on mobile OS? 我想知道“它在某些设备上运行”之类的评论是否基于移动操作系统? i tried it on galaxy ace and i received the following exception: Failed to connect; 我在galaxy ace上尝试过,我收到了以下异常:连接失败; [10064] A socket operation failed because the destination host was down. [10064]套接字操作失败,因为目标主机已关闭。 But when i tried in on nokia 6220c, it works fine. 但是当我尝试使用诺基亚6220c时,它运行正常。 so is this about android/symbian, if it is what should i change to make it work on android phone? 这是关于android / symbian,如果它是什么我应该改变,使其在Android手机上工作?

The application works only for java based phones...what changes should i make it work on android phone? 该应用程序仅适用于基于java的手机...我应该在Android手机上使用哪些更改?

This project uses a Bluetooth profile called OBEX 该项目使用名为OBEX的蓝牙配置文件

Not all phones will implement this profile, thus that program will not work with phones that don't implement it. 并非所有手机都会实现此配置文件,因此该程序不适用于未实现此功能的手机。 Furthermore, it requires a lot of work to implement a custom profile on Android so it is usually better to find a different way of transferring files. 此外,在Android上实现自定义配置文件需要大量工作,因此通常最好找到一种不同的传输文件的方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM