wifimanager Questions

6

Solved

I have following code which used to work well pre Android 10. But it is not able to turn wifi on in Android 10 devices. WifiManager wifiMgr = (WifiManager) getApplicationContext().getSystemService...
Sparklesparkler asked 24/9, 2019 at 7:56

4

I see many references on Android's website to local Only Hotspot However I need to manage the cellular hotspot programmatically from a background service as I can do manually from the pulldown menu...

2

When I want to get info about current wifi connection via WifiManager.connectionInfo I get this: 'getter for connectionInfo: WifiInfo!' is deprecated. Deprecated in Java How can I do it in Androi...
Disruptive asked 24/7, 2021 at 16:52

4

Friends, I want to find all available WiFi networks and display them in a list I have tried as below. But it's not working. I have edited my code, and now I got the result but with all the result t...
Kiloliter asked 11/9, 2013 at 12:19

3

Working on an android application in which I need to connect WiFi device programatically which does not have internet. Here is a code: private void connectToWiFi(final String ssid, String passwor...

1

We uses Wifimanger getConnectionInfo() method to get SSID and BBSID of connected wifi. But starting with Andorid API level 31 , Android has deprecated the getConnectionInfo() method. The solution t...
Kemper asked 1/3, 2022 at 20:27

24

Solved

I don't want my user to even try downloading something unless they have Wi-Fi connected. However, I can only seem to be able to tell if Wi-Fi is enabled, but they could still have a 3G connection. ...
Manger asked 1/10, 2010 at 16:51

11

Solved

I want to design an app which shows a list of Wi-Fi networks available and connect to whichever network is selected by the user. I have implemented the part showing the scan results. Now I want to...
Fonteyn asked 11/1, 2012 at 11:15

5

public boolean WifiManager.setWifiEnabled (boolean enabled) This method was deprecated in API level 29. Starting with Build.VERSION_CODES#Q, applications are not allowed to enable/disable Wi-...
Bainmarie asked 19/9, 2019 at 7:57

2

I have an app that has to work in offline and online mode. Application has to make requests to the app server based on the internet speed of the current network connection (Wifi or Data). If Wifi ...
Cembalo asked 22/2, 2016 at 6:56

0

I am making an Android flutter app where I connect to a WiFi hotspot which does not have a connection to the internet. While being connected to this WiFi, I need to communicate with an online backe...

2

Solved

I need to perform Wifi scans at regular intervals. I am encountering a problem when the time interval is set to 1-2 seconds. It seems like I am not getting any ScanResult. Is there a minimum amount...
Libre asked 2/10, 2011 at 7:11

3

Solved

Since setWifiEnabled is deprecated on Android 10, how does one programatically enable wifi on Android 10 devices? Is it not possible to programmatically enable wifi at all on Android 10+ (SDK 29) ...
Ran asked 24/9, 2019 at 8:16

4

Background I've noticed that in WifiManager class there is a function called addNetwork, that might be useful if I want to restore or save networks information (network name AKA SSID, together wit...
Doubler asked 5/7, 2019 at 15:39

1

Solved

Wifi configuration is deprecated at 29 Android Version. I want to share the file using WIFI but there is no such library which i can use for this purpose. So If Anybody has a solution for this prob...
Auberon asked 22/7, 2020 at 11:23

2

I have been following https://developer.android.com/guide/topics/connectivity/wifi-scan guide in order to create a Wi-Fi scanner. I am using a foreground service with a handler to call wifiMananger...
Anility asked 17/7, 2020 at 11:19

5

I'm getting correctly those values if I compile with API 27 but target API 25. If I set targetSdkVersion to 27, then, those values are not correctly retrieved. Targeting SDK 25 or less, values are...
Erbium asked 11/3, 2018 at 20:31

1

I need to scan all the available wifi networks but the method "wifiManager.startScan()" is deprecated and I don't find an alternative. Does anyone know a real alternative? I tried to look for mor...
Repast asked 31/5, 2019 at 19:57

0

For a UiTest class setup, I need to begin with no remembered Wifi Networks. To do this I use a combination of the WifiManager.getConfiguredNetworks() and WifiManager.removeNetwork(), both of which ...
Algonquian asked 17/1, 2020 at 16:12

3

On Android 8.0, not getting wifi list using wifiManager, below API level 26 I am getting the list. This function returns the WifiManager Object public static WifiManager getWifiManager(Context c...
Undersized asked 8/3, 2018 at 10:44

1

I am seeing some interesting behaviour when dealing with Wifi Manager on latest versions of Android(on Pixel especially). I am trying to make the WIFI manager connect to a known hotspot(IOT applian...
Sopor asked 22/1, 2018 at 9:41

6

Solved

I'm currently using public static String getLocalIPAddress(WifiManager wm){ return Formatter.formatIpAddress(wm.getConnectionInfo().getIpAddress()); } to get the IP-Address of the executing de...
Karleen asked 25/6, 2013 at 16:6

5

I am writing an android app which will connect to a specific WPA access point, when connected, it will issue a http call. It will not save the network config. I have read almost every post on stack...
Extrusion asked 18/8, 2012 at 7:52

7

I am trying to connect to a wifi network by giving the SSID and pass using WifiManager configurations. Based on this threads solution: How do I connect to a specific Wi-Fi network in Android prog...
Escallop asked 21/2, 2016 at 17:17

1

I have to get the name and password of my mobile hotspot programmatically in android studio. How do I do it? WifiManager wifiManager = (WifiManager) getApplicationContext().getSystemService(WIFI_SE...
Enclitic asked 6/2, 2019 at 12:33

© 2022 - 2024 — McMap. All rights reserved.