wifi

How can I turn on/off WiFi programatically on WP7

跟風遠走 提交于 2019-12-19 08:53:00
问题 I would like to know if there is any possibility to turn wifi on and off programatically. My idea is to have a background task looking for geocoordinates and toggle the wifi settings wether the phone is in the range of a former saved location or not. Yet everything I saw were apps which get the state of the wifi and quick jump to the wifi settings. I would like to implement a more automated app which helps saving battery power. 回答1: Sorry, you can't programmatically turn on or off the wifi.

How to get wifi standard

孤者浪人 提交于 2019-12-19 07:47:19
问题 How can I get and change wifi standard, which I'm using now in my android device. For example: IEEE 802.11b or IEEE 802.11g or IEEE 802.11n. If this is possible. 回答1: Its not possible to get what type of network the phone is connected to. However you can find the speed of the network: WifiManager wifiManager = Context.getSystemService(Context.WIFI_SERVICE); WifiInfo wifiInfo = wifiManager.getConnectionInfo(); if (wifiInfo != null) { Integer linkSpeed = wifiInfo.getLinkSpeed(); //measured

How to get wifi standard

笑着哭i 提交于 2019-12-19 07:47:11
问题 How can I get and change wifi standard, which I'm using now in my android device. For example: IEEE 802.11b or IEEE 802.11g or IEEE 802.11n. If this is possible. 回答1: Its not possible to get what type of network the phone is connected to. However you can find the speed of the network: WifiManager wifiManager = Context.getSystemService(Context.WIFI_SERVICE); WifiInfo wifiInfo = wifiManager.getConnectionInfo(); if (wifiInfo != null) { Integer linkSpeed = wifiInfo.getLinkSpeed(); //measured

Security exception by accessing the wifi in android

风流意气都作罢 提交于 2019-12-19 05:12:41
问题 Please see the following code wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); if (wifi.isWifiEnabled() == false) { Toast.makeText(getApplicationContext(), "wifi is disabled..making it enabled", Toast.LENGTH_LONG).show(); wifi.setWifiEnabled(true); } Though I have added the permission in manifest file as <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.test.wifi" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8

Transfer file from one ios device to another using wifi and 3G network?

左心房为你撑大大i 提交于 2019-12-19 04:55:28
问题 I am just curious to learn if I can send file from one ios device to another using wifi or 3G network. I am not sure this is possible or not. I gone through apple's documentation of CFNetwork reference and I found cfftp reference. I am not able to understand it clearly as it is saying that we can implement read stream from remote server. I want to read file from one device to another device and write the same using wifi of both devices same as the way we can do using Bluetooth . Is it

Accessing localhost from android over wifi

江枫思渺然 提交于 2019-12-19 04:05:54
问题 I have written a Https webservice, so it is encrypted with SSL. For testing i would like to acces that webservice over wifi. edit Example: My webservice is running on a VM number 111, i want to acces it over wifi so the adress would be https://VM111/Webservice/service.svc. I can acces it from any laptop in the wifi network but not from the Android Phone, that is my problem. Is there a way to acces the localhost of the VM, from the Android phone, and has anyone dealt with this before? My gues

how to calculate power consumption on an Android mobile that uses wifi?

谁说我不能喝 提交于 2019-12-19 04:04:53
问题 I have implemented a routing protocol on an Android 1.6 mobile that uses wireless (ad-hoc) network in order to exchange messages. Now I would like to evaluate it under an energy consumption point of view, the base would be to try to calculate the energy wasted to transmit a single packet, do anybody has any idea how to do that? Software/hardware solutions are welcome! 回答1: I don't believe that any application will give you any form of meaningful result. You really need to be looking at a

Change WiFi MAC Address [closed]

大兔子大兔子 提交于 2019-12-19 04:01:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm one of the developers working on the Serval Project and we're looking at using the Huawei Ideos U1850 as the default platform for our Android development activities. We've purchased a few phones from one of our local resellers here in Australia. We have noticed that a number of the devices that we've sourced

Set or View “Advanced Wi-fi” Settings programatically

梦想与她 提交于 2019-12-19 02:54:28
问题 I need a way to open the "Advanced wifi" settings programatically to let the user change some of the settings, or, preferably, to change these advanced wireless settings programatically. I can only access the wi-fi settings so far via startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS)) but not the advanced settings. Is there a way to open the "Advanced wifi" settings? 回答1: There are two more settings that might work for you: From the API documentation: Settings.ACTION_WIRELESS_SETTINGS

Am I using CNCopyCurrentNetworkInfo correctly?

↘锁芯ラ 提交于 2019-12-19 00:52:07
问题 I'm having some issues with the data returned by CNCopyCurrentNetworkInfo and was wondering if I'm doing something wrong. I'm using the following code to display the BSSID of the currently connected Access Point: NSArray* interfaces = (NSArray*) CNCopySupportedInterfaces(); for (NSString* interface in interfaces) { CFDictionaryRef networkDetails = CNCopyCurrentNetworkInfo((CFStringRef) interface); if (networkDetails) { NSLog(@"all details: %@", (NSDictionary *)networkDetails); NSLog(@"BSSID: