android和PC之间的通信 [英] Communication between android and PC

查看:324
本文介绍了android和PC之间的通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试为Android开发软件,允许用户浏览存储在我的应用程序中的图像,当用户将图像滑动到图像时,图像将通过以下方式发送到PC WiFi(已经建立)。



我试图通过Android Studio实现这一目标。由于我是移动开发的新手,我只能在我的手机中运行android studio中提供的几个模板。



*有没有替代Android studio(如eclipse),使用我可以轻松完成上述任务。

*在Android Studio中如何将数据从android传输到PC。

*在Google搜索后我知道我们有设置WiFi的用户权限和一些Peer to Peer(但我不清楚Peer对等的是什么)。



请指导构建此应用程序。



提前致谢

Rohith



我的尝试:



我安装了Android工作室并构建了基本应用程序并能够在我的手机中运行。

Hi,
I am trying to develop a software for android, which allow user to browse through images stored in my application and when user slides image to up, the image will be sent to PC via WiFi (which is already established).

I trying to achieve this by using Android Studio. Since am new to mobile development am just able to run few templates given in android studio in my mobile.

* Is there any alternative to Android studio (like eclipse), using which I can do above task easily.
* In Android Studio how can transfer data from android to PC.
* After searching in Google I come to know that we have set user permission for WiFi And some Peer to Peer (But I did not clearly understood what is Peer to peer).

Please guide to build this App.

Thanks in advance
Rohith

What I have tried:

I installed Android studio and built basic App and able to run that in my mobile.

推荐答案

根据您的描述,Android应该是活跃的部分。这意味着它应该充当客户端,Windows或其他PC OS应该提供服务。这意味着您必须在PC上创建无线网络(ad-hoc)。在Windows上,您可以使用其文件共享服务。您可以在此处找到Windows指南,例如:如何访问共享Windows文件夹Android通过WiFi [ ^ ]。



编程访问与使用本地文件系统的文件和目录没有区别。



如果您需要使用某些不同的操作系统,请澄清。更好的是,对该主题进行额外的网络搜索。



-SA
According to your description, Android should be the active part. It means that it should act as a client, and Windows or other PC OS should provide a service. It means that you have to create a wireless network on you PC (ad-hoc). On Windows, you can use its file sharing service. You can find the guide for Windows, for example, here: How to Access Shared Windows Folders On Android via WiFi[^].

Programmatic access won't be different from using files and directories of the local file system.

If you need to use some different OS, please clarify. Better yet, do additional Web search on the topic.

—SA


这篇关于android和PC之间的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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