wifi

Can Phonegap query the wifi system and return network names?

柔情痞子 提交于 2019-12-05 10:46:36
I checked the Phonegap API but what I would like to achieve, getting a list of available wifi networks, seems not supported. Anyone knows if it's possible at all in the current state? davejohnson You cannot get a list of available wifi networks at the moment. PhoneGap will support reading the currently connected network SSID via the system information api ( http://www.w3.org/TR/system-info-api/#network ). If you wanted to list all the wifi networks today, you would have to write a PhoneGap plugin -- assuming those APIs are actually available on the devices in which you are interested. Here is

Android how to know Internet total data usage per day through wifi and mobile

眉间皱痕 提交于 2019-12-05 10:30:51
How to know internet total data usage per day? For example, at the end of the day I used 800mb then it should return like "internet usage of 800mb on 20th May 2015". So how can I detect total data usage ? After much googling I could only find data usage in sending and receiving bytes but not in total usage. And also want to split the usage into wifi and mobile data. Take a look at the TrafficStats class. For this, you'll want to look specifically at getTotalRxBytes() , getTotalTxBytes() , getMobileRxBytes() , and getMobileTxBytes() . A quick overview: getTotalRxBytes = total downloaded bytes

Turn Wifi on/off for iphone from an application

只谈情不闲聊 提交于 2019-12-05 09:45:43
I need to turn on or off the wifi in the iphone. Any ways of doing it? Or is it forbidden (private framework) visakh7 All applications written with the public SDK are sandboxed. They only have access to the properties and data which Apple deems feasible to use within that sandbox. I am afraid Wi-fi doesn't come in the list Pls take a look at this SO question iPhone Wi-Fi Manager SDK and this discussion 来源: https://stackoverflow.com/questions/5963880/turn-wifi-on-off-for-iphone-from-an-application

how to check the real Internet connected in android?

江枫思渺然 提交于 2019-12-05 08:18:27
I make a program, and I have to use wifi to connect Internet. I find some information to check whether the wifi is connected or not. But in some situation, you can connect the wifi AP but you still can't use Internet like the wifi needed account and password to certificate in https, or the wifi AP is not able to Internet. So, how can I check the real Internet connected? Frank Just do a "Ping" to www.google.com chances that they are down are very low. P.S. it's what we do in our app.. public static boolean isReachable(Context context) { // First, check we have connectivity final

Network access when the Android phone is asleep

拟墨画扇 提交于 2019-12-05 08:17:40
I'm using a combination of alarm (set with AlarmManager ) and background service to periodically synchronize data in my application. The only problem I have is that when sleep policy terminates Wi-Fi connection the synchronization no longer works. Is there a way to "wake up" the Wi-Fi connection that has been put to sleep? GMail somehow manages to do that because it notifies me about new e-mail even if the phone entered sleep mode. [update]You can use a WifiLock to keep WiFi active, while holding the lock. Using an AlarmManager and a Service says to me your service is running only for a very

Bluetooth protocol over wifi?

依然范特西╮ 提交于 2019-12-05 08:14:57
I'm looking to implement the Bluetooth protocol over a physical Wi-Fi based transport, if that makes sense. Basically my phone has Bluetooth, and my laptop has a Wi-Fi card (802.11a/b/g). I know that Wi-Fi operates over the range 2.412 GHz - 2.472 GHz, and that Bluetooth operates over the range 2.402 GHz - 2.480 GHz. I couldn't help but notice the overlap here. So my questions are: What sort of low-level APIs would I need (preferably in C, on Windows) in order to send a signal out at certain frequencies on the Wi-Fi card? Would I be able to implement a Bluetooth stack on top of this? So

Sniffing wifi using libpcap in monitor mode

喜欢而已 提交于 2019-12-05 07:59:12
Problem Statement Calling pcap_activate() results in PCAP_ERR_RFMON_NOTSUP error, i.e. RF monitor mode is not supported. Context I'm writing small C program whose job is to listen on my laptop's wifi card in monitor mode. The laptop is running Ubuntu 12.04 LTS. I ran airmon-ng start wlan0 command after which mon0 interface appeared. Following shows output of iwconfig command after running the airmon command: $ iwconfig mon0 IEEE 802.11bgn Mode:Monitor Tx-Power=16 dBm Retry long limit:7 RTS thr:off Fragment thr:off Power Management:off eth0 no wireless extensions. lo no wireless extensions.

Configure Wifi Settings using C#

那年仲夏 提交于 2019-12-05 06:39:28
问题 How to configure Wifi Settings for a Win Mobile application using C# (compact framework)? So the deal is: Configure the network (SSID for an hiden AP) WPA authentication with TKIP Force user and password (the end-user won't be prompted for authentication) 回答1: Take a look at the Smart Device Framework. It has a NetworkInformation namespace that wrap a large amount of the WZC functionality. I know it will do WEP and WPA with TKIP (as well as open). It allows you to pass in the key material,

connecting an iOS app to wifly module

冷暖自知 提交于 2019-12-05 05:33:19
I have a Wifly module that is in AdHoc mode (i.e. it creates its own local wifi network) and I would like to program into my iOS app the ability to connect to the Wifly and send data back and forth. When communicating with the Wifly from a computer, you have to send command through a terminal emulator. Does anyone know how to do this from an iOS app? Thanks You (or your user) first need to connect manually to the ad-hoc Wifly network in the wifi settings. Then, to communicate from your app to the Wifly, you need to open a TCP or a UDP socket and send messages through it. I used the excellent

Android 6 : Connect to specific wifi network programmatically not working

不打扰是莪最后的温柔 提交于 2019-12-05 03:24:33
问题 I am trying to connect to a wifi network by giving the SSID and pass using WifiManager configurations. Based on this threads solution: How do I connect to a specific Wi-Fi network in Android programmatically? The reconnect method is called. but nothing happens (not connected). Is the Android version (6.0.1) for something? If yes then how to perform a network connection programmatically on Android 6? 回答1: A few things have changed about how you connect to a WiFi network since android