Questions tagged [wifimanager]

WifiManager is the primary Android API for managing all aspects of Wi-Fi connectivity.

WifiManager is the primary Android API for managing all aspects of Wi-Fi connectivity.

As per the WifiManager documentation, this class provides access to:

  • The list of configured networks. The list can be viewed and updated, and attributes of individual entries can be modified.
  • The currently active Wi-Fi network, if any. Connectivity can be established or torn down, and dynamic information about the state of the network can be queried.
  • Results of access point scans, containing enough information to make decisions about what access point to connect to.
  • It defines the names of various Intent actions that are broadcast upon any sort of change in Wi-Fi state.
667 questions
-1
votes
1 answer

I trying to use wifimanager library on esp32 , if web portal has timeout with not connected wifi, can it be process without wifi?

i having a problem with my project, my project need to can use with wifi and non-wifi, i use wifimanager library and i trying to modified this library
-1
votes
1 answer

How we can restrict Wi-Fi to access internet to any application?

I want to connect with wifi after connection which does not provide internet to any application. How to restrict wifi internet access to any applicaton ? Any suggestions let me know please.
-1
votes
1 answer

How to pass a variables to wifiManager by Tapzu for esp 8266, i want to be able to pass mqtt id and password

I am able to configure the esp8266 using the tapzu wifi manager, i would also like to send the mqtt server id and password from the wifi configure page so that the esp can connect to the mqtt server. I do not want to be flashing the esp every-time,…
-1
votes
1 answer

Android Wifi Distance

How would I get the distance of a router using android wifi manager. I was also wondering how I would know what levels the scan results would be to show that the router is unreachable. Related:…
Darren
  • 74
  • 1
  • 10
-1
votes
1 answer

How to pass a variable to wifiManager.autoConnect() to name the AP

I am trying to get my ESP8266 to set the AP name to Stand + the MAC address minus the semicolons, like Stand5CCF7F238734. The GetMyMacAddress() function I wrote is clearly working, the serial output shows that. Every time I try to pass a String or…
user1213320
  • 650
  • 1
  • 6
  • 13
-1
votes
2 answers

Method to check if Wifi is Connected with in class

I want to check if wifi is connected or not when the button is clicked as well as show a pop up message so i have written a separate class for it : public class Pop extends Activity { @Override protected void onCreate(Bundle savedInstanceSate) { …
-1
votes
1 answer

Can't connect to WIFI network programmatically

I have been trying to connect to a HotSpot created on another device by using the WifiManager class. I have gone through and used the code from this answer. So finally my code looks like this : for( ScanResult i : list ) { …
Sourav Kanta
  • 2,727
  • 1
  • 18
  • 29
-1
votes
1 answer

how can i enable or disable wifi from a fragment

hello can you help me please. I am trying to turn or off the wifi from a fragment. it is giving errors. Is it possible to make this operation in a fragment or it can only be done in an activity? please help or suggest alternative ways package…
-1
votes
1 answer

handler.postDelayed doesn't execute

I want to make app in Android that scans all the networks every 5sec. To can all networks repeatedly I use handler.postDelayed. The task() and wi() function should be executed. task() seems to work but wi() doesn't. Any idea why? public class…
-1
votes
1 answer

Check for WPS support in code

I see that WifiManager has tools to initiate a WPS connection with a Wi-Fi network, but I see nothing that could actually check if WPS is available or not. So, how to check if the current Wi-Fi network supports WPS?
-1
votes
4 answers

Notifying multiple Activities of network connection

I have around seven activities in my android project and on all seven activities, i want to monitor network disconnection.I have created a networkreceiver class which receive notification when wifi is enabled or disabled. public class…
Waqar Ahmed
  • 5,005
  • 2
  • 23
  • 45
-1
votes
2 answers

What will happen to ongoing downloads when we are switching from 3g to wi-fi?

If i am downloading something using 3g. At that time, if i switch from 3g to WiFi, what will happen to ongoing downloads. Will they interrupted? If they are interrupted, how to solve this problem?
user543
  • 3,623
  • 2
  • 16
  • 14
-1
votes
2 answers

How can i check if wifi lost connection ?

I'm new in java and i want to know if my phone lost the wi-fi connection more than 10 sec to send an sms with his GPS information (for an application that make a http page with location and sensor data that the pc request). I just don't know how to…
-1
votes
1 answer

java program to set Wifi router password

I want to create a java program in which when we give a string, it should set as the Wifi router password. Please help me. I created a java program to generate random password,i need to set that in wifi router automatically.
-2
votes
1 answer

Check if android adapter supports 5GHz frequency WIFI

I would like to know how to use WifiManager to check if my device wifi adapter supports 5Ghz frequency or not. Small snippet for android code would be great. Thanks
Code Pro
  • 13
  • 6
1 2 3
44
45