wifi

Tracking wifi and cellular bytes sent and received by each process/app in ios

前提是你 提交于 2021-02-08 12:13:24
问题 I went through this link regarding retrieve the applications currently running in iPhone and iPad . Is it possible to track wifi and cellular interfaces for each process running on iphone? 回答1: You can refer to this post to get the data counters, but it is for the wifi/cellular data overall, not only your app: iPhone Data Usage Tracking/Monitoring Edit : Code added - (NSArray *)getDataCounters { BOOL success; struct ifaddrs *addrs; const struct ifaddrs *cursor; const struct if_data

WiFi enabled device recognize WiFi access points?

时间秒杀一切 提交于 2021-02-08 10:40:18
问题 How does WiFi enabled device recognize WiFi access points in programming language? 回答1: from: http://www.androidsnippets.com/scan-for-wireless-networks package com.android.wifitester; import java.util.List; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.net.wifi.ScanResult; import android.net.wifi.WifiManager; import android.os.Bundle; import android.view

Connect to wifi network Android programmatically

℡╲_俬逩灬. 提交于 2021-02-08 06:14:28
问题 I am trying to connect to selected wifi network(from UI) but I am unable to connect to it. Here is my code: private boolean addNetworkAndActivate(ScanResult scanResult, String password) { WifiConfiguration wc = null; List<WifiConfiguration> configs = mainWifi.getConfiguredNetworks(); for (WifiConfiguration wifiConfiguration : configs) { try { if (wifiConfiguration.SSID.equals("\"" + scanResult.SSID + "\"")) { wc = wifiConfiguration; break; } } catch (Exception e) { } } // not configured,

Connect to wifi network Android programmatically

与世无争的帅哥 提交于 2021-02-08 06:14:19
问题 I am trying to connect to selected wifi network(from UI) but I am unable to connect to it. Here is my code: private boolean addNetworkAndActivate(ScanResult scanResult, String password) { WifiConfiguration wc = null; List<WifiConfiguration> configs = mainWifi.getConfiguredNetworks(); for (WifiConfiguration wifiConfiguration : configs) { try { if (wifiConfiguration.SSID.equals("\"" + scanResult.SSID + "\"")) { wc = wifiConfiguration; break; } } catch (Exception e) { } } // not configured,

Connect to wifi network Android programmatically

强颜欢笑 提交于 2021-02-08 06:13:15
问题 I am trying to connect to selected wifi network(from UI) but I am unable to connect to it. Here is my code: private boolean addNetworkAndActivate(ScanResult scanResult, String password) { WifiConfiguration wc = null; List<WifiConfiguration> configs = mainWifi.getConfiguredNetworks(); for (WifiConfiguration wifiConfiguration : configs) { try { if (wifiConfiguration.SSID.equals("\"" + scanResult.SSID + "\"")) { wc = wifiConfiguration; break; } } catch (Exception e) { } } // not configured,

How to detect unsecured wifi network from iOS App

谁说我不能喝 提交于 2021-02-07 20:42:01
问题 I would like to detect the presence of unsecured wifi network in my app. Is there any public iOS API available to achieve the same? 回答1: There is no documented API to get that information. If you application needs to send and receive sensitive data across the network, you should generally assume that no connection is secured. 回答2: I would suggest you use an SSL connection for your web service. Then the data that leaves will be encrypted. 回答3: Have a look at the stumbler application and in

How to detect unsecured wifi network from iOS App

强颜欢笑 提交于 2021-02-07 20:40:18
问题 I would like to detect the presence of unsecured wifi network in my app. Is there any public iOS API available to achieve the same? 回答1: There is no documented API to get that information. If you application needs to send and receive sensitive data across the network, you should generally assume that no connection is secured. 回答2: I would suggest you use an SSL connection for your web service. Then the data that leaves will be encrypted. 回答3: Have a look at the stumbler application and in

iOS Get Link Speed (Router Speed Test)

喜欢而已 提交于 2021-02-07 08:24:02
问题 I want to test speed of connected router(wifi modem) from iOS app. I've found something here Get link speed programmatically? but could not found sockios.h and ethtool.h Is it possible to port this code to Objective-C or is there another way? -- Sorry for the missing info and my poor english. I want to test link speed (tx rate) between ios device and connected wifi modem. There was a property named txRate in CWInterface class. I want to get that data in Cocoa Touch. /*! * @property *

iOS Get Link Speed (Router Speed Test)

偶尔善良 提交于 2021-02-07 08:21:31
问题 I want to test speed of connected router(wifi modem) from iOS app. I've found something here Get link speed programmatically? but could not found sockios.h and ethtool.h Is it possible to port this code to Objective-C or is there another way? -- Sorry for the missing info and my poor english. I want to test link speed (tx rate) between ios device and connected wifi modem. There was a property named txRate in CWInterface class. I want to get that data in Cocoa Touch. /*! * @property *

Java CryptUnprotectData Windows WiFi Passwords

北城余情 提交于 2021-02-05 11:23:06
问题 I'm trying to decrypt a Windows WiFi password on the same machine using Java which is supposed to work with cryptUnprotectData() but I'm getting the following error: Exception in thread "main" com.sun.jna.platform.win32.Win32Exception: The data is invalid. at com.sun.jna.platform.win32.Crypt32Util.cryptUnprotectData(Crypt32Util.java:128) at com.sun.jna.platform.win32.Crypt32Util.cryptUnprotectData(Crypt32Util.java:103) at com.sun.jna.platform.win32.Crypt32Util.cryptUnprotectData(Crypt32Util