Force 2.4GHz WiFi on Android 11
I have a phone with Android 11 and I want it to connect to the 2.4GHz band of the WiFi. The WiFi has both the 2.4GHz and 5GHz band with the same SSID. I am working on some testing which requires me to not change any settings on the router. Is it possible to have the phone get connected to the 2.4GHz band and not the 5GHz band? Previously, Android had options to select the band in Advanced WiFi settings, but it is not present right now and I cannot have two SSIDs for the 2 bands.
do you know?
how many words do you know
See also questions close to this topic
-
Updating a Single Column In Room Database
That's the function I'm using for updat
private fun updateSettingsDatabase(settingsDao: SettingsDao) { lifecycleScope.launch { settingsDao.update(SettingsEntity( 1, nightMode=nightModeResult, )) } } @Query("SELECT * FROM `settings-table`") fun fetchCurrentSettings(): Flow<List<SettingsEntity>>
I specified
nightMode=
because I thought that this way I'm only updating this colummn, but it turns out that it resets every column, how do I update a single column, while keeping the values the rest of the columns? -
Using EdittextPreference for Goto search
sorry for my poor English. I want to use EditTextPreference in my bottom nav like the pic below, ![screenshot][1]
I have recycleview xml in my project with in many sub cardview layouts(which is scrollable) and I want to create item in the bottom nav which is called "Goto". When the "Goto" item is clicked i want it to pop-up like the screenshot. And when user enters a number(according to the cardviews i.e if the number of cardview is 40 user must enter 1-40) I want to search the cardview by its ID. Thank you and I hope u got it, If u have any questions let me know [1]: https://i.stack.imgur.com/grK8P.jpg
My xml format look like this. As you see in the blow since the cardviews are huge in number it is not cool to scroll all the way down that is why i need Goto item in the bottom nav to search it by its ID when the user click number in the EditTextPreference as u see in the screenshot. i.e The screenshot is not from my app
<LinearLayout> <LinearLayout> <androidx.cardview.widget.CardView> <RealtiveLayout> <Textview/> <RealtiveLayout> </androidx.cardview.widget.CardView> </LinearLayout> <LinearLayout> <androidx.cardview.widget.CardView> <RealtiveLayout> <Textview/> <RealtiveLayout> </androidx.cardview.widget.CardView> </LinearLayout> <LinearLayout> <androidx.cardview.widget.CardView> <RealtiveLayout> <Textview/> <RealtiveLayout> </androidx.cardview.widget.CardView> </LinearLayout> <LinearLayout> <androidx.cardview.widget.CardView> <RealtiveLayout> <Textview/> <RealtiveLayout> </androidx.cardview.widget.CardView> </LinearLayout> .. .. .. .. many more..
-
IOS Launcher in android studio
I'm trying to change the whole Android OS installed app icons into IOS icons, please help me with the proper code or library for android kotlin
-
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 a Pi to my phones hotspot. I don't get a lot of help on Volumio forums, I have my CCNA, and know some coding methods. I really want to get my home project working, so that's why I'm asking here.
I basically have not been able to get my pi to connect to only my hotspot. Currently it works if I have my hotspot on, and connect to my home wifi. I used journtalctl commands and found something that looks weird:
When I connect to my phone hotspot, I see it goes through the handshake steps, checks for the proper key, it says “connected to: Pixel 5”, “key negotiation completed”, “send eapol packet, recv eapol packet”, Once it gets to association it says " association success", Then: “rtw_cfg80211_indicates_connect(wlan0) BSS not found !!” then it has another association success, with it basically looking like it fails saying “Trying to associate with (instert my AP MAC ADDR)” I have not been able to use Wireshark but I think it's failing to associate. Is that what this looks like? I’ve never had an association issue before. Another weird thing is when I command “sudo iwconfig” it says “security mode: open” not sure if that is supposed to show my wifi encryption method instead?
It's really late so, tomorrow I will borrow a friends phone, because I'm not sure it's working completely with my phone.
-
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; WifiInfo wifiInfo = wifiManager.getConnectionInfo(); int frequency = wifiInfo.getFrequency(); int ipAddress = wifiInfo.getIpAddress(); int speed = wifiInfo.getLinkSpeed(); String ssid = wifiInfo.getSSID(); int wifiStandard = wifiInfo.getWifiStandard(); wifiDataTest = "Frequency [MHz]: " + frequency + "\nIP address: " + ipAddress + "\nSpeed [Mbps]: " + speed + "\nSSID: " + ssid + "\nWifi standard: " + wifiStandard; return "WIFI\n" + wifiDataTest; }
With
int wifiStandard = wifiInfo.getWifiStandard ();
shows me the error:E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.sensors, PID: 11040 java.lang.NoSuchMethodError: No virtual method getWifiStandard()I in class Landroid/net/wifi/WifiInfo; or its super classes (declaration of 'android.net.wifi.WifiInfo' appears in /system/framework/framework.jar)
I have not found information about such an error anywhere. Everything before
getWifiStandard ();
worked fine.