安卓wifi连接
嗨会员们! ----am Boniface M - - android 初学者[大学生]..
我的问题是计划开发一个 android 应用程序/中间件,它将充当网格服务。即用于网格计算的应用程序..应用程序需要要安装在 1....n 台设备中。在连接中,一台设备必须充当所有其他设备的服务器。设备之间的通信是在服务器设备的许可下通过wifi进行的。这是由一定的算法决定的[这里没问题]。
问题是我应该使用一个数据库来跟踪设备正在运行的所有服务(这些服务可供其他设备访问),还是有什么方法可以直接保留所有这些信息,然后在我从另一个应用程序请求它们时检索它们安装在另一台设备上。 以及我如何通过 wifi(如蓝牙)共享文件
谢谢......
Hie members! ----am Boniface M - - a beginner in android[University student]..
My question is am planning to develop an android app/middleware that will act as a grid service .i.e an app for grid computing.. the application needs to be installed in 1....n devices. in the connection, one device must act as a server for all others. communication between the devices is via the wifi under the permission of the server device.which is determined by a certain algorithm[no problem here].
The problem is should i use a database that will keep track of all the services a device is running which are accessible to other devices or is there any way that i can directly keep all this information and then retrieve them as i request them from another app installed in another device.
and also how i can share files via wifi like blutooth
Thanks....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您一并提出了很多问题,而我实际上不确定您的总体意思。这里有一些肯定有用的链接...
http:// developer.android.com/reference/android/os/Build.html 该库非常适合查找有关您正在运行的设备的信息。
http://developer.android.com/reference/android/location/Criteria。 html - 标准可能很有用,让您知道您正在运行哪些基于位置的服务
除此之外,如果您想查看特定的事情是否正在运行,请查看这个问题:如何检查服务是否正在 Android 上运行?
如果您希望保持一个中心枢纽我怀疑你需要一个中间人来完成你想做的事情。如果是我,我会向服务器、我编写的 php 脚本发出 HTTP 请求,然后从 MySQL 数据库中读取/写入以获取有关其他设备的信息。
如果您想通过 wifi 共享文件..您需要在手机上安装 FTP 服务器。有一个应用程序 swiFTP 在某种程度上可以做到这一点(手机 -> PC),但概念应该是相同的。看看它。这是一个起点! http://www .tested.com/news/how-to-transfer-files-wireless-to-your-android-phone/53/
再次,我不确定您到底想要做什么,但希望所有这些是有一定帮助的。如果不是,请给我留言,我会尽力进一步帮助您。
希望有帮助!
You're asking many questions in one and I'm actually unsure what you mean overall. Here's a few links that are sure be of some use...
http://developer.android.com/reference/android/os/Build.html This library is good for finding out information about the device you're running on.
http://developer.android.com/reference/android/location/Criteria.html - Criteria might be useful, lets you know what location based services you have running
Other than that, if you're looking to see if particular things are running check out this question: How to check if a service is running on Android?
If you're looking to keep a central hub of what devices have what available etc. you're going to need a middle man for what you want to do I suspect. If it was me, I'd do HTTP requests to a server, to php scripts I have written which would then read/write from a MySQL database to get information about other devices.
If you want to share files via wifi.. you're going to need an FTP server on the phone. There's an app swiFTP which does this to some degree (phone -> PC) but the concept should be the same. Take a look at it. It's a starting point! http://www.tested.com/news/how-to-transfer-files-wirelessly-to-your-android-phone/53/
Again, I'm unsure EXACTLY what you're looking to do but hopefully all of that is of some help. If it's not leave me a comment and I'll try and assist you further.
hope it helps!