wifimanager Questions

1

I am working on a file sharing app. I need to turn on local only hotspot of a device programmatically by calling WifiManager.startLocalOnlyHotspot(). According to the android docs on this page - h...

2

Solved

I am working on a project, that needs to scan for public Wi-Fi access points. Currently, I am filtering the ScanResult like this: for (ScanResult scanResult : wifiList) { if (!(scanResult.capab...
Sams asked 12/7, 2017 at 10:16

2

Solved

I want to obtain the ip address of the the wifi router to which my android phone is connected? I know that we can get the mac/BSSId and SSID by using the android APIS but I don't find the way to fi...
Restaurateur asked 17/8, 2012 at 7:19

1

Solved

TO BE CLEAR: The most likely part of the code which has the problem is the connect function, which you can find in the code block. EDIT: I've had a good dig through LogCat and found something in...
Emmet asked 4/12, 2018 at 19:36

4

I am working on an IoT app in which there is an on boarding process where the user connects to an access point, which has not internet connectivity, configure the device and then connects to his ho...
Censorious asked 19/3, 2018 at 12:38

4

I need to scan for available Wi-Fi signals and their strengths. I'm using wifiManager.startScan(); and asynchronous wifiManager.getScanResult();. On devices without support of 5GHz band it takes a...
Stoops asked 27/6, 2013 at 14:23

1

I am creating a list of in-range wifis and show it to the user. I want to the user can select each of the items in the list and insert the password in order to connect to the selected SSID. I wrot...
Giglio asked 25/12, 2017 at 12:52

1

Android 9 (Pie) introduces wifi RTT ranging for the purpose of wifi-based gelolocation. In versions up until Android 8 (Oreo), applications would periodically request wifi scans. This functionalit...
Serafinaserafine asked 20/8, 2018 at 20:25

2

TL;DR version I need to scan and get the BSSID / M.A.C address and Signal Level of the nearby Access Points several times a second. WifiManager.startScan() scans about 3.5 seconds which is a bit...
Debidebilitate asked 29/7, 2018 at 15:7

0

It's just known that since Android Oreo (API 26) is not posible to enable the wifi hotspot as in previous versions, with setApEnable(). Google has hiden and protected those methos, and the only po...
Vasyuta asked 9/7, 2018 at 15:15

1

Solved

I have implemented the system to connect to wifi networks from my app programmatically, now I want to forget configured WIFI networks programmatically from the application. I have implemented this...
Manners asked 21/2, 2018 at 7:41

2

Solved

In Android M: I am using below code to remove current connected WIFI AP. void RemoveConnectedNetwork(){ int ID=_wifiManager.getConnectionInfo().getNetworkId(); Log.d("test", "network id = ["+ID...
Unsteady asked 24/9, 2015 at 8:24

1

Solved

According to official Android documentation, the method startScan at WifiManager is deprecated in API level P. However I am trying to use this method in API level 26 (previous to P) without success...
Meld asked 21/5, 2018 at 10:43

1

How to get DhcpInfo() (gateway ip, netmask, dns, etc) of android device connected via Ethernet? I know how to get it if device connected via Wifi and using ACCESS_WIFI_STATE permission: WifiMana...

3

Solved

I am developing an App to check Wifi points. I am getting error "java.lang.SecurityException: Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to get scan results" at wifiManager.get...
Vogel asked 16/11, 2015 at 8:5

3

Solved

Can anybody tell me how can I set the static IP and gateway programmatically in Android 6? I have read here and here. Settings.System is not working anymore and goolgle says WIFI_STATIC_IP was de...
Scram asked 20/10, 2016 at 13:17

3

I am using the following code for creating the Wifi-hotspot configuration. I am able to create the Hotspot configuration and able to enable it. but i have give configuration for WPA-PSK, But it alw...
Donelson asked 25/5, 2017 at 7:44

1

I am using new method is5GHzBandSupported() available in WifiManager since API level 21. http://developer.android.com/reference/android/net/wifi/WifiManager.html#is5GHzBandSupported%28%29 On my N...

3

Solved

I am programming an Android app for an IoT device. I have to give the device the WiFi username and password, so I am using an android app to do this. I have the following code, but it seems to alwa...
Chilon asked 7/2, 2017 at 21:46

1

Been struggling with connecting to WiFi network in Android 5 and 6 for a while and other similar questions don't seem to work for me. I could get the same code working in Android 4.4.2 Adding the ...

0

I am experiencing a strange behavior in my Android app: Every time I connect programmatically to a WiFi network (source see below), first it works as intended, but after a couple of seconds (betwee...
Technicality asked 5/1, 2017 at 15:19

1

Solved

Here is my code: public class FloatWifiManager implements IWifiManager { private WifiManager wifiManager; private BroadcastReceiver wifiScanReceiver; public FloatWifiManager(Context context)...

3

In my application I want that when i click a button it show me the exact internet speed. I had read all answer about this question which has already been asked in this links determining internet s...
Lumpen asked 8/8, 2016 at 12:57

5

I'm using in the app setWifiApEnabled() from Hidden API (access by reflection). In some older phone it´s working (also with Samsung Galaxy S3, some phones with 4.4,...) but I tested it with Sams...

3

I'm using a PendingIntent launched by AlarmManager (with setRepeating) to start wifi scans (using IntentService) every few minutes. On most devices and in most cases, there is no problem with that....
Biparous asked 22/7, 2015 at 15:24

© 2022 - 2024 — McMap. All rights reserved.