Questions tagged [android-wireless]
97 questions
29
votes
6 answers
How to forget a wireless network in android programmatically?
I am working on an app which wifi , where user will be asked to enter password for the scanned network he selects, if user enters a correct password, it connects and works well. But when user enters wrong password, a new network is added with that…

Adarsh H S
- 1,208
- 6
- 21
- 42
15
votes
2 answers
ADB devices list empty with wireless debugging
I have Android 11 on my phone, I have setup Wireless Debugging, and in the list of Paired Devices my computer shows up. However, when I run adb devices -l on my computer, the list of devices is empty.
Why am I seeing an empty list. Is there…

Get Off My Lawn
- 34,175
- 38
- 176
- 338
12
votes
2 answers
Android stops finding BLE devices: onClientRegistered() - status=133 clientIf=0
I am developing an app in which I can both find and configure BLE devices. I am using standard Android BLE API, but recently I've encountered some strange problems.
When I turn on my app the BLE scan works OK. I am scanning…

fragon
- 3,391
- 10
- 39
- 76
9
votes
4 answers
Wireless USB Debugging for Android Studio in MAC
Hello i want to connect my android in debugging mode with android studio
without usb cable
i am using mac os

HiteshGs
- 539
- 2
- 7
- 18
8
votes
2 answers
Android API call to determine user setting "Data Enabled"
My program tries to detect whether a mobile network is available at a certain location.
The issue is that when I don't have a data connection it doesn't mean the network is not there... it depends on the user preferences.
There are APIs available…

Rick
- 115
- 1
- 2
- 5
8
votes
1 answer
ConnectivityManager getActiveNetworkInfo() is always null even with data traffic active
i'm working on a android project and i had the need to check for internet connection. i searched the web and i found a solution here on stackoverflow. However, i'm having problems on checking the internet state. I already searched everywhere but i…

t.pateiro
- 81
- 1
- 3
7
votes
1 answer
detect wireless debugging option active or not in developer mode in android programmatically
I have tried developer mode and USB debugging is enabled or not,
using the below code changes. it's working fine.
private fun check_My_Android_Mobile_Developer_Mode_Status() {
// solution 1
val adb: Int =…

harikrishnan
- 1,985
- 4
- 32
- 63
7
votes
1 answer
How to get the WiFi noise level in Android?
I want to implement an app which measures the quality of the WiFi signal from an indoor environment. From my research I found that the best way to get an accurate measurement is not to get only the RSSI but instead to use the SNR (Signal to…

Cosmin Telescu
- 113
- 1
- 2
- 8
7
votes
2 answers
Is it possible to switch APN programatically in android?
I am trying to develop an app in which I need to connect to a specific APN programatically for network testing purposes.
As a user, I can do this by going to "Settings" -> "Wireless & networks" -> "Mobile Networks" (long press) -> "Access Point…

brunorey
- 2,135
- 1
- 18
- 26
6
votes
2 answers
Android mobile not detecting wireless network created on my laptop
I use HTC Explorer and I have created an ad-hoc network on my laptop. Although other laptops are easily able to connect to it, my mobile device is not even detecting the Wi-Fi.
How can I connect my mobile to the Wi-Fi hotspot on my laptop (running…

kalyan
- 71
- 1
- 1
- 5
6
votes
2 answers
Is wpa_supplicant for android device specific or android version specific?
I recently purchased sony xperia P, but it was not able to detect ad-hoc networks.
After some googling I came to know that android does not support ad-hoc network and I haven't modified the /system/bin/wpa_supplicant file so that it can also show…

Nitin Khola
- 129
- 2
- 8
5
votes
3 answers
Listening WIFI state
I want to set listener to listen on wireless state,can anyone help me with my code
import android.telephony.PhoneStateListener;
import android.telephony.TelephonyManager;
...
TelephonyManager wTelephonyManager;
...
…

Tony
- 1,175
- 4
- 14
- 22
5
votes
1 answer
Timer T323 and fast dormancy in UMTS network
I was googling for RRC state transitions in UMTS networks and found that "whenever UE feels that there is no data left for transmission it starts a timer T323 ,upon expiration of this timer it sends a SCRI signal to end connection. On reception of…

Adi Tiwari
- 761
- 1
- 5
- 17
5
votes
1 answer
compile and build “iw” for android 4.1 device?
i need to install iw wireless packages on android 4.1 device. but i don't know how and what is the require version of the packages to install !!
also is it need linux platform to do this or it is enough to build and install on adb shell for android…

Hana90
- 943
- 5
- 17
- 37
5
votes
4 answers
How to get wifi hotspot state
I am creating wifi hotspot in my phone and I want get its state change event when I switched on or off hotspot.

UmaShanker
- 51
- 1
- 1
- 3