wifi

Wifi Broadcastreceiver onreceive

孤街浪徒 提交于 2020-01-14 04:10:10
问题 I have problems with the wifi broadcast receiver. It doesn't receive anything, onReceive is never called. Here's my code: public final class WifiChangeReceiver extends BroadcastReceiver { boolean portableHotspot = true; @Override public void onReceive(final Context context, Intent intent) { boolean alreadyPresent = false; String action = intent.getAction(); if(action.equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) { WifiManager w = (WifiManager) context .getSystemService(Context.WIFI

changed wifi advanced option from code but it won't work?

柔情痞子 提交于 2020-01-13 07:00:28
问题 I used this code to change wifi Ip setting (Ip Address and gateway) you can see the full code here : full class WifiConfiguration wifiConf = null; WifiManager manager = (WifiManager) getSystemService(MainActivity.WIFI_SERVICE); WifiInfo connectionInfo = manager.getConnectionInfo(); List<WifiConfiguration> configuredNetworks = manager .getConfiguredNetworks(); wifiConf = GetCurrentWifiConfiguration(manager); setIpAssignment("STATIC", wifiConf); setIpAddress(InetAddress.getByName("192.2.2.2"),

How to open wifi settings on Nook/NookColor

落爺英雄遲暮 提交于 2020-01-13 06:15:09
问题 My app needs active wifi connection. I added button "Go to wifi settings" with this code Intent settings = new Intent(Settings.ACTION_WIFI_SETTINGS); settings.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(settings); It is works perfect on 95% of devices. But on Nook color I have error android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.WIFI_SETTINGS flg=0x10000000 } How to open wifi settings on Nook/Nook color? 回答1: Summary : 1-Find

iOS Check if WiFi assist is enabled

只谈情不闲聊 提交于 2020-01-12 19:00:30
问题 I am trying to check if WiFi assist is enabled. I am having a problem when I am connected to my access point to get some data, and when I have poor connection my cellular data is used and it interfers with my access point. Is there any way to check if this option is enabled? 回答1: Ok, I think I can help a little. You need to check SCNetworkReachabilityFlags, for what I think, would be a specific combination of flags. I failed to find documentation that supports what combination of flags would

List connected devices to Android phone working as WiFi Access point

天大地大妈咪最大 提交于 2020-01-12 03:52:07
问题 Is there a way in Android API to list connected devices, when Android phone is acting as WiFi router? And also is there a way to interefere with routed request to serve a welcome/login page? 回答1: This is an answer from another stackoverflow question, I read it before two month and don´t know from which user the answer is from, but this should work. WifiManager gives You what You need: Main.java import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android

How to create a wireless hotspot from 3G connection in iOS

為{幸葍}努か 提交于 2020-01-12 02:28:10
问题 If I wanted to, how would I create an app like MyWi, i.e. a wifi tethering app? What are the steps to achieve this functionality? What frameworks/libraries would I need to use? The goal is not to try to get this app into the app store, but to have it for personal use, and provide it to others. EDIT: Nick pointed out the HandyLight app, an app that provided tethering capability disguised as a flashlight. So, it is possible to provide tethering functionality via a third-party app on a non

How to create a wireless hotspot from 3G connection in iOS

一笑奈何 提交于 2020-01-12 02:28:04
问题 If I wanted to, how would I create an app like MyWi, i.e. a wifi tethering app? What are the steps to achieve this functionality? What frameworks/libraries would I need to use? The goal is not to try to get this app into the app store, but to have it for personal use, and provide it to others. EDIT: Nick pointed out the HandyLight app, an app that provided tethering capability disguised as a flashlight. So, it is possible to provide tethering functionality via a third-party app on a non

wifi chat on android

▼魔方 西西 提交于 2020-01-11 07:50:36
问题 Is Wifi chat is possible on android? My requirement is my Pc thats connected with a wifi dongle and my android device has wifi. I want to convert my pc to server and android device to client and implement the chat. Is this possible? Please help me out. 回答1: Obviously it's possible. To start with, you could make a peer-to-peer chat over UDP, hard-coding each other's IP numbers into the other's programs. A few lines of python on the PC, a few lines of Java on the Android. Then you could start

Scapy - retrieving RSSI from WiFi packets

人走茶凉 提交于 2020-01-10 19:49:39
问题 I'm trying to get RSSI or signal strength from WiFi packets. I want also RSSI from 'WiFi probe requests' (when somebody is searching for a WiFi hotspots). I managed to see it from kismet logs but that was only to make sure it is possible - I don't want to use kismet all the time. For 'full time scanning' I'm using scapy. Does anybody know where can I find the RSSI or signal strength (in dBm) from the packets sniffed with scapy? I don't know how is the whole packet built - and there are a lot

Is it possible that a .apk file be run without Wifi?

心已入冬 提交于 2020-01-07 09:36:13
问题 I just used this to create a .apk file of my website. Is it possible that this file be run without accessing data connections or wifi? But all the same, the website should get updated when the Wifi or data is switched on. Anyone have anything that can help me? 回答1: First store your website's file in asset folder . Now everytime you open the app, check if the website file exists or not to prevent app from crashing. The code given below checks that and if it doesn't exist, then it calls a