wifi

File transfer over Wi-Fi in Android

别来无恙 提交于 2019-12-11 03:32:31
问题 I want to make an Android app which can transfer a file from one phone to another via Wi-Fi. In Android 4.0 it can be done through Wi-Fi direct but how it would be possible for lower versions that do not support Wi-Fi direct? 回答1: You can do this by opening a network connection. This will work over Wifi or any connection the device has. Let's say device A wants to send to device B a file. B opens a listening port A opens the file as an input stream A connects to B's listening port A sends the

Wi-Fi Direct technology

牧云@^-^@ 提交于 2019-12-11 03:27:04
问题 I'm thinking about create an app that transfers video streaming via Wi-Fi Direct. I've already googled (even in Stackoverflow) that, but I haven't found a list specifying the supported devices. My question is: Is it possible to code an application using Wi-Fi Direct on Samsung Galaxy Mini (GT-S5570B with Android 2.3.6 Gingerbread)? Is there a hardware limitation about this technology or just the code is enough? 回答1: In the Android platform, devices with Android 2.3 or Gingerbread and below

How to connect to WiFi network on Windows using Python 3?

寵の児 提交于 2019-12-11 02:55:10
问题 I am trying to write a script in Python 3 but all modules available today work on python 2 which will enable me to search for wireless networks and to connect to them. Is there any Python 3 library for this? The code I tried for python 2 from wireless import Wireless wireless = Wireless() wireless.connect(ssid='ssid', password='password') which is giving me an error Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\Himanshu Poddar\AppData\Local\Programs

Android Wifi Roaming through AP with same SSID

◇◆丶佛笑我妖孽 提交于 2019-12-11 02:49:00
问题 I saw that Android system has a bad behavior with Wifi roaming. We have a Wifi centralized network with many AP with a signle SSID. The Adroid Phones wont roams seamlessly. An Android Phone tries to stay connected to an AP until the signal reaches zero even if there are others AP (with the same SSID) with a good signal! When the signal is zero, finally it performs an assosiation to another AP (with a good signal). But with this behavior the phone loses all the TCP Connections! For example:

intent.setAction() and intent.getAction() not working in BroadcastReceiver

拥有回忆 提交于 2019-12-11 02:21:42
问题 I am using BroadCaastReceiver to allow user perform offline events.The issue is that it is never going inside intent.getAction().equals("beenthereclicked") if i try switching on wifi few seconds after clicking on beenThereView.However it does go inside if (wifi.isAvailable() || mobile.isAvailable()) whenever i switch on wifi.I failed to understand why intent.setAction() and intent.getAction() not working.I can see wificonnected in my log but can't see beenthereclicked in my log. i wrote this

Ask user to start WiFi or 3G on launching an android app if not connected to Internet

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 02:19:29
问题 An android app that accesses some online pages using WebView is what I'm working with. I want to incorporate an option where, if the user is not connected to internet, the application will prompt to switch on WiFi or 3G. What's the best way to achieve this user convenience point of view? The code is given below: package com.url.appname; import android.net.Uri; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view

better way to communicate between ad hoc wifi windows mobile devices

假如想象 提交于 2019-12-11 01:40:26
问题 We are developing wireless ad hoc communication applications on windows mobile 6 devices using 802.11 in ad hoc mode. We are using HP iPAQ 910 devices and OpenNETCF smart device framework 2.3 for development. As a design constraint, each device is represented as an SSID. If two devices want to communicate with each other, initiator switches to other device's SSID and broadcasts UDP messages. However this switching takes 4-5 seconds to complete and spending this much time might be undesirable

How to use cellular data when connected Wi-Fi network?

你说的曾经没有我的故事 提交于 2019-12-11 01:24:50
问题 I'm looking forward to use cellular data when connected Wi-Fi. Yi dash camera works like this. Yi camera make Soft AP. iOS or Android phone connect the Wi-Fi. Between YI and Phone, internal network is made, generally, phone cannot use the internet. but, in Yi network, phone can use internet, sns, streaming, and etc. How can i do it? Thanks in advance. 回答1: One solution (not practical from an app user perspective) is to manually go to the iPhone Settings , Wi-Fi section and select the desired

Android acting as a wifi server-hub?

北战南征 提交于 2019-12-11 01:14:28
问题 I need to have an android device act as a wifi server/hub that will accept raw data from custom built devices So first off, I need the android device to act as a wifi hub that can accept raw data from my devices. How do I do set that up? I overviewed the code to the tether application, but I don't think that will work. I'll be glad to be wrong, but I don't think It is able to broadcast wifi. Secondly, do you have any suggestions on how to set up the server. I was looking at Datagram Channels

Communication between 2 ESP8266 WiFi modules without router using AT commands

我的未来我决定 提交于 2019-12-11 01:07:08
问题 I'm trying to make a TCP based communication to send a simple message "Hello" from one ESP8266 module to another using this document. I'm using 2 USB to TTL as hardware and Realterm as serial terminal. I could do it when ESP8266 modules are connected to a router, sending AT commands as below, Set the Server: AT+CWJAP="AccessPointName","Password"//Join to your WiFi network AT+CIPMUX=1//0 for single connection 1 for multiple connection. AT+CIPSERVER=1,1336//Set as Server. 1 to open Server mode