2,023 questions
-4
votes
0
answers
38
views
Factory phone set up icon 3 without wifi or cellular data [closed]
Is it possible setup phone with out wifi or cellular data after factory reset. if so i would be extremely grateful thank you for your time and hope every one has a blessed Thanksgiving
0
votes
0
answers
179
views
Can I configure my android device to act as a FTM (Wifi RTT) responder?
I'm developing an application that uses Wifi RTT/ FTM (initiator). Unfortunately, i don't have a WIFI RTT compatible AP/ router. So, I want to convert my other device to act as a responder.
Earlier, ...
0
votes
0
answers
50
views
why the name of the app in the system pop-up window is displayed as null
I want to implement a system that monitors whether the user turns on the WLAN scanning switch. If it doesn't, it will call the system's function to turn it on
Intent wifiAlwaysAvailableIntent = new ...
0
votes
1
answer
50
views
What's the max size limit on android.net.wifi.aware.DiscoverySession.sendMessage?
Unknown size limit of API: android.net.wifi.aware.DiscoverySession.sendMessage causes System.err
Link to documentation: https://developer.android.com/reference/android/net/wifi/aware/DiscoverySession#...
0
votes
0
answers
138
views
React Native Wifi reborn (WifiManager) issue on iOS (working fine on Android)
I am using the react-native-wifi-reborn library to connect to a Wifi Network from the App without going into Wifi Settings. The code is working fine on android but on IOS it gives an error:
"
...
0
votes
1
answer
102
views
How to bindProcessToNetwork for a Wi-Fi P2P network?
I'm using Wi-Fi P2P network on Android in order to connect to an IoT device. The connection is established all the time. The device runs a DHCP server:
private class WiFiDirectBroadcastReceiver ...
1
vote
1
answer
52
views
getParcelableExtra("wifiInfo", WifiInfo::class.java) returning null on Android 13
I'm encountering an issue with retrieving a WifiInfo object from an Intent on Android 13. I have an onReceive() function that is invoked by android.net.wifi.STATE_CHANGE.
The following code returns ...
0
votes
1
answer
8k
views
Android device: How to connect wifi by "Adb shell cmd wifi" command?
Android device: How to connect wifi by "Adb shell cmd wifi" command?
I tried to connect wifi by adb to avoid tedious click and verification operations by appium. And i found that the "...
5
votes
0
answers
619
views
Android 10: How to detect if the user accepted/rejected the permission CHANGE_WIFI_STATE from the Android system notification?
I'm using addNetworkSuggestions on Android 10 to auto connect to an existing Wifi access point using this doc reference.
I'm using the following code :
val wifiManager = context.getSystemService(...
0
votes
1
answer
485
views
Why ESP32 with static IP address can't connect to internet but can ping normally?
I have connected ESP32 to WIFI, but this WIFI must fix IP address, Gateway, Subnet mask, DNS and MAC. So, I assign them and test with two codes. The first one is with a ping library and the 2nd one is ...
0
votes
0
answers
65
views
android studio wifi debugging
When I am trying to pair my realme 9 4g using wifi debugging i am not able do it.
When click on the pair with qr code. the camera is not recognizing the QR code and also when using pairing code, my ...
0
votes
1
answer
707
views
How to get current WiFi signal strength in Xamarin.Forms running on Android?
Is there an up-to-date way to get the current WiFi signal strength in Xamarin.Forms for an Android device?
The code snippet following adapted from article 58191523 says that:
The name '...
0
votes
0
answers
73
views
How to get SSID for Android 12 API level 31 [duplicate]
I am developing app in Xamarin Forms using Visual Studio 2022 for Mac.
For Android 12 API level 31, I am getting SSID as <unknown ssid>
I have added below location permissions in manifest file:
&...
0
votes
1
answer
611
views
Android ConnectivityManager.requestNetwork() timed out when connecting to a hidden network
I'm trying to connect a hide SSID which is SAE over ConnectivityManager. But the result is over time. The application can't connect to SSID.
I'm trying to change the SSID to not hide. It works well.
...
0
votes
0
answers
72
views
App.xaml.cs will run again unexpectedly in Debug mode
I am using the APP to connect to a device in Xamarin debug mode.
When the system is trying to connect to the device(like the screenshot shows "Connecting to device..."), if I press the back ...
2
votes
1
answer
3k
views
Does any working sample code exist for WiFi-Direct on Android?
The documentation for Wifi Direct on the android developer site includes scraps of code taken from a now defunct sample application (Android Studio baulks at the project structure) that I managed to ...
0
votes
1
answer
2k
views
Connect to a specific wifi programmatically in android using kotlin in android 10 and above
I want to connect to a specific wifi in android programmatically using kotlin.
Till sdk level 28 we were using WifiManager api to connect to a specific wifi network programmatically, this is working ...
0
votes
1
answer
382
views
Problem with geting wifiInfo while app is in background
I am geting wifiInfo like that:
val wifiManager = applicationContext.getSystemService(Context.WIFI_SERVICE) as WifiManager
val wifiInfo = wifiManager.connectionInfo
Log.d("###", wifiInfo....
1
vote
2
answers
503
views
How to take the connected Wifi SSID
I need to take SSID of connected WiFi and first i tried this:
val wifiManager = applicationContext.getSystemService(Context.WIFI_SERVICE) as WifiManager
val wifiInfo = wifiManager.connectionInfo
...
1
vote
0
answers
88
views
Is there any package to get wifi list(Device connected to that netowork) with React Native?
I want to get Their IP address, mac address and want to block the particular device from the list.
0
votes
0
answers
87
views
How to update textView with new WifiManager.ConnectionInfo.rssi
I want to make an app that displays the current rssi, with live updates. So far i've go this:
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: ...
-1
votes
1
answer
891
views
Unable to perform a WiFi scan in the background
I'm attempting to rewrite an old app that gathers WiFi signal data and uses it for internal positioning. To be actually usable, it has to be able to do this while it is not the active app and/or while ...
2
votes
1
answer
729
views
Wifi doesn't disconnect even after being removed from wifi network suggestion. How to disconnect user after removing wifi from network suggestion?
I am trying to connect and disconnect form a wifi programmatically in android(kotlin).
I am able to connect user to wifi using WifiNetworkSuggestion.
Now when I try to disconnect the user from the ...
1
vote
0
answers
372
views
Why is SoftApConfigurations.Builder hidden for me?
I'm trying to create a hotspot with a pre-defined SSID, and I want to do that with a StartLocalOnlyHotspot() method that includes a SoftApConfigurations argument. The only problem is that the ...
0
votes
1
answer
2k
views
How can I setup a custom WiFi AP or Hotspot with WEP security on Android?
I need to setup a WiFi AP with WEP security on an Android Phone or Tablet and I set out to build an App for this purpose.
Disclaimer: I am well aware of WEP shortcomings but I still need this. My app ...
19
votes
3
answers
17k
views
Problem with pairing device using wifi in android studio
I want to pair my android device by scanning QrCode in device manager android studio.
Sometime it works but often it doesn't work.
when I scan QrCode it waits in state below
I try ways below:
1- ...
1
vote
0
answers
341
views
How to get the remote device Ipaddress, host name etc for a local only hotspot in android
In Android 12, which API or methodology should we use, in order to get the IP address, hostname, MAC address of a remote device that is connected to our hotspot which is of local only hotspot type. ...
0
votes
0
answers
24
views
How can I disable/enable wifi and 3G/4G data internet programmatically in Android? [duplicate]
I had tried this code but it was not working in the Android newest version.
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name=&...
0
votes
1
answer
2k
views
WiFi package for flutter for an app to connect to home or public Wi-Fi
I am looking for a wifi package in flutter which allow me to connect to home or public wifi, most of the wifi package in flutter have been depreceated, I have tried wifi_iot package but it doesn't ...
0
votes
0
answers
103
views
Unable to fetch Wi-Fi list in Android 11 Lenovo Tablet
Basically, I'm trying to show available Wi-Fi list in my Lenovo-Tablet Android 11, but it's not working. The same code is working fine for BMAX-Tablet Android 11 and I can see the list.
Here is the ...
2
votes
0
answers
308
views
Enable LocalOnlyHotspot with 2.4GHz frequency only on Android 12 devices
I created an Android app that starts a local-only hotspot by making the call StartLocalOnlyHotspot(). The problem is that when I run it on Android 12 devices, it always create a 5GHz network but my ...
0
votes
2
answers
819
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
1
answer
570
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.
2
votes
1
answer
2k
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: ...
7
votes
2
answers
10k
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
1k
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
1
answer
238
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 ...
1
vote
0
answers
494
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
67
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
498
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
1
answer
124
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
880
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 ...
4
votes
0
answers
1k
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
71
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 ...
1
vote
1
answer
565
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
273
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-...
6
votes
2
answers
20k
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;...
1
vote
1
answer
1k
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
375
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 ...
2
votes
0
answers
592
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 {
...