我需要在2个roid器、1个电话和1个表格之间发送信息。 Im利用 Java来制造 app。 I m 看服务器,但我可以看一看何时开始。 感谢任何帮助:
P.s. 这两种装置都将使用相同的wifi连接,这样我就可以利用港口发出电文。
我需要在2个roid器、1个电话和1个表格之间发送信息。 Im利用 Java来制造 app。 I m 看服务器,但我可以看一看何时开始。 感谢任何帮助:
P.s. 这两种装置都将使用相同的wifi连接,这样我就可以利用港口发出电文。
除了“@dilix”的明显解决办法外,你还可以使用像JGroups这样的图书馆,提供自动发现其他装置。
答案取决于这些装置的距离。 相互接触的权利? NFC。 在大约20英尺之内? Bluetooth。 在100米内? Wifi Direct是同侪无线连接。 超过这一点? 您需要一个中央服务器,因为没有承运人允许接收TCP或UNDP数据,即所有防火墙。 当然,所有较长距离的答案也将缩短距离。 但这里的不同解决办法也有不同的安全要求。
I think you can try sockets to send eceive messages: http://developer.android.com/reference/java/net/ServerSocket.html
http://developer.android.com/reference/java/net/Socket.html
打耳“Rodid socket”,你甚至可以找到一些关于 st流的信息。
I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...
I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...
I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...
I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...
To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?
When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...
I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...
I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...