Questions tagged [android-wifi]
This tag is related to Wifi related questions on Android mobile devices
2,076
questions
0
votes
0
answers
12
views
adb shell wpa_cli set_network 0 ssid "ssid" command Fails
I'm running a script to connect my amazon fire device with wifi but it actually fails exactly on setting up the ssid and password
script:
echo $DSN1
adb -s $DSN1 root
sleep 2
adb -s $DSN1 remount
...
0
votes
0
answers
24
views
How can i learn the topics like wifimanager and scan for wifi and connect to it, bluetooth and nfc
as I did finish 2 courses and neither in them explained those topics and I cant understand the docs they are too hard for me if there are any courses plz give me hints
0
votes
1
answer
33
views
how to turn on wifi programatically in flutter and android?
I want to create app functionality to turn on WIFI programmatically.
In android wifi.setWifiEnabled method was deprecated.
0
votes
1
answer
19
views
Why does WifiNetworkSpecifier with capability NET_CAPABILITY_INTERNET always return onUnavailable?
I'm trying to get my app to connect to a WiFi AP to provide Internet with WifiNetworkSpecifier using code like this. But it's always calling onUnavailable in the NetworkCallback.
private val callback: ...
0
votes
0
answers
18
views
How can I get the network speed data from my android phone?
I am learning C# for developing AR application. I want to get Network Speed data from my phone (ex: You can see what I mean in screenshot).
Is it possible? If it is, how?
Network Speed is here (...
1
vote
1
answer
62
views
Connect android device to wifi programmatically without user interaction
I need to connect an android device to wifi programmatically without interacting with the user. Notably, this app is being purpose built and will not be on the play store or deployed publicly (I say ...
0
votes
1
answer
30
views
Android Wi-fi Connected through App but NOT Working
i am developing an android application (single-mode) in which app is connected to wifi programmatcally. Everything works and i get a message "Connected"
But when i use internet in the ...
0
votes
0
answers
37
views
Android Studio Default Dialog Wifi Network List
I am having a bit of trouble trying to utilize the default Android dialog for popping up networks listed in the area. I have done some research and tried different avenues, but I haven't found ...
0
votes
0
answers
8
views
How to get app carrier signed for achieving EAP based offload
We are working on WiFi offload app for MNO.
As per Android developer site On Android 12 (API level 31) and higher:
The framework enforces ownership requirements for EAP-SIM based
Enterprise ...
0
votes
1
answer
28
views
Wifi List<ScanResult> information batch
Sorry this question might be easy/confusing because I'm new to Java and Android Studio.
The android.net.wifi.ScanResult class has fields SSID/BSSID that gives the information of the scanned access ...
0
votes
0
answers
57
views
API response time slow when running Android device on WIFI
We are currently building a custom Android app running on a small Android device.
The app makes API calls to a Node server, running on an Azure App service.
When we connect the device with an ethernet ...
0
votes
0
answers
22
views
Mobile application to control a wifi siren from a server
I want to do a project that consists of controlling a wifi siren that I bought on the internet. This siren has a wifi receiver module that allows it to be activated from anywhere using mobile app.
My ...
0
votes
0
answers
37
views
Please let me know if there is a standard android feature to install Wi-Fi settings with one tap
I have a question regarding a standard android feature.
https://osu.globalreachtech.com/onlinesignup/5156794
We are currently working on a demo site that allows one-tap installation of Wi-Fi settings ...
1
vote
3
answers
103
views
Two instances of the same network when searching wifi network
I am trying to connect to a device via wifi
final WifiNetworkSpecifier wifiNetworkSpecifier = new WifiNetworkSpecifier.Builder()
.setSsidPattern(new PatternMatcher(networkSSIDPattern, ...
0
votes
0
answers
27
views
Disconnect WiFi Network suggestions in android (kotlin)
Can anyone help me using example to remove wifi network suggestions along with disconnect in android ? In documentation for wifiNetworkSuggestions package, it's mentioned that we should use constants. ...
0
votes
1
answer
54
views
How to make a custom page to connect to Wi-Fi in Android?
I am new to android and I am working on a single-mode application for Android TV. my target SDK is 30.
I am trying to create a custom page to get a list of all wifi and connect to the wifi.
Is there ...
0
votes
2
answers
37
views
Get Internet Access on a Android device from a smartphone without hotspot
I have an Android device that has wifi and Bluetooth modules. I want to build applications to connect the device to the internet using a smartphone's data connection. Is this possible?
The smartphone ...
0
votes
0
answers
23
views
Add 802.1x suggested network
I am trying to add an 802.1x network as a suggested network in Android 10.
When I do the addSuggestedNetwork it returns a code of 0 indicating that it did add it.
I even checked it by trying to add a ...
2
votes
0
answers
101
views
Android - Change approval status (permission) for Wi-Fi suggestion API
My app uses the Wi-Fi Suggestion API. The first time I want to add a suggestion, the operating system asks the user to allow that the app wants to add a network configuration.
If the user rejects the ...
0
votes
1
answer
29
views
Photo transfer from Android device (no screen) to Android smartphone
I am working on an Android pastime project. I have a camera device that runs on Android 8.1. This camera device doesn't have a screen. I am trying to identify the best way to transfer photos from the ...
0
votes
0
answers
15
views
Detect availability of internet obtained through sharing of internet using hotspot of another mobile (Android)
I am using this function to detect the availability/unavailability of internet in my mobile device, including availability/unavailability of internet obtained through sharing of internet with hotspot ...
1
vote
1
answer
147
views
Xamarin Forms Connect to Wifi >= API Level 29
I try to connect to a specific Wifi but everytime I get a System.NullReferenceException: 'Object reference not set to an instance of an object.'
(commented in code)
Here is my method
public static ...
0
votes
0
answers
37
views
How to dismiss alert dialog when internet off in android Broadcast Receiver?
I have implemented broadcast receiver to get internet status in my Android application. It's working perfectly fine. When internet gose off but problem is I want to dismiss the alert dialogue when ...
0
votes
0
answers
115
views
ROS2 Arduino WiFi
here is my basic question about ROS2-communication between Arduino (WiFi Rev2-Board)
and a PC. It is my first project with ROS2, I would like to receive data from
sensors and send data to control ...
0
votes
0
answers
38
views
Sending data using Wi_Fi
I'm trying to send array by using wifi and I use this code:
I depend on this code in link: here
#include "WiFi.h"
#include "ESPAsyncWebServer.h"
const char* ssid = "ESP32-...
0
votes
0
answers
46
views
How to detect when requestNetwork error dialog has been dismissed by the user in Android
Context
I am developing an Android app that programmatically switches the phone's WiFi connection to a device's access point. The device has two separate controllers that can be independently turned ...
0
votes
0
answers
88
views
Trying to get a Pi (with Volumio) to connect to my wifi hotspot
So I know this is involved with the Volumio OS, but I was hoping to reach any proficient Linux/Pi users that know how to mess with the supplicant.conf file and things I should look for when connecting ...
0
votes
2
answers
653
views
How to fix the problem with error "No virtual method" on android
I am writing an application in android studio for android Pie.
I want to get wifi info.
@RequiresApi(api = Build.VERSION_CODES.S)
public String getData() {
String wifiDataTest;...
2
votes
0
answers
169
views
Flutter get wifi information without requiring location permission?
The most popular pub.dev plugin for getting the current SSID and other wifi information, network_info_flutter, requires location permission. It's called In my current project, the app doesn't need the ...
0
votes
1
answer
222
views
Android ip cameraX, camera2 in kotlin
I quite new to android video recording and sharing.
Let say I've got two Android devices D1 and D2
In D1 I split screen in to do parts, in the top part I display camera view from D1(cameraX), and in ...
0
votes
0
answers
141
views
Connect to a specific Wifi SSID programmatically
I am working on a network specific app and I see there are a few apps on play store that connect/disconnect and enable/disable wifi programmatically. I want to do the same.
Since, most of the methods ...
0
votes
0
answers
274
views
Android 10: add WiFi network programmatically
I'm trying to connect my App to a specific WiFi network when the user presses a button. The connection needs to be saved and available beyond the use of my App.
For Android <= 9, I can use
val ...
0
votes
0
answers
173
views
Wifi saved programatically by device owner in android 11 doesn't connect automatically
I have a device owner app in android 11 that is responsible for configuring WPA wifi networks. What I am doing in code basically is the following):
val config = WifiConfiguration().apply {
...
1
vote
0
answers
56
views
Is it possible to collect signal strength coming from nearby Wi-Fi devices, modems etc.?
I have a Flutter app that I collect datas of nearby beacons like mac address, rssi, distance etc. I want to do the same thing for wi-fi devices like modems etc.
Googled it but couldn't find something ...
0
votes
1
answer
221
views
Android how to keep NetworkCallback alive in background
I'm trying to monitor the WiFi state (connect/disconnect) of the phone in background, but whenever I close the application ConnectivityManager will no longer call the provided method. How would I keep ...
0
votes
0
answers
20
views
Ionic breakpoints unbound attaching to Android via WiFi
I am working on an Ionic app from a few years back, Ionic CLI 4.4.0, in VSCode (1.65.0). I finally got the environment working again. I can build it to the Android device (Samsung A21s). I could not ...
0
votes
0
answers
133
views
How to connect to wifi through api for android 10 and above?
I'm trying to connect to wifi with internet connection in my android app. Android 10 and below it is connecting. For android 10 and above using "network suggestion" API connection will ...
0
votes
2
answers
134
views
How to check whether Wi-Fi p2p is connected?
In my app, I need to check if p2p is connected. Previously I use following code to archive it, but NetworkInfo is deprecated, so I want to implement it in another way.
mWifiP2pManager....
4
votes
1
answer
533
views
WifiManager getConnectionInfo() got deprecated in Android API level 31
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 that ...
0
votes
0
answers
16
views
How to stream bitmaps in a imageview correctly?
I am trying to share the camera preview of one android device to another with the help of wifi direct. I can transfer the bitmaps successfully from the camera device to another. But I don't know what'...
1
vote
0
answers
111
views
Programmatically wifi connect like Google Lens
I am trying to implement wifi connect programmatically, but it seems since android 10 It had many issues and tried many source code from GitHub, every implementation has some limitations.
I am not an ...
3
votes
1
answer
433
views
WifiInfo returning null
I have been working on this for a few days after following this guide online. I am using target API 30 (building on a device using Android 11). Trying to get the Wifi SSID using networkCapabilities ...
0
votes
0
answers
44
views
How to forget wifi network programatically in android targeted sdk 30
I want to forget the wifi connected network from the device.I gone through most of the code but they are not working.
public void disconnectWifi(){
Log.i(TAG,"In disconnectWifi()");
...
0
votes
0
answers
33
views
Is there some package in flutter, that can give a list of saved Wifi networks on both iOS and Android?
For a project, I need such a functionality, so to say - show list of all saved on the device wifi's. Is there package that can help me with that, or maybe some considerations on how to properly ...
1
vote
0
answers
138
views
Obtain Wireless Debugging Port Number Programatically
I need to get the IP address and port listed under wireless debugging option from android app. I found out that the IP address can be obtained from applicationContext.getSystemService(Context....
2
votes
1
answer
965
views
How can I pair device to Android Studio Bumblebee using Wi-Fi?
I want to debug my app via the last release of Android Studio Bumblebee using Wi-Fi (without wire connecting). How can I do it?
0
votes
0
answers
31
views
Is there any way to rename physical devices paired using wi-fi in Android Studio
One of the recent Android Studio updates introduced ability to connect physical android devices (with android 11+) using wi-fi (https://developer.android.com/studio/run/device?utm_source=android-...
1
vote
1
answer
491
views
Connect Android Studio and Wear 3.0 smartwatch via wi-fi
ADB debugging needs connection between Android Studio and Wear 3.0 smartwatch (Samsung Galaxy SW 4). How make them work together?
2
votes
2
answers
401
views
Android: WifiInfo.getIpAddress() deprecated
API 31 deprecated getIpAddress() Need help getting the address from the callback implementation
val networkCallback = object : ConnectivityManager.NetworkCallback() {
override fun onAvailable(...
0
votes
1
answer
187
views
preconfiguring WIFI SSID and password in AOSP build 9 and above
How to place SSID and password in AOSP before build
so that the device will automatically get connected to preconfigured wifi after flashing the rom into the device
for Android 7 and 8, we can add the ...