How to connect two android devices for android using wifi direct in unity.
Follow this tutorial to learn how to create a Wi-Fi direct application.
To help you understand some fundamental Android APIs and coding practices, a variety of sample code is available from the Android SDK Manager.There is code for wifi-direct file transfer (WiFiDirectDemo).
you can find the source code for all samples at this location:
sdk/samples/android-version/
I suggest you to look at this answer : https://stackoverflow.com/a/39690512/12130325
This is a plugin which cost 20-30$
If you want to make it with a free plugin you can try this one :https://github.com/saltyJeff/UnityWifiDirect
It works pretty well too. And it has only Wi-Fi Direct in it. No other things like TCP / mySQL server, etc...
Related
I'm building an Android application to allow communication between two devices in a limited range but I can't find an equivalent plugin to the native Android Wi-Fi peer-to-peer for Phonegap/Cordova.
Any suggestion ? May another service (such as the Google's WebRTC) do the trick ? Is going native the solution ?
I am having the same problem but there is a plugin called "thali" which I haven't tested it yet but here is the link anyway if you want to give it ago.
let us know how you getting on
https://www.npmjs.com/package/thali
I would like to know how to detect a USB device which is connected to an Android device (as a host). In normal Linux I just use libudev to do that. What's the equivalent in Android?
Any documentation about it?
Thank you
It was past long time but I would like to add some finding with the hope to help others.
There is an Android native solution using Android's libusbhost library to access a USB device from native C++ (by #sonicdebris from github.com). Here is the link. It is a PoC and not complete but it will give some idea about the problem.
There is also a recipe about the question in the official Android documentation but it is Java. Here is the link.
I'm trying to use the sip2peer example from http://code.google.com/p/sip2peer, downloaded the android code, ran the example, nothing happens.
I read some questions and answers, it seems like I need to install server for this to work?
Sorry for the basic question, I'm stuck here.
I want to get the example working on my local machine and emulator
did you download the sip2peer tutorials (s2p-Tutorial.pdf, s2p-Tutorial-Android.pdf, s2p-Tutorial-Bootstrap-FullPeer-SBC.pdf) from http://code.google.com/p/sip2peer/downloads/list?
They describe the main framework concepts and a complete example with a Full Peer implementations. The example is based on a FullPeer and a Bootstrap node that allows to discover the initial peer list. The library has been designed to build p2p networks and generally distributed systems I suggest to test it using multiple Java Nodes to better understand the approach and the architecture and then include an Android node in your network.
Given that you were talking about an Android Emulator I would like to suggest to properly check emulator network interfaces (and its addressing) since you need to be able to contact other nodes on your local machine. I always use a real device to easily manage this problem.
Regards
I'm going to build an application that allows an Android to connect to other phone's DUN (dial-up) bluetooth service, to use this other phone as an internet modem.
It seems like dund is included into Android (i'm targetting at 2.1 -- not sure if it is actually included there?), so I wonder if it supports "dund --connect" command not just --listen?
Or, maybe, there're other ways to implement that? Existing software maybe?
Thanks a lot in advance!
you can visit this
http://www.bluesoleil.com/products/SoftwareDetail.aspx?ProductID=S0001201009150001
Can someone explain to me the concept behind using bluetooth?
My project in my studies is to make an android app using bluetooth, SQLLIGHT and google app
the app itself is a very easy one but I just dont get the tools I need to use :
How does the bluetooth works? Is there a simple example?
the concept behind android GUI (I already made one but I think I am not fully understood his power)?
note : I am using v 2.1
For learning bluetooth on android I guess you should dig into: http://developer.android.com/guide/topics/wireless/bluetooth.html
Should be simple.
Before you learn to program Bluetooth with API on a given platform, you need to read up a few basics first to understand the technology first. There are plenty of resource materials on internet for learning. If you prefer a book, you can try http://www.amazon.com/Bluetooth-Operation-Use-Robert-Morrow/dp/007138779X