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
0
votes
0 answers

Why do WiFi Direct peers vanish

The question is based on an observation I made while playing around with the WiFi Direct Demo Application rolled out by google. Why does the shown list of Available peers tend to shorten even when the WifiDirect enabled devices are in close range?…
shiraz
  • 1,208
  • 2
  • 12
  • 26
0
votes
1 answer

Automatically accept wifi direct connections through root

In Android SDK the Wireless P2P (WiFi Direct) API is provided. I am developing an application that would require for the app to connect to other devices on the fly that have the same application and share information among them (text data). In order…
fsschmitt
  • 599
  • 5
  • 10
0
votes
2 answers

Start new wifi scan after finishing the current scan

I am trying to make an apps that will store all wifi BSSID and RSS into an SQLite Database. (my SQLite table named "scanres" here is part of my code on my onCreate(): wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); //jgn lupa manifest…
randms26
  • 137
  • 1
  • 6
  • 16
0
votes
1 answer

How to set port number of android device using wifimanager?

i m trying to connect the other device with my android application using wifimanager.i m getting the ip address o my android device using this code.but i could not get the port number of my android device working with wifi.How to get it??? please…
Mikin Patel
  • 431
  • 2
  • 6
  • 15
0
votes
1 answer

Monitoring wifi state change since boot time in Android

I want to perform certain network actions when a specific wifi network is connected, and this has to be done automatically without user input even since boot time. There is also a Preference that tells me whether or not these actions are performed…
usr-local-ΕΨΗΕΛΩΝ
  • 26,101
  • 30
  • 154
  • 305
0
votes
1 answer

How to get port number of connected wifi in android?

I want to do print functionality in my android application using wifi printer. For that i have done following. But I dont know how i to get port number.i have refer the question asked before in which it tells that port number not required but how to…
shivani patel
  • 225
  • 1
  • 8
  • 22
0
votes
1 answer

How do I program android to look for a particular network? (Issues Following Simple Tutorial)

I'm attempting to use the following example: How do I program android to look for a particular network? But I'm unable to execute it due to issues stemming from the line: WifiManager wifiManager =…
RobTheBuilder
  • 37
  • 5
  • 11
0
votes
0 answers

Wifi disabled on Android after removing other networks

I have an android app that performs network connections on opening the app and disconnects and removes the networks on closing it.. If the device was initially on 3G, opening and closing the app performs the right connection/disconnection…
user591410
  • 3,051
  • 5
  • 21
  • 30
0
votes
2 answers

Getting directory list of a device over wifi connection

I want to get the directory list of FlashAir which is connected to a android device over wifi, and i need to download the selected files. Here is the networking specification of the device Supported protocol - TCP/IP (IPv4) Server functionality …
Raneez Ahmed
  • 3,808
  • 3
  • 35
  • 58
0
votes
1 answer

PC to Android Architecture choice: Bluetooth X Wi-fi

I have a need: Build a system that allows a offline terminal(it´s a PC) to connect to a server. to do this, we decided to upload the data to a android 3G smartphone and, by network, send the data to the server, retrieve the response and send to…
0
votes
2 answers

Problems with premission and wifi in Android

I want to get some information about the wifi that i am connected to, but i keep getting this error about my premissions, but i guess they should be alright. Can you help me out here? The first line in my logcat describes the problem. The line is…
gedemagt
  • 657
  • 1
  • 9
  • 22
0
votes
1 answer

WifiManager doing weird things (Android)

Guys I need a hand here.. I have been working on this problem for days now and am pretty desperate. I developed an Android app that looks for wireless networks starting with some prefix (for example MyWifi_). If it founds a network with this prefix,…
Sebastian Breit
  • 6,137
  • 1
  • 35
  • 53
0
votes
1 answer

wicd network manager can'f find my wifi network

Here is the problem, my wicd network manager which works under my debian box can't find my wifi network SSID, which could find via command "iwlist wlan0 scanning". Have anyone met situation this before?
kenshinji
  • 2,021
  • 4
  • 25
  • 39
0
votes
1 answer

android how to pop messages when android ip changed?

I need an application that pops up a message every time the network ip has changed. When for example I am moving between wifi-es. Can someone give me some code examples? Thx. Appreciate!!
user1222905
  • 533
  • 2
  • 17
  • 36
-1
votes
0 answers

How to get hotspot name while wifi is disabled in Android 9 or higher version

I want to get the hotspot name while my wifi is disabled but mobile data & hotspot are enabled. I tried the below code but it is not working. val wifiManager = getSystemService(Context.WIFI_SERVICE) as WifiManager if (wifiManager.isWifiApEnabled)…