Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Irfan Sheriff
On Mon, Apr 15, 2013 at 10:46 AM, Kostya Vasilyev kmans...@gmail.comwrote: 2013/4/15 Robert Greenwalt rgreenw...@google.com On Mon, Apr 15, 2013 at 8:44 AM, Kostya Vasilyev kmans...@gmail.comwrote: Robert, Could you elaborate on the issues like these part? Are there changes in

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Irfan Sheriff
On Mon, Apr 15, 2013 at 11:50 AM, Kostya Vasilyev kmans...@gmail.comwrote: 2013/4/15 Irfan Sheriff isher...@gmail.com On Mon, Apr 15, 2013 at 10:46 AM, Kostya Vasilyev kmans...@gmail.comwrote: I've seen GTalk's service menu, it seems it has separate keep-alive logic for mobile vs

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-15 Thread Irfan Sheriff
On Mon, Apr 15, 2013 at 12:24 PM, Kostya Vasilyev kmans...@gmail.comwrote: 2013/4/15 Irfan Sheriff isher...@gmail.com On Mon, Apr 15, 2013 at 11:50 AM, Kostya Vasilyev kmans...@gmail.comwrote: Should there be a system level setting to turn off those power optimizations, if they're

Re: [android-developers] How to keep WiFi on and let screen go to sleep?

2013-04-10 Thread Irfan Sheriff
On Wed, Apr 10, 2013 at 8:03 AM, plnelson pna...@gmail.com wrote: I'm programming an Android device for use in an industrial environment where it needs to stay in touch with the server even when the screen goes to sleep. I thought I did all the right stuff but when the screen goes out it

Re: [android-developers] WiFi Direct connections drop during Bluetooth scan

2013-02-26 Thread Irfan Sheriff
On Tue, Feb 26, 2013 at 8:47 AM, Matt M matthew.mag...@gmail.com wrote: Hello, I made an application (for work, not for public use) that constantly runs a bluetooth scan to detect any nearby devices. The next phase of the application was to connect a few android BT and Wi-Fi do interfere

Re: [android-developers] Re: Connecting to a wifi device from the android application

2013-02-07 Thread Irfan Sheriff
A scan is active at the framework and in the wpa_supplicant at a certain interval. So, you do not really need to start a scan to connect - but doing an explicit scan may start the connection right away. On Thu, Feb 7, 2013 at 11:37 AM, Kostya Vasilyev kmans...@gmail.com wrote: I don't know

Re: [android-developers] W-Fi Connectivity Receiver

2012-12-21 Thread Irfan Sheriff
http://developer.android.com/reference/android/net/wifi/WifiManager.html#NETWORK_STATE_CHANGED_ACTION On Fri, Dec 21, 2012 at 1:35 PM, BearTi mlrti...@gmail.com wrote: Hi, I need a broadcast-receiver which react on state changes of the wi-fi connectivity. I donĀ“t want to get an intent when

Re: [android-developers] W-Fi Connectivity Receiver

2012-12-21 Thread Irfan Sheriff
/disabled ? This intent includes NetworkInfo extra which will tell you everytime Wi-Fi was connected or disconnected. Am Freitag, 21. Dezember 2012 22:44:41 UTC+1 schrieb Irfan Sheriff: http://developer.android.com/**reference/android/net/wifi/** WifiManager.html#NETWORK_

Re: [android-developers] WifiP2pManager.BUSY State

2012-11-07 Thread Irfan Sheriff
If its busy, it could be a previous connection or wifi still being enabled or something that makes the operation infeasible at that time. Note that p2p tear down can take up to 2 minutes when things fail. You will have to just wait it out and retry if it happens. If you have exact steps to repro

Re: [android-developers] Getting custom input/info from peer devices in WiFi Direct

2012-10-29 Thread Irfan Sheriff
On Tue, Oct 23, 2012 at 6:07 AM, A. Farhan clausn...@gmail.com wrote: Hello. I am new to this Android programming. Is it possible to display any custom data from other WiFi Direct peers other than client info? The scenario is like this: Client A B uses WiFi Direct app with custom coding.

Re: [android-developers] Re: WifiDirect with WifiDirect NSD

2012-10-24 Thread Irfan Sheriff
On Wed, Oct 24, 2012 at 7:11 AM, Zach zachariah...@gmail.com wrote: Hi, I made it work! Just swapped steps 2 and 3 on server So on server new order is 1. Initialize and Start WiFi Direct 2. Register a Local Service and Start Service Discovery 3. Start a Wifi Direct Group You are

Re: [android-developers] WifiDirect with WifiDirect NSD

2012-10-23 Thread Irfan Sheriff
On Tue, Oct 23, 2012 at 9:38 AM, Zach zachariah...@gmail.com wrote: Hi, I am working on wifi direct with network service discovery. Heres what I do for that For a Server(Device which first starts) 1. Initialize and Start Wifi Direct 2. Start a WifiDirect Group 3. Register a

Re: [android-developers] WiFi Direct Group Creation with Multiple Devices

2012-10-18 Thread Irfan Sheriff
Each device will end up creating its own group if you do that. You have the option doing createGroup() on one device and then calling connect() from the other devices which will lead to all of them joining that group. On Thu, Oct 18, 2012 at 9:02 AM, Zach zachariah...@gmail.com wrote: Hi, I

Re: [android-developers] WifiP2pManager.ConnectionInfoListener onConnectionInfoAvailable (WifiP2pInfo info)

2012-10-16 Thread Irfan Sheriff
Do you see the peer status (WifiP2pDevice has a status field) as connected when you listen P2P_PEERS_CHANGED_ACTION broadcast and request the peers ? On Tue, Oct 16, 2012 at 5:11 AM, Zach zachariah...@gmail.com wrote: Hi I am working on wifi direct. After sending a connect request I was

Re: [android-developers] Disconnect from a WiFi Direct Group

2012-10-12 Thread Irfan Sheriff
On Fri, Oct 12, 2012 at 3:19 AM, Zachariah Tom zachariah...@gmail.comwrote: Hi, I want to disconnect from a wifi direct group after establishing a connection. I just want to move out silently without interrupting other clients that are already in connection with the Group owner. I use

Re: [android-developers] Disconnect from a WiFi Direct Group

2012-10-12 Thread Irfan Sheriff
on the group owner side. Anyways I will give a test with more devices soon and I can make sure that removeGroup is only removing the group from clients perspective. Have you tested this before? Thanks On Friday, October 12, 2012 5:07:44 PM UTC+1, Irfan Sheriff wrote: On Fri, Oct 12, 2012 at 3

Re: [android-developers] Checking if 5ghz wifi is available

2012-10-04 Thread Irfan Sheriff
On Wed, Oct 3, 2012 at 8:11 AM, Reductio Ad Absurdum timmj...@gmail.comwrote: Hi all, i'm desperatly searching for a method to figure out if a device running my app can actually use the 5Ghz wifi band. There is no API. Why would you want this in an app ? Does anyone know how to do that?

Re: [android-developers] Check support for wifi personal hotspot

2012-09-26 Thread Irfan Sheriff
There is no proper API for this. On Tue, Sep 25, 2012 at 2:51 PM, Anders lanils...@gmail.com wrote: Does anyone know how an app may check whether a device supports wifi mobile hotspot/wifi tethering? For example, my Android phone has this functionality and you can tether the 3G connection,

Re: [android-developers] *** FATAL EXCEPTION IN SYSTEM PROCESS: WifiWatchdogStateMachine

2012-09-20 Thread Irfan Sheriff
something like init.rc to be specific can i provide the below in init.rc setprop dhcp.wlan0.gatway 0.0.0.0 we dont pick a default from the property. the property tracks the value obtained from AP. Regards, yogesh On Wednesday, September 19, 2012 9:11:23 PM UTC+5:30, Irfan Sheriff

Re: [android-developers] *** FATAL EXCEPTION IN SYSTEM PROCESS: WifiWatchdogStateMachine

2012-09-19 Thread Irfan Sheriff
Known issue. It will be fixed with an update. If you want to change config settings - you can use static IP by long pressing on a network and modifying it On Tue, Sep 18, 2012 at 5:51 AM, yogi yogeshk.bag...@gmail.com wrote: hi, i get the below exception when trying to connect my test phone

Re: [android-developers] How to modify WiFi Direct device name ?

2012-07-10 Thread Irfan Sheriff
There is no API to modify device name. JB adds a UI for this. We will eventually have a single API that controls device name across BT, wifi direct etc., On Wed, Jul 4, 2012 at 7:37 PM, Jaeyoung Soh acer...@gmail.com wrote: Hello, everyone. I'm doing implement WiFi direct app between two

Re: [android-developers] Turn-on WifiDirect programmatically and set a WPA password?

2012-07-10 Thread Irfan Sheriff
On Tue, Jul 10, 2012 at 8:00 AM, Charx evertvdbr...@gmail.com wrote: Dear Android Developers, 1. I searched through the whole WifiDirect API android.net.wifi.p2p but i could not find a way to enable/disable the WifiDirect function programmatically. Does somebody know a way or is

Re: [android-developers] Turn on wifi direct on XOOM

2012-05-01 Thread Irfan Sheriff
Wifi Direct can be enabled on the wingray by adding the following line to device/moto/wingray/device_base.mk: frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml But officially, Wifi Direct is not supported on BCM4329 because of

Re: [android-developers] Where to find WIFI Direct technical materials?

2012-04-08 Thread Irfan Sheriff
http://developer.android.com/guide/topics/wireless/wifip2p.html On Sun, Apr 8, 2012 at 5:09 AM, mxd nicefut...@126.com wrote: I'd like to get more familiar with WIFI Direct's Protocol and OTA Flow. I searched google, but cannot seem to find any materials which discuss the protocol in

Re: [android-developers] Can WIFI Direct and 3G Data Session Concurrently Work?

2012-04-08 Thread Irfan Sheriff
On Sun, Apr 8, 2012 at 5:08 AM, mxd nicefut...@126.com wrote: Can 3G Data Session and WIFI Direct concurrently work?? if so, then two IPaddress Exist, will it cause confusion? one example: Yes, Wi-Fi direct uses a local IP that will not conflict with 3g connectivity. A use 3G to

Re: [android-developers] WiFi-Direct hardware question

2012-04-03 Thread Irfan Sheriff
On Tue, Apr 3, 2012 at 8:50 PM, Kiran kiran.ka...@gmail.com wrote: Hi All, I've seen quite a few discussions on Wifi-Direct, but haven't found the answer to the following question. In the Android 4.0.x API, it says that *Note:* Not all Android-powered devices support Wi-Fi Direct. If your

Re: [android-developers] Access Point Change detection

2012-03-28 Thread Irfan Sheriff
On Wed, Mar 28, 2012 at 8:28 AM, Kostya Vasilyev kmans...@gmail.com wrote: When the connectivity changes, some (it seems most) firmwares force-close any currently open connections, but some do not (two examples: Motorola Milestone with 2.1, and a much more recent HTC Incredible S with 2.3...).

Re: [android-developers] Access Point Change detection

2012-03-28 Thread Irfan Sheriff
It would be good to know if there are devices beyond ICS that still have issues around not resetting socket connections when a network goes away. Beyond ICS? I don't know what this means. My flagship Galaxy Nexus still hasn't received 4.0.3. And what do you mean by would be good to know?

Re: [android-developers] android.permission.ACCESS_WIFI_STATE or android.permission.WAKE_LOCK for wifi lock

2012-03-26 Thread Irfan Sheriff
What else are you doing ACCESS_WIFI_STATE is needed for most of the Wi-Fi API On Mon, Mar 26, 2012 at 4:28 AM, DraganA dand...@gmail.com wrote: Hi there, the documentation (http://developer.android.com/reference/android/net/ wifi/WifiManager.WifiLock.html) clearly says that in order to

Re: [android-developers] Wifi manager woes

2012-03-26 Thread Irfan Sheriff
if reconnect is failing - the device is likely hitting failures in driver/supplicant On Sun, Mar 25, 2012 at 10:54 PM, Put_tiMe putt...@gmail.com wrote: Based on some events, I'm trying to switch on or off wifi. Switching wifi off works well. But while switching on wifi, 95% of the time, it

Re: [android-developers] Re: Current mobile connection speed?

2011-12-14 Thread Irfan Sheriff
Trying to predict if network is slow based on network type is incorrect - a poor wifi connection can be really slow It is better to just keep it simple and let the user always know the actual progress without worrying about what the network speed is. 2011/12/14 Kostya Vasilyev kmans...@gmail.com

Re: [android-developers] Future Wifi Direct service discovery in Android 4.0

2011-11-29 Thread Irfan Sheriff
Service discovery is not supported yet - device discovery and connection set up is. Thanks On Tue, Nov 29, 2011 at 2:15 AM, Sheph ishai...@gmail.com wrote: Hello , I would like to get a bit more information or references to resources regarding Wifi Direct service discovery in Android 4.0 .

Re: [android-developers] Android WifiLock WIFI_MODE_SCAN_ONLY not working

2011-10-28 Thread Irfan Sheriff
The system can always override to make a connection. scan only wifilock ensures wifi is not shutdown and kept up for scans. On Thu, Oct 27, 2011 at 4:14 AM, Vasco Fernandes vasco.m.fernan...@gmail.com wrote: Hi, I'm trying to block the wifi connections. I want my application to turn on the

Re: [android-developers] Service Discovery is not happening when screen is off

2011-08-12 Thread Irfan Sheriff
If it is related to multicast packets getting dropped, try creating a multicast lockhttp://developer.android.com/reference/android/net/wifi/WifiManager.MulticastLock.html If needed, use the WIFI_MODE_FULL_HIGH_PERF mode with care to avoid driver optimizations at screen off. Thanks On Fri, Aug

Re: [android-developers] Re: Wifi lock with WIFI_MODE_SCAN_ONLY

2011-06-02 Thread Irfan Sheriff
Holding a scan wifilock ensures you get alteast scan capabilities and keeps wifi up - the system is still in control of whether wifi needs to connect when its turned on On Wed, Jun 1, 2011 at 10:38 PM, seema seema22...@gmail.com wrote: Hello All, Here is what I do to scan on wifi

Re: [android-developers] WifiLock and WakeLock regarding large downloads

2011-03-28 Thread Irfan Sheriff
WifiLock keeps the device on Wifi and prevents the device policy of shutting down wifi and switching to 3g after 15 minutes of screen off. Holding a wifilock should normally be sufficient to complete a download since even in the power optimized state (screen off), the device should still wake up

Re: [android-developers] WifiLock and WakeLock regarding large downloads

2011-03-28 Thread Irfan Sheriff
network (say if you want to stop a large download when the user is on 3g). The WifiLock is meant for apps that specifically do care about being on Wifi even after device goes to sleep. Irfan On 29 March 2011 09:41, Irfan Sheriff isher...@gmail.com wrote: WifiLock keeps the device on Wifi

Re: [android-developers] Re: Bluetooth killer availabled in Android ? - WiFi Direct

2011-03-14 Thread Irfan Sheriff
Its in active development at this time. Nothing in the SDK for developers right now. Irfan On Sun, Mar 13, 2011 at 1:19 AM, KJ kevjon...@hotmail.com wrote: I haven't yet seen anything in the Android SDK relating to Wi-fi Direct...does anyone yet have any info on using this technology on the

Re: [android-developers] Wifi sleeps... even with lock

2011-03-02 Thread Irfan Sheriff
a quick note about wifilocks today. We have two locks today WIFI_MODE_FULL and WIFI_MODE_SCAN_ONLY. The full lock thats used by default on a createWifiLock() keeps wifi up at all times but it does not control the driver level power optimizations that are done on devices. When screen goes off,

Re: [android-developers] Android 2.2 - Portable Hot Spot - WifiManager class

2010-11-09 Thread Irfan Sheriff
We dont expose the hotspot APIs for use by applications yet. They are not final and likely to break in the future. Irfan On Tue, Nov 9, 2010 at 12:58 PM, Mark Murphy mmur...@commonsware.comwrote: They are not part of the public SDK at present. If you look at the source code, you will see they

Re: [android-developers] Wifi-connection

2010-10-01 Thread Irfan Sheriff
Look for the NetworkInfo object inside the NETWORK_STATE_CHANGED broadcast. Get the detailed state of the connection from the NetworkInfo using getDetailedState() which will tell you whether the IP configuration is complete. See WifiSettings on how it is done. On Fri, Oct 1, 2010 at 3:22 AM,

Re: [android-developers] Parallel WiFi and Mobile Network Connections

2010-09-27 Thread Irfan Sheriff
On Sun, Sep 26, 2010 at 9:26 PM, yenpei yen...@gmail.com wrote: Are we able to establish both WiFi and 3G connections at the same time on Android 2.1? No We are implementing a make-before-break, so that WiFi can be switched to 3G before tearing the WiFi connection down. How are you

[android-developers] Re: wifi not remembering the access point

2010-09-22 Thread Irfan Sheriff
What does the output of $adb shell wpa_cli list_networks look like before and after you restart wifi? You could also try doing a $adb shell wpa_cli save_config after adding a network and doing restart and see if it makes a difference. On Wed, Sep 22, 2010 at 3:37 AM, kiran

Re: [android-developers] WPA2-PEAPv0-MSCHAPv2 support in android.net.wifi package

2010-09-07 Thread Irfan Sheriff
Yeah, we do not expose the enterprise fields (eap phase2 variables) in the public API that allows a configuration like you mention. There is no clear time frame to point, but hopefully we can expose these in the next iteration. Thanks On Thu, Sep 2, 2010 at 8:04 AM, John_Spectross