Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I am trying to develop an android client-server to implement games like this:
you have got a tablet running as a server and waiting for clients to join
each client is a smartphone and starts an app, which shows a gamepad view when the connection is established.
Sending inputs from smartphone to the tablet and update() und the tablet figure movements etc.
My question is: what kind of communication is practicable? I would prefer a TCP connection with sockets but is there a more simple way?
Yes, it's practical, and no, there isn't a simpler way. NFC won't do what you want, and bluetooth is a pain to configure for this sort of thing. You can make discovery easy by using Network Service Discovery or, on older Android versions, jmDNS.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
What should be the better choice to buy an Aruino board. My concept is from desktop output is given to android device through internet and its out is to Arduino board via USB cable and board gives out to run motors.
Thanks in Advance..!
The major differences are things like number of pins and memory sizes. Here is a good list:
http://arduino.cc/en/Products.Compare
The Uno will run most programs you will need and are very compact. Go up further if you have more pins requirements.
I can't add below since it says the topic is closed:
If your motors are small and you are thinking of running them all or a few doctor from the pins instead of from outside supply you need to be aware of the current capacities
http://playground.arduino.cc/Main/ArduinoPinCurrentLimitations
Sounds like the uno will be fine for you unless you need slightly more current.
The easiest way to add android support is over a Wi-Fi or a Bluetooth shield that you can quickly add to your uno.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to develop a mobile application (android OS), and I want to know how could I use a WIFI connection to connect 2 or more mobiles ..?, which protocols, which API's..?
Any help please..
In order to communicate, they first have to discover each other in the network. Link will help you do discover.
If you already know the IP addresses of each other, then the problem is much simpler. RPC call or HTTP call or use Sockets. There is this server which can take http calls on the android application. So, both the applications can have servers hosted.
I've just looked up this link.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm working on a mobile application that takes a photo on a phone and sends it to another phone.
It should be able to work between an Android phone and an Iphone.
I'm working with phonegap.
First I was thinking of using the bluetooth technologies, but I read that it's impossible between android and Iphone.
So I was thinking of a UDP connection, but no matter what, I can't have a server and a client on my phone.
The only things that would work is to implement a server on my Computer.
Do you know another way of doing it ?
Nope. Thats the normal way of doing it - get a server on the internet and build a RESTFul api to listen for a device to send/receive to a phone. Android-to-Android, you could do NFC, but not with an iPHone
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am writing an app to allow two android devices to play together. I'd like to know can I make a p2p connection with wifi between the two android devices without a third devices?
As long as you can target API level 14 and above you should be using the built in Wifi direct API's. Google has posted a very detailed guide on how to get WifiP2P working on Android.
Start from Device A - "Tethering and portable hotspot"
Connect Device B to created hotspot
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have 2 android devices and I need to communicate between the two using wifi to send and receive data. What is a reliable method to send/receive data over a private wifi signal, preferably without rooting (I already know how to do it if rooted, but I really don't want to root my phone (I'm rooting my tablet)).
I don't mind writing a lot of code myself, just looking for a method or class to send data and receive it over wifi, with examples.
Try to refer to the official Android developer site to learn more about the WIFI Direct API. This is the official documentation and you can attempt the demo to get started.