wifi

Bluetooth and WIFI Printing for Android

孤人 提交于 2019-12-17 03:56:05
问题 We would need a portable printer (handheld, it is important) that can connect to android phone via bluetooth or wifi. What I know currently: No standard printing SDK available for Android this time There is a non official SDK called iPrint SDK. Have any of you tried it through wifi or bluetooth? Does it work? Printershare also claims to be programmaticly available. It would be ok for me to pay the one time fee $5 for it per phone. It has a lot of supported formats. Have you tried it with any

Android turn On/Off WiFi HotSpot programmatically

南楼画角 提交于 2019-12-17 02:07:28
问题 Is there an API to turn On/Off the WiFi HotSpot on Android programmatically? What methods should I call to turn it On/Off? UPDATE: There's this option to have the HotSpot enabled, and just turn On/Off the WiFi, but this is not a good solution for me. 回答1: Use the class below to change/check the Wifi hotspot setting: import android.content.*; import android.net.wifi.*; import java.lang.reflect.*; public class ApManager { //check whether wifi hotspot on or off public static boolean isApOn

Change the password for a Wi-Fi profile

本小妞迷上赌 提交于 2019-12-14 03:41:50
问题 In the long-term care hospital where I volunteer, on the first day of every month, the password for the Guest Wi-Fi connection changes. This causes a lot of work for the staff and a lot of frustration for the patients, many of whom have very limited mobility. (Yes, the real solution is to get the IT team to keep the same password, but that's not going to happen). Most of the patients connect to the outside world through Windows laptops. I'd like to create a batch script that we can install on

How to check if Internet is active with wifi network connected in android

泄露秘密 提交于 2019-12-14 01:52:51
问题 How to check automatically if internet is active on the WiFi network connected in android? I can check if wifi is enabled or if wifi network is connected but I am not sure how to check if internet is connected? Is this possible? private boolean connectionAvailable() { boolean connected = false; ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); if (connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI).getState() ==

Unable to show Google Maps using WiFi behind a proxy

核能气质少年 提交于 2019-12-13 22:06:12
问题 I have created a simple app which shows a Google Map. I am testing it on a HTC Desire S and I am using only WiFi network behind a proxy. But it is not showing anything, only map tile are shown in the screen. Even the default map application is not working. It shows the error message that "Network Failure : wrong remote string version.GMM server must be hosting:/ string_remote_no-remote-strings." My Map API key is correct and I have added the following permissions in the manifest file: <uses

iphone - making Wifi-list app

筅森魡賤 提交于 2019-12-13 20:01:31
问题 I want to programmatically show a list of available wifi on my iphone. I tried to run this program but it doesn't work. http://code.google.com/p/iphone-wireless/wiki/Stumbler Does anyone have any tutorial or sample code about creating a list of wifi-network. Thanks. 回答1: I think that's not possible. I didn't try it myself. But I just read the first few lines of the description of Stumbler. There's the following line: Stumbler can not be distributed through the app store, as it uses private

How To Connect to adb via WiFi *With a convenient BAT file*

你离开我真会死。 提交于 2019-12-13 18:22:25
问题 I was trying to find a way to connect Via WiFi to my android.. Found some on StackOverflow but they were all requireing going to cmd every time I wanted to connect my android.. So I came up with a bat file See below 回答1: I Found some nice ways to connect to your device via WiFi on Stackoverflow.. But they all required going to cmd every time you wanted to connect and this was inconvenient for me.. So I spent some time and created a bat file which with one click allows you to connect your

how to enable Wi-Fi and search for networks on windows phone emulator

被刻印的时光 ゝ 提交于 2019-12-13 16:25:42
问题 Can I enable wifi on my windows phone emulator? I want so see networks available in emulator like I see on a real mobile Phone. I am using VS 2013, and working on a laptop with wifi. When I click the on button on Wi-Fi settings it remains in a loop. I already managed to give internet acces to my emulator. But I wish to search for wifi networks. Thank you 回答1: No you can't enable WiFi on your Windows Phone Emulator because the emulator is actually a virtual OS running on Hyper-V, which is

SecurityException when getting Wifi Scan Results

我是研究僧i 提交于 2019-12-13 14:28:14
问题 I'm working with Android Studio on an app that, when I push a button, gives me the results of wifi scan! If I test the code alone (only the part "wifi scan") it works... But when I put it in the complete app, the app crashs! Why? I post my code: //MAIN package com.example.pc1.tesiprova; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget

Hostapd BSSID configuration

点点圈 提交于 2019-12-13 08:56:07
问题 We have a device that creates an access point using the MAC address of wlan1 as the BSSID. We are trying to change this default BSSID, and we somehow manage to do it, but it seems our changes don't take an effect on what the clients see as BSSID for the network. The question is how to properly configure hostapd to run the access point with the BSSID we want it to have. On the server side We can see that our configuration has an effect on all the 3 places where we expect it to have it. hostapd