wifi

Problem connecting Android app to socket using cell connection

自作多情 提交于 2019-12-05 17:27:06
I'm trying to get my android app to connect to a socket on a server across the internet. I notice that when I have my Wi-fi turned on in the phone, the App can successfully connect to the port, but if I turn off the wi-fi, I get a time out on the connection. I can access and browse the internet on the phone seamlessly when wi-fi is off but connecting to that server always fails. I've verified that the server is listening on that port and I can always connect from any other computer across the internet and on the phone if wi-fi is enabled. I'm wondering what could be different between using the

Wi-Fi scanning without broadcast receiver?

你说的曾经没有我的故事 提交于 2019-12-05 17:25:47
I have created wi-fi scanner. It continually scans for available wi-fi networks. But my question is why would exactly broadcast receiver is needed if i can actually run scanning (invoke startScan() with timer every x seconds) and receive the same results without creating broadcast receiver? This is broadcast receiver code in onCreate() method: i = new IntentFilter(); i.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); receiver = new BroadcastReceiver(){ public void onReceive(Context c, Intent i){ WifiManager w = (WifiManager) c.getSystemService(Context.WIFI_SERVICE); List<ScanResult> l = w

Can I use WiFi to transfer data/messages between two android phones, not connected to a router?

倖福魔咒の 提交于 2019-12-05 17:19:07
I'm aware that if two Android phones are connected to a same wifi network, they can implement socket programming to transfer data between them But I actually want to know if you can use wifi as a transfer medium between two Android phones, just like you Bluetooth? With Android 2.2+ it is possible to create a WiFi hot-spot on one device so another device can connect. Internet connection on either device is not required. mpontillo What you are looking for is ad-hoc wireless networking , which is not well supported on the Android platform. (but some people have bravely rooted their phones and

What is the difference between active scan and passive scan?

我是研究僧i 提交于 2019-12-05 15:16:51
问题 What is the difference between mWifiManager.startScanActive() and mWifiManager.startScan() . What is the difference between active scan and passive scan ? 回答1: Passive scanning listens to beacons sent by the access points. That means waiting for the beacon to be sent (usually a few seconds). An active scanning will emit probes to those APs immediately. 回答2: please note that an active scan will consume more energy and as "ordinary" wifi access points broadcast their beacons several times per

谁更安全?WI-FI无线网加密方式大比拼

霸气de小男生 提交于 2019-12-05 13:49:45
  哪里有隐私,哪里就有安全防护。随着无线网络的普及,在商场、街上、餐厅搜索到无线信号并不出奇,这些无线热点一般都是免费的提供,并不对信号进行加密。但对于家庭来说,如果自己付款的宽带网络因无线信号没有加密而给别人免费享用并占用了大量的带宽这可不是一件愉快的事情。那么应该如何选择WI-FI无线网加密方式呢?   两种常用的加密WEP、WPA   目前,无线网络中已经存在好几种加密技术,最常使用的是WEP和WPA两种加密方式。无线局域网的第一个安全协议—802.11 Wired Equivalent Privacy(WEP),一直受到人们的质疑。虽然WEP可以阻止窥探者进入无线网络,但是人们还是有理由怀疑它的安全性,因为WEP破解起来非常容 易,就像一把锁在门上的塑料锁。   WEP安全加密方式   WEP特性里使用了rsa数据安全性公司开发的rc4 prng算法。全称为有线对等保密(Wired Equivalent Privacy,WEP)是一种数据加密算法,用于提供等同于有线局域网的保护能力。使用了该技术的无线局域网,所有客户端与无线接入点的数据都会以一个共享的密钥进行加密,密钥的长度有40位至256位两种,密钥越长,黑客就需要更多的时间去进行破解,因此能够提供更好的安全保护。   WPA安全加密方式   WPA加密即Wi-Fi Protected Access

wifi chat between two or more android devices

家住魔仙堡 提交于 2019-12-05 13:39:39
I want to develop an chat application to chat between two or more android devices using wifi network.The application should be able to send or receive strings from each other. I have an experience of using Bluetooth network between pc and android. Can any give me any suggestion or right direction. Thanks in advance. You can be able to chat between two android devices in Android Version 4.0 .There is an API called ' Wifi P2P '.More information can be had from here: http://developer.android.com/reference/android/net/wifi/p2p/package-summary.html If you are thinking about connecting devices that

win10 笔记本netsh共享wifi

故事扮演 提交于 2019-12-05 13:26:20
1、右击win10开始菜单,选择“命令提示符(管理员)(A) 2、输入命令:netsh wlan set hostednetwork mode=allow ssid=wifi_100 key=wifi12345 3、进入控制面板--网络和共享中心--更改适配器设置,看看有没有开启的虚拟无线网卡:Microsoft Virtual WIFI Miniport Adapter,如果找不到,打开设备管理器 在网络适配器选项列表下找到该项并右键点击启用(当然如果你已经启用了就看不到了) 如果还是没有,参考 百度关键字:win10 找不到 Microsoft 托管网络虚拟适配器 -- http://jingyan.baidu.com/article/aa6a2c14e5b10f0d4c19c4fd.html ( 管理员cmd输入: 1、netsh wlan stop hostednetwork 2、netsh wlan start hostednetwork 我的输入这两个命令后解决了 ) 我的点击启用后如下图: 4、在网络共享中心 (桌面如果有 “网络”快捷方式,直接右键属性就是了),找到已正常连接Internet的网络(我的是电信宽带连接),点击它,在属性中,选择“共享”,勾选其中的“允许其他网络用户通过此计算机的Internet连接来连接”。并且家庭网络连接选择虚拟wifi

How can I determine my position by triangulation on known routers?

泄露秘密 提交于 2019-12-05 12:12:24
Is there any open source software available? Basically, I just want to triangulate based on signal strength of routers whose location is fixed and known. I realize there can be cases of interference, but let's just stick to listing known source code. Thanks. I found this solution: http://redpin.org They offer you for free for iOS and Android platforms. All sources you can download an look at. There bunch off documentation and other staff to help you with I don't know of any trilateration software... someone should write an open source library. Take a look at the trilateration formulas. They

WiFi P2P network in Android Things

纵然是瞬间 提交于 2019-12-05 11:52:17
I would like to create a P2P WiFi network using Android Things (5.1) and a couple of Raspberry Pi 3 or alternatively using Bluetooth. I followed the guide in the Android Developer section https://developer.android.com/guide/topics/connectivity/wifip2p.html , so my MainActivity looks like: private class MainActtivity { private WifiP2pManager mManager; .... @Override public void onCreate(Bundle savedInstances) { mManager = (WifiP2pManager) getSystemService(Context.WIFI_P2P_SERVICE); .... } } However when I try to run the app, with WiFI enabled, the SystemServiceRegistry shows a message stating

Why does the native SIP stack included in Android 2.3 does not work over 3g?

三世轮回 提交于 2019-12-05 11:04:50
I was wondering why does the native SIP stack included in the Android framework(since 2.3) does not work over 3g? Could it have something to do with any laws or restrictions google may have with his partners? And furthermore, does anybody know if there is any plans to remove that restriction ? Thx In GingerBread , SipManager is set to work only on wifi. `<bool name="config_sip_wifi_only">true</bool>` But from 4.0 onwards , this config has been changed to false So Ideally native sip stack should work on 3G from Ice Cream Sandwich onwards. But again if the phone is sold by a service provider,