Create group over wifi [closed] - android

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I'm trying to make an application that connects devices over the same WiFi. I'm fairly new to Android development, but I have basic Java knowledge. Now I want to know if my approach is correct?
My approach is as following: I first connect two devices together through WiFiP2P (this part of the code is finished). Next one device creates a SocketServer. That device will send his IP through WiFiP2P to the other device so the devices can now join.
Thanks in advance!

My understanding of WiFiP2P is fairly limited, but I'm assuming that it is trying to be what Bluetooth failed to be.
This approach sounds fine. There is even a page on the offical documentation about it.
My only thought is that you should add protection against malicious users performing spoofing attacks, if that is relevant to your app.

Related

What types of signals can an android device transmit through an app [closed]

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 yesterday.
Improve this question
I'm trying to write and app to control 3 motors using my phone wirelessly and I'm not entirely sure what a simple way might be.
I was thinking to just send an RF signal, but the internet seems to agree that that is not feasible to do so. I was thinking of Bluetooth/wifi as well, but I would like to see if there are any other options to transmit signals from my phone.
I don't want to deal with establishing a bluetooth connection every time I want to use the motors, as for wifi I would prefer something that doesn't use the internet. Am I out of luck?
Also, I'm just getting into this type of stuff, so I apologize if this question is too obvious for some people, but I couldn't find an answer to it anywhere I looked, which is why I'm here.
All help is appreciated!

Tap to exchange data between device A and device B [closed]

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 6 years ago.
Improve this question
We want to develop application which used to share important data in secure way. Idea is:
Data to be exchanged between phone A and phone B (and vice versa) when users “Tap” the phones together. The date, time and location of this action is to be recorded.
This should work anywhere (in buildings or in rural areas where there is no mobile signal coverage), and work cross platform (iOS, Android, Windows).
we want to know is it possible to develop such application ?
Thanks,
Yes, you can 'bump' phones and send over Bluetooth. You would use the accelerometer of the phones to detect the 'bump' part. The date, time and location you can pull straight from the devices (given you have GPS permission).
It would be a lot of work to develop right, especially across multiple platforms, and I believe an app like that already exists, for sharing contact information.
Also for future reference, you're probably getting down-votes because you're not asking specifically about code. Best of luck.

How to develop an android application using a Wifi connection [closed]

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.

How can I make my android app work online? [closed]

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
This is most likely going to get downvoted into oblivion but I seriously cannot find an answer and I don't know where to begin...
I have just finished developing a chess app but its purely offline, ie, you can only play with some one sitting right next to you.
I want to make this app online, as in, I can connect to my wifi, click match me with an opponent. And start a game with some else on my app?
i know Some will downvote this question But
Follow these links
1.Android multiplayer
2.Tick tak two multiplayer
3. Multiple player Andengine
4.How to make multi player
or check this
hope this will help you..
Start with Sockets and Client/Server models.
What you basically need is a way to build a data connection between your players. Lets say I am Player A and I open a chess-server-socket on my phone and want you to join it. Problem here would be, that I as a default user lack a way to tell you my nonstatic IP address to connect to. So I need you as a developer to provide a blackbox that does all this for us.

Android device to device comminication using wifi [closed]

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.

Categories

Resources