D
D
Denis Yakovenko2016-02-13 00:22:15
Android
Denis Yakovenko, 2016-02-13 00:22:15

Is it possible to programmatically create a wireless LAN/access point to it from an Android device?

There is the following task: It is
necessary to implement an Android application from which it would be possible to raise a local wireless network along with an access point to it, so that other devices located nearby can connect to the main device for subsequent data exchange ( the network must be local, without Internet access ).
In case the wording is not clear enough, I give an example of the sequence of user actions:

  1. The main user opens an application that raises the local network and creates an access point to it. In parallel with this, a web server rises on the device of the main user, distributing the necessary content (and the server of this has an external ip address through which the content can be reached).
  2. The rest of the users, knowing the desired ip address, go to the Wi-Fi network selection menu on their device, connect to the local network created by the main user, go to the desired ip address in the browser and get the opportunity to see the distributed content and interact with the web server on the main device get/post requests.

Setting up a web server on a device is a simple task. However, to provide wireless access to the server without the Internet is already difficult for me personally.
Knowledgeable people, please tell me, is it possible to implement this at all, and if so, how?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lomikman, 2016-02-13
@lomikman

here is the method that is responsible for enabling the wireless point from the official android sources
https://github.com/android/platform_packages_apps_...
https://github.com/android/platform_packages_apps_...
stackoverflow.com/questions/3436280/start- stop-bui...
the idea is to call this method
it's unofficial and there's no guarantee it will work on many devices

A
Artem Spiridonov, 2016-02-13
@customtema

If you were to raise the entire zoo on one machine or under virtual machines on one machine, how would you do it? Fixed IP addresses and edited /etc/hosts? And they would be glad that everything works, and nothing needs to be touched.
Why not do the same in this case?
And yes, why android? You can install Ubuntu, there will be much less restrictions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question