C#应用程序通过蓝牙和wifi与android通信 [英] C# application communicate with android via bluetooth and wifi

查看:93
本文介绍了C#应用程序通过蓝牙和wifi与android通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发一个简单的C#应用​​程序,让你通过蓝牙和wifi发送和接收文件安卓平板电脑......我不知道如何开始,是否有任何教程可以帮助我或解释,以帮助我正确的方式。



我的尝试:



我想要开发一个简单的C#应用​​程序,让你通过蓝牙和wifi发送和接收文件安卓平板电脑...我不知道如何开始,是否有任何教程可以帮助我或解释,以帮助我正确的方式。

I want to develop a simple C # application that lets you send and receive file android tablet via bluetooth and wifi ... I do not know how to start, is there any tutorials that can help me or an explanation to help me geting the right way .

What I have tried:

I want to develop a simple C # application that lets you send and receive file android tablet via bluetooth and wifi ... I do not know how to start, is there any tutorials that can help me or an explanation to help me geting the right way .

推荐答案

这很复杂 - 没有标准方式与Android平板电脑进行通信,所以你需要平板电脑上的软件以及PC。

我这样做的方法是在平板电脑上运行FTP服务器(我使用橄榄树的FTP服务器 [ ^ ]但还有其他人的负载)然后使用FileZilla我的电脑或写一个快速的应用程序,以使用 FtpWebRequest Class( System.Net) [ ^ ]或此帮助程序类:简单C#FTP类 [ ^ ]

开发比一次尝试生成(和调试!)两端肯定更快更容易。
That's quite complicated - there isn't a "standard" way to communicate with an android tablet, so you will need software on the tablet as well as the PC.
The way I do it is to run an FTP server on my tablet (I use FTP Server by The Olive Tree[^] but there are loads of others) and then either use FileZilla on my PC or write a quick app to use the FtpWebRequest Class (System.Net)[^] or this helper class: Simple C# FTP Class[^]
It's certainly going to be quicker and easier to develop than trying to produce (and debug!) both ends at once.


这篇关于C#应用程序通过蓝牙和wifi与android通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆