wifi

iPhone Wi-Fi Manager SDK

只愿长相守 提交于 2019-11-28 09:21:56
I'm attempting several methods trying to enable/disable Wi-Fi (toggle). Here are some things I am trying: //Enable WiFiManagerClientEnable(WiFiManagerClientCreate(kCFAllocatorDefault, 0)); //Disable WiFiManagerClientDisable(WiFiManagerClientCreate(kCFAllocatorDefault, 0)); -and- //Enable WiFiManagerClientSetProperty(WiFiManagerClientCreate(kCFAllocatorDefault, 0), @"AllowEnable", kCFBooleanTrue); //Disable WiFiManagerClientSetProperty(WiFiManagerClientCreate(kCFAllocatorDefault, 0), @"AllowEnable", kCFBooleanFalse); Each of those end up crashing the app, even though I have an exception

My App works over WiFi. But not over 3G in android? Any Guesses?

会有一股神秘感。 提交于 2019-11-28 09:20:00
问题 I have developed an App that target version is 4 (Android 1.6) upto 7 (Android 2.1). I tested this app on the dev phone 2 (Google-Io-Device 1.6 version). I am doing some xml parsing stuff through Internet. i set the <uses-permission> on my Manifest. it works fine in WI-FI Network. But its not working in the Motorola Droid 2.1 with 3G Network. Is there any more specific stuff to do for 3G network? Any Idea? Thanks in advance. Edit: My App works over WiFi Network. But not over 3G Network. Any

Google OAuth 2.0 and Captive portal with Embedded browser

扶醉桌前 提交于 2019-11-28 07:51:35
Both Android and IOS devices have a mechanism to detect captive portal on Guest Wifi networks. Whenever a captive portal is detected, these devices start an embedded browser in order to show up the captive portal. My captive portal allows my guest wifi to use their Google auth credentials in order to allow access to my wifi. The portal triggers an OAuth 2.0 with Google service and get back the user profile. All was working fine, unfortunately, Google decided to stop supporting OAuth 2.0 in Embedded browser on April 22nd. https://developers.googleblog.com/2016/08/modernizing-oauth-interactions

Getting WiFi proxy settings in Android

我们两清 提交于 2019-11-28 05:33:13
I am trying to read WIFI proxy settings Proxy host Proxy port Proxy user (authentication) Proxy password (authentication) from devices in android versions 2.X.X – 4.X.X without any success. Calling: String proxy = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.HTTP_PROXY); Always returns null. I've also added to my android manifest: <uses-permission android:name="android.permission.WRITE_SETTINGS" /> <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" /> still it returns null. Also tried: android.net.Proxy. getHost(Context ctx) – which is

How to write an Android SocketServer to listen on wifi

跟風遠走 提交于 2019-11-28 04:36:07
I've written a thread using java.net.SocketServer to listen on a particular port. It works fine in the android simulator (using port forwarding). I'm planning to connect over wifi to this port when the app is being used. However, the SocketServer documentation says that if you don't supply an InetAddress , the server listens on localhost. Am I correct that if I do not supply the address, I will not be able to get a connection over wifi? How can I get the InetAddress of the wifi connection to pass to the SocketServer ? Reno When you create a ServerSocket you listen to a port on the localhost .

How to get the other devices' host name in the same wifi?

て烟熏妆下的殇ゞ 提交于 2019-11-28 03:54:37
问题 I found some iOS app which could scan the local network and list all the device information. I wonder how. Pic: 回答1: Step 1 - Gel local IP For iOS 7 and lower #include <ifaddrs.h> #include <arpa/inet.h> - (NSString *)getIPAddress { NSString *address = @"error"; struct ifaddrs *interfaces = NULL; struct ifaddrs *temp_addr = NULL; int success = 0; // retrieve the current interfaces - returns 0 on success success = getifaddrs(&interfaces); if (success == 0) { // Loop through linked list of

Is there a way to toggle wifi on and off programmatically in iOS?

喜你入骨 提交于 2019-11-28 03:41:57
问题 I done it for Bluetooth using the code on this link: Is there a way to toggle bluetooth and/or wifi on and off programmatically in iOS? But I couldn't figure out how to do the same for Wifi. How do you switch the Wifi on/off? Is it possible? 回答1: In iOs 2.x you can use some private API to do this, however it does not work in iOS4.x, 5.x. Hope that Apple will public the API for manage Wifi, now it is only used by Setting apple app. 回答2: It's definitely not possible to turn WiFi off or on with

iOS Web page errors over Cellular Data but not over Wifi? Recent change to AT&T Cellular network?

淺唱寂寞╮ 提交于 2019-11-28 02:08:15
I'm encountering an issue with certain iOS web pages (in both mobile Safari, Chrome, and in also iOS Webviews in app) over cellular data vs. Wifi, The issue is identical to what was previously posted by someone else here: Mobile Safari Cellular Only Loading Error Unfortunately no answers yet posted to the above URL. Basically, I'm consistently seeing extraneous random garbage characters in the HTML that comes down from cellular data, but the same page loading perfectly okay via Wifi. This isn't a download speed or poor connection issue, it seems to be some inexplicable data transfer

Android: extracting wifi capabilities with contains

≡放荡痞女 提交于 2019-11-28 02:00:01
问题 I'm trying to know the type security of the scanned networks, and i'm getting result like this : [WPA-PSK-TKIP+CCMP][WPA2-PSK-TKIP+CCMP][ESS] [WPA2-PSK-CCMP][WPS][ESS] And i used this code : // Constants used for different security types public static final String WPA = "WPA"; public static final String WEP = "WEP"; public static final String WPA2 = "WPA2"; public static final String OPEN = "Open"; final String cap = results.get(position).capabilities; final String[] securityModes = { WEP,

Indoor navigation hardware/software requirements for iOS

ぃ、小莉子 提交于 2019-11-28 01:48:54
问题 I'm developing navigation system for my university as some kind of research activity. I'm using SVGKit to display floor plans. And now I need to provide user locationing service for navigation and tracking. So here's my questions: 1) Do I need some special hardware installed in university (Cisco MSE for example, or some cheaper analogues), or I can apply some software/technologies to our current hardware for server-side user location determining? If I do, what equipment do I need for it? I