android-wifi

WiFi changed status affecting my app

放肆的年华 提交于 2020-01-03 04:47:09
问题 I'm using WiFiManager through my app, at some level in the starting of the app it displays all the available WiFi networks to the user and enables him to choose one of them and make a connection to it, I'm making this by registering the CONNECTIVITY_CHANGE receiver through my manifest.xml : <receiver android:name="com.automation.standards.WifiReceiver" > <intent-filter> <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> </intent-filter> </receiver> and then dealing with the

Flag Wifi as mobile hotspot based on its name from code

喜夏-厌秋 提交于 2020-01-03 02:53:10
问题 Situation I have an android tablet connecting to an onboard unit (OBU) an a car via WiFi. The OBU has SIM card providing access to internet. The apps on the tablet communicate with server via the internet provided by the OBU. So, basically the OBU serves as mobile hotspot for the tablet. Problem The tablet performs updates that consume lot of data because it thinks it on Wifi This leads to depleting of the data limit available to the SIM card This leads to failure of the whole solution ... or

if this linux commands applicable for android WIFI DIRECT?

老子叫甜甜 提交于 2020-01-02 19:24:06
问题 i found resources talk about Wifi direct commands in linux at this link . i am wondered if these commands are applicable for android WIFI DIRECT ??? i need to access WIFI direct from terminal using rooted device. 来源: https://stackoverflow.com/questions/15314877/if-this-linux-commands-applicable-for-android-wifi-direct

Peer to peer connection in android

吃可爱长大的小学妹 提交于 2020-01-01 19:53:33
问题 Is there any way such that i can communicate with other android device in the same wifi network... for sharing files. Can I have list of all android device connected to same n/w? can any one refer me any api for doing that? or how can I make that thing happen?? this thing must be possible, Isn't it? I think this is possible in Android 4.0, using WiFiDirect but how that can be possible in lower level sdk's. Thank you 回答1: you should take a look at this WifiP2pManager 来源: https://stackoverflow

Android O issues with WiFi Peer Discovery

China☆狼群 提交于 2020-01-01 10:06:22
问题 I am developing an Android Application that employs WiFi (Direct) for service discovery and P2P peer discovery/connection. My development enviromment is as follows:- Android Studio 3.0 Beta 4 Build #AI-171.4304935, built on August 29, 2017 JRE: 1.8.0_152-release-915-b01 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Mac OS X 10.11.6 My Gradle build:- apply plugin: 'com.android.application' apply plugin: 'realm-android' android { compileSdkVersion 26 buildToolsVersion "26.0.1"

Android O issues with WiFi Peer Discovery

ぐ巨炮叔叔 提交于 2020-01-01 10:06:11
问题 I am developing an Android Application that employs WiFi (Direct) for service discovery and P2P peer discovery/connection. My development enviromment is as follows:- Android Studio 3.0 Beta 4 Build #AI-171.4304935, built on August 29, 2017 JRE: 1.8.0_152-release-915-b01 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Mac OS X 10.11.6 My Gradle build:- apply plugin: 'com.android.application' apply plugin: 'realm-android' android { compileSdkVersion 26 buildToolsVersion "26.0.1"

How to create Custom WPA Hotspot with ssid and password in android?

我与影子孤独终老i 提交于 2020-01-01 09:05:10
问题 I am using the following code for creating the Wifi-hotspot configuration. I am able to create the Hotspot configuration and able to enable it. but i have give configuration for WPA-PSK, But it always taken as OPEN network. public boolean setHotSpot(String SSID,String passWord){ Method[] mMethods = mWifiManager.getClass().getDeclaredMethods(); for(Method mMethod: mMethods){ if(mMethod.getName().equals("setWifiApEnabled")) { WifiConfiguration netConfig = new WifiConfiguration(); netConfig.SSID

How to create Custom WPA Hotspot with ssid and password in android?

爱⌒轻易说出口 提交于 2020-01-01 09:05:10
问题 I am using the following code for creating the Wifi-hotspot configuration. I am able to create the Hotspot configuration and able to enable it. but i have give configuration for WPA-PSK, But it always taken as OPEN network. public boolean setHotSpot(String SSID,String passWord){ Method[] mMethods = mWifiManager.getClass().getDeclaredMethods(); for(Method mMethod: mMethods){ if(mMethod.getName().equals("setWifiApEnabled")) { WifiConfiguration netConfig = new WifiConfiguration(); netConfig.SSID

Android Emulator - Wifi Error

大城市里の小女人 提交于 2020-01-01 08:44:55
问题 I am using the Android SDK Emulator ad trying to connect to the web. I can not do it as in the settings > Wireless & Networks , Where i need to turn the WiFi On, i get "Error" How to solve it? Gorov 回答1: Shut down the emulator. Turn off Ethernet, Firewire, and any other network interfaces. All of them. And I mean completely shut them off, e.g. on a Mac, open System Preferences > Network > Ethernet > Configure > OFF. Simply unplugging the Ethernet cable is not enough. Enable Wifi and verify it

Sending data to ESP8266 Wi-Fi chip from Android device

假如想象 提交于 2020-01-01 07:19:22
问题 I have a ESP8266 chip which is connected to the microcircuit. When chip gets value "200" the light is starting to blink 4 times and than it returns "100" value. I need to make an Android app using Java which will connect to the ESP8266 chip, send data to it and will get value "100". I don't know what library I should use to deal with it. Please, help me, how can I do that? I think it is not the most hard question here. 回答1: For your Controller you dont need any Libary. You just can use the