wifi

How to connect android wifi to adhoc wifi?

无人久伴 提交于 2019-11-27 17:40:51
I'm new on the android system. Is this correct, the android 2.2.1 WIFI only detects non-ad hoc wireless network? I was wondering if there's a way to connect my android to an ad hoc network set-up from my laptop. You are correct that this is currently not natively supported in Android, although Google has been saying it will be coming ever since Android was officially launched. While not natively supported, the hardware on every android device released to date do support it. It is just disabled in software, and you would need to enable it in order to use these features. It is however, fairly

Android application Wi-Fi device - AP connectivity

拥有回忆 提交于 2019-11-27 17:28:23
I am building an application which can transfer data between a mobile and a Wi-Fi device... The mobile has got the AP enabled (through code) and another device connects to this specific network... How can I detect through code to see the details of the devices connected to the network(AP)?** Is there a solution for this? I have seen an application called Wifi Hot spot in HTC Desire that does this functionality of showing the IP addresses of the devices connected to the network. How can this be achieved? Check out Review: Sprint Mobile Hotspot on HTC EVO 4G . It shows an application that can

Detecting limited network connectivity in Android?

笑着哭i 提交于 2019-11-27 17:01:10
问题 There are a number of questions regarding how to detect network connectivity in Android. https://stackoverflow.com/a/4239019/90236 provides a very detailed answer and https://stackoverflow.com/a/8548926/90236 shows methods to identify the type of network to which one is connected. We detect network connectivity using code similar to those answers like: private boolean isNetworkAvailable() { ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY

Github (SSH) via public WIFI, port 22 blocked

安稳与你 提交于 2019-11-27 16:39:40
I'm currently on a public WIFI spot and I'm unable to use SSH (they probably blocked that port). However, I need that connection to do a git push . ➜ ssh -T git@github.com ssh: connect to host github.com port 22: Connection refused Is it possible to bypass this restriction by setting up a SSH tunnel via port 80 and tell github push to use that connection? How to do that? I'm on OSX (lion). This must be a common problem? prtitrz Try this: $ vim ~/.ssh/config Add Host github.com Hostname ssh.github.com Port 443 Source: https://help.github.com/articles/using-ssh-over-the-https-port the_karel The

how to solve discovering other device via Wi-Fi (android API)?

馋奶兔 提交于 2019-11-27 16:19:58
recently I follow the steps given from Developer.Android.Com But it seems i have a few luck over there. I tried to discover the available peers nearby, put 'em into the arraylist but seems no luck. I didnt get anything. My Actual 2 Devices are actually android 4.1 and 4.2 Since Wifi Direct is based on API Level 14 which is android 4.0+ so i think my real device is not the problem. The concept I use is using 1 activity and 1 BroadCast Receiver. Please take a look at my code, did I put it wrongly or something I forgot? Chat1Activity.java package com.example.androtut; import java.util.ArrayList;

How to get signal strength of connected WiFi android?

白昼怎懂夜的黑 提交于 2019-11-27 15:22:46
问题 I want to get signal strength of this wifi which is connected with my device. This is probably easy. But I am beginner. And It's homework. How to get it? I tried this code. But it doesn't work. registerReceiver(new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { final WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); int state = wifi.getWifiState(); if(state == WifiManager.WIFI_STATE_ENABLED) { List<ScanResult> results = wifi

Wifi Authentication Error in Android

落花浮王杯 提交于 2019-11-27 15:08:02
问题 I am developing an application using Wifi in Android. Whenever I enter wrong password while connecting to wifi, I dont get any notification for invalid authentication. It just keeps on retrying to connect. Same behavior is found in wifi wireless setting. Is there any way to find that Wifi Authentication has failed?? WifiManager.EXTRA_SUPPLICANT_ERROR -- I never get this.. 回答1: This code works: IntentFilter mIntentFilter = new IntentFilter(); mIntentFilter.addAction(WifiManager.SUPPLICANT

iPhone Wifi on or off?

纵然是瞬间 提交于 2019-11-27 14:52:52
Within iOS framework, how can one check if the Wifi radio is enabled by the user or not? Please note that I'm not interested in the reachability through Wifi but rather if the device is turned off by the user. Thanks. As mentioned in comment by @magma, you may have to use Reachability source code. So far based on my experience and what others have been talking, there is NO boolean which can tell you if the user has turned off Wi-Fi in Settings. By checking if the device can reach internet, you just have to deduce and conclude(assume) the user has turned Wi-Fi off. bllakjakk Based on: http:/

List / Scan for available WiFis iPhone

泪湿孤枕 提交于 2019-11-27 14:12:46
问题 I'm searching for a way to present available WiFis in an iPhone App. So far my research resulted in the following: Apps that implement(ed) such a functionality were removed from the AppStore (means you can't deploy the App via AppStore which is fine for me) Apple hides the functionality that is necessary for a scan in a private framework and you can't find any explanations/comments/examples on "how to use" http://code.google.com/p/iphone-wireless seems to be most promising. anyway, i can't

Start / stop built-in Wi-Fi / USB tethering from code?

随声附和 提交于 2019-11-27 13:32:45
问题 How can I start or stop the built-in tethering in Android 2.2 from my application? 回答1: There is a non-public Tethering API in the ConnectivityManager . As shown above you can use reflection to access it. I tried this on a number of Android 2.2 phones, and it works on all of them (my HTC turns on tethering but does NOT show this in the status bar..., so check from the other end). Below is some rough code which emits debugging stuff and turns on tethering on usb0. ConnectivityManager cman =