Android : Wifi Reconnects All The Time While In Background Mode

Jun 22, 2009

I'm facing a connectivity problem in my IM-client for a long time already, but still can't find out how to fix it. Found a similar bug report here: http://code.google.com/p/android/issues/detail?id=2059 except PowerManager.SCREEN_DIM_WAKE_LOCK didn't work for me :(

So here is the problem: when device goes idle, wifi is being kept connected for some unpredictable time(1-20 min), but then established connection brakes and here is what i see on the ddms console:

CODE:...............

And "-1" is coming on read() from input stream or SocketException is raised. Then my app is trying to reconnect and sometimes it's successful almost immediately, but sometimes it takes more than 2-3 tries to reconnect(WifiMonitor logs reconnects again and again) with 10 seconds timeout.

Preventing some advices - yes, there is a PARTIAL_WAKE_LOCK and wifilock held by my app, but as i can see this is not enough.

Android : Wifi reconnects all the time while in background mode


Jelly Bean :: Dell Venue 8 - WiFi Continuously Reconnects

Dec 25, 2013

I just got a Dell Venue 8 which comes standard with Android 4.2.2 and it continuously reconnects to my wifi network. It just cycles through Connecting -> Authenticating... -> Saved, Secured with WPA and then starts over again with connecting. All other devices work on the network so it isn't the router. I've tried to toggle wifi on and off, toggle airplane mode on and off, forget and reconnect to the network, and turning it off and on and nothing has corrected it. I haven't found much googling this issue or on Dell's support page.

View 3 Replies View Related

Android : On 2.2 - Being In Tethering Mode And Scanning Wifi At The SAME Time

Jul 31, 2010

Is it generally possible to have Wifi Tethering turned on (creating a Hotspot) and at the same time scanning for Wifi devices? I want several devices just discover (NOT connect) each other and log the signal strength. To do that all devices must be discoverable over Wifi and at the same time discover others.
I would just need that for some specific use case..

View 1 Replies View Related

Sony Ericsson Xperia X10 :: Wifi Keeps Disconnecting - Connection Randomly Drops From Time To Time

Aug 2, 2010

When i'm connected to my router at home via wifi, the connection randomly drops from time to time. My laptop and TV is fine which are both running via the internet. The setting is set to stay connected always, even when the screen goes black.

Does anyone have a resolution for this? Perhaps static IP? if this is the answer, what should the settings be?

View 7 Replies View Related

HTC EVO 4G :: Bluetooth Headset Disconnects On Its Own Then Reconnects

Jun 6, 2010

So I got a new Evo on friday and it is my first experience with android and I am loving it so far! The only problem I am really having is keeping my bluetooth headset paired with the device.
I have a plantronics explorer 230 and it is the only bluetooth thing I have. It continually disconnects and reconnects from the device at random even when I am on calls. I am not very techy so I really have no idea what to do. It disconnects on its own and then reconnects again a few seconds later.

View 5 Replies View Related

HTC Hero :: Wifi App Takes Long Time To Connect To Home Wifi

Dec 29, 2009

My Hero takes a long time to connect to my home wifi. I usually go in to the settings and hit "Scan" repeatedly before it connects. Sometimes it fails connect, and I have to go into Settings to try again. Is there a way/app to scan automatically or re-attempt to connect again? Maybe there's something I'm not thinking of?

View 1 Replies View Related

Android :: How To Know When App Enters Or Background Mode?

Jul 20, 2010

I am trying to achieve the following with Android : when the app is in background, a thread polls a server every now and then to retrieve data and notifies the user if new data is available. I am using a Service for that, fine. When the app is in "active" use, i.e. one of its activities is visible, the polling should stop as it might interfere with other user actions. I don't understand how to detect the transition between the "active" or "background" use of the app. The onResume() activity methods does not seem to help, as an activity can be hidden or visible during "active" use anyway. My understanding is that the app itself doesn't make the difference between the 2 states.Can it be related when the HOME button is pressed ? Is there another way to do the distinction? I am thinking of an equivalent of iPhone's app delegate method application DidEnterBackground. Is it the right way to think with Android ? Or shall I use another approach?

View 1 Replies View Related

Android :: Best Way To Logout Each Time Application / Task Goes To Background?

Jul 16, 2010

I have an application which requires a login at the beginning (this is the first activity). When the user logs in, I keep his credentials in the application (I extended android.application to add a field called 'key'). I would like to clear this field from memory (from application instance) an go back to the login activity.

I see the following possibilities: - Add a broadcast receiver to catch all possible event (call, click on menu, click on back, lock the phone ...) which clear the key field and launch the login activity - Use clearTaskOnLaunch for all activities except the login activity. But then until my application takes the focus again the key stays in the application object. (It seems it doesn't work with the go back button, maybe I need to use no history also) - Detect for each activity in all onPause or onStop events when application will leave the foreground to clear the key field and launch the login activity

The best would be to have a kind of OnPause method at application level but I think it doesn't exist.

View 9 Replies View Related

Android :: Droid AppWidget TextView : Set Background Color At Run Time

Mar 16, 2010

I am trying to create an AppWidget, in which the background color of a TextView changes at random at specified periodic interval.

The TextView is defined in layout xml file as code...

But i am getting a widget saying problem loading widget. If i remove the above line everything works fine.

LogCat says: code...

View 5 Replies View Related

Android :: How To Setup Ringer Mode With Days / Time?

Oct 4, 2009

Kids, while they are at school, wish to have the phone in silent mode. All other time, would like to have the ringer on. Is it possible to program the ringer mode with days and time? Is it a challenge to Android or the device manufacturers or for Google? Anyway, my kids will be the first users, if it is available.

View 4 Replies View Related

Android :: How To Send Audio Record Out In Real Time Mode

Oct 26, 2010

I can use AudioRecord to pull the audio data out. But the format is PCM, which is too huge to sent out through network. Does any one know how to change it to AMR ?

View 2 Replies View Related

Android :: Setting Silent Mode At Specific Date And Time

Nov 9, 2010

I'd like to set the ringer mode to silent for specific events in the future. It should only happen if a checkbox in the preferences is checked. I know that I have to update the manifest for the permissions and also that I can set the ringer mode with something like this:

if (getPreferences(MODE_PRIVATE).getBoolean(PREFS_KEY_SILENTOPTION, false)) {
AudioManager audioManager = (AudioManager) getSystemService(AUDIO_SERVICE);
audioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT);
}
But how can I set (and reset) it for a space of time in the future?

View 1 Replies View Related

HTC Hero :: How Can I Prevent Sprint Navigation From Running In Background All Time?

Oct 14, 2009

How can I prevent Sprint Navigation from running in the background all the time? Every time I go on the market, browser, check my email, or send a text, Sprint Navigation is shown running in all of my 3rd party app managers. I have task killer so I can kill it as I please, however I would like to completely prevent it from starting up when i'm not even using it. Any ideas on how I can accomplish this?

View 13 Replies View Related

Android :: Possible To Have 3G / Wifi Connections At Same Time?

Mar 5, 2010

I was wondering does anyone know if its possible to open a wifi and a 3g connection at the same time on Android? Is there any way to control access to both Wifi and 3g/GPRS data connections and use them at the same time?

View 5 Replies View Related

Android :: WiFi And 3G Connection At Same Time?

Mar 30, 2009

I need a Library that opens WiFi connection and 3G connection at the same time and then start transmitting sockets to 2 PC ( servers) connected to the WiFi-3g Networks. I Couldn't find in WiFi.manager & Android.net Lib. any thing that can do that.

View 2 Replies View Related

Android :: Enabling WiFi Tethering Mode

Aug 30, 2010

I am not seeing WiFi tethering app in my phone. I enabled WiFi in froyo build. But it is not showing tethering app? What do I need to enable the app?

View 2 Replies View Related

Android : Establishing Two Connection - 3G And Wifi - At The Same Time

Apr 22, 2009

We are doing some research using android handset , G1 and i don not find any clear information in order to manage the connection, as i note all classes allow us for only accessing the information about a connection, i would like to ask if there is really such solution already avaliable in order to opens two connections for two different network ( 3G & Wifi ) at the same time and use them to exchange data "establishing two connection at the same time". i look in the source code of the Mms app to see how it as you recommend but no related information.

View 2 Replies View Related

Samsung Vibrant :: Flight Mode / Network Time

Aug 27, 2010

If you go into settings/date and time the first option is a check box that says Automatic (use network-provided values). If you uncheck that it does not stick through a reboot. Upon restarting your phone this box will be checked once again. Now for the interesting part. If I put the phone into flight mode, uncheck the automatic box and then change the time and/or date. The instant I re-check automatic the time is reset correctly. How is this possible? I thought that flight mode actually turned the radio off. If it does indeed turn the radio off then how is the phone able to instantly set the time to the correct value?

View 4 Replies View Related

Android :: WiFi Disconnected When Phone In Sleep Mode?

Oct 6, 2010

I have a service which polls a server at certain intervals. I use an AlarmManager and a BroadcastReceiver to start the service. My problem is that after a certain duration, even though the WiFi is still enabled, but for some reason, my application can't contact the server. I get an "Unreachable network" error. Note that I've already acquired a partial wake lock as well as a wifilock. Here's my code for the BroadcastReceiver.

public class ServiceAlarmBroadcastReceiver extends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
WakeLock wakeLock = null; WifiLock wifiLock = null;
try { PowerManager pm = (PowerManager) context .getSystemService(Context.POWER_SERVICE);
// acquire a WakeLock to keep the CPU running
wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MyWakeLock");
if(!wakeLock.isHeld()){ wakeLock.acquire();
} Log.i("ServiceAlarmBroadcastReceiver", "WakeLock acquired!");
WifiManager wm = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
wifiLock = wm.createWifiLock(WifiManager.WIFI_MODE_FULL , "MyWifiLock");
if(!wifiLock.isHeld()){ wifiLock.acquire();
} Log.i("ServiceAlarmBroadcastReceiver", "WifiLock acquired!");
context.startService(new Intent(context, ThePollerService.class));
} finally { // release the WakeLock to allow CPU to sleep
if (wakeLock != null) { if (wakeLock.isHeld()) {
wakeLock.release(); Log.i("ServiceAlarmBroadcastReceiver", "WakeLock released!");
} } // release the WifiLock if (wifiLock != null) { if (wifiLock.isHeld()) { wifiLock.release();
Log.i("ServiceAlarmBroadcastReceiver", "WiFi Lock released!"); } } } } }

View 2 Replies View Related

Motorola Droid X :: Night Time Saver Mode In Froyo

Sep 22, 2010

I set my phone to night time saver mode since it's appropriate but unable to find a setting to edit the time from 10-5am to 1-7am. I was able to do it with 2.1.

View 2 Replies View Related

Android : Put WIFI - Droid Handset - Into Permiscuous Monitoring Mode

Feb 25, 2010

For a Computer Science Information Warfare class a few years ago I wrote a python script that ran on libpcap promiscuous packet capture files to parse out facebook chat traffic (earlang tuples passed in clear text), and thought an interesting project would be to port the program to Android.

I would like to rewrite it in Java but can't find any information about packet capturing directly on the handset.

View 1 Replies View Related

Motorola Droid :: Running UD 1.0.0 (No GPS / WiFi And Background Light)

Oct 22, 2010

I've been running UD 1.0.0 since the day it dropped, when I installed it I was on vacation and wasn't using my droid much other then playing around with the setting and some internet browsing, like all good things my vacation came to a end at work my phone is used all day texting, incoming and out going calls all day, listening to my scanner app. That's when I found out UD 1.0.0 wasn't going to work for me, I have two batteries and by the end of the work day ( 8-12 hrs) one battery would be dead and the other down to 20%.

I tried different kernels, running only the basic's (no GPS, no WiFi no background light) still got the same results. UD 1.0.0 is a great ROM, but it just doesn't gel with my droid. So I'm back to UD 8.0 with slayher's 1100 kernel set at 800 mhz (1380 quadrant)and the Black N Bold theme running smooth and fast with no problems at all. Best thing is after 8-12 hrs of phone use texting and listening to my scanner I still come home with 20% - 40% battery without even using the spare.

View 5 Replies View Related

Android :: App Works On WiFi In Debug Mode Or On Emulator Not On Cell Network

Jul 9, 2010

I have an android application that parses some HTML, downloads an image, and displays it. I'm using an AsyncTask to do the HTML parsing and image downloading, but that shouldn't be relevant. I never have a problem when I'm on WiFi on my phone, when I'm using the Eclipse debugger on my phone, or when I'm using the emulator. When I have my phone on the cell network (even with pretty good reception), the image sometimes fails to display. I'm having a hard time figuring out what is wrong, since the problem cannot be reproduced in the debugger. Does anyone have any idea what could be wrong?

Update: I have narrowed it down to the image downloading function. This way my original code:.......................

View 1 Replies View Related

KitKat 4.4 :: WiFi And 4g On At Same Time

Apr 28, 2014

I just did the update on Verizon this weekend on my Galaxy s4 and now when I am on my wifi, the 4g icon lights up. I do not get the upload-download arrows on the 4g icon at home, so it appears to be the wifi is the one working.

View 1 Replies View Related

General :: WiFi Mouse App Contacting Chinese Servers In Background

Dec 29, 2013

In my efforts to track down a wake lock that was eating battery, I installed Network Log. I found s something a bit disturbing. WiFi Mouse by necta.us, an app in Google's app store to let your touchscreen act as a mouse, Would

A) not exit after pressing back and hitting "yes" to exit but rather,

B) continue secretly running, making occasional contact with various servers in China. Overnight it contacted 15 different IP address, all of them Whois showing as a variety of Chinese companies with different names and address blocks. Sometimes it would use port 80, usually 224, 226, 226, 227, 228, or 230. This would happen at least every 15 minutes and some of the transfsers were up to 9.7k in length. After exiting, none of the traffic was to my wifi mouse server application.Some of the IP blocks included:

119.161.221.218:226
110.173.1.68:228
42.51.12.84:HTTP

I understand there are legitimate reasons for an app to do this. Perhaps checking a license. But this is downright scary and excessive, especially since it continues after one "exits" the program. My next step will be to install shark and take a look at the packets' contents.

Edit: installed es task manager to kill it, but it's not running. Somehow it's being signaled or on a timer. Next stop is systemcleanup to take a look at its activities and permissions in detail.

Edit 2: had to force stop it, it was running but not showing up in task manager. It's permissions include reading and modifying usb storage and of course full network access.

View 9 Replies View Related

Android : Write A Wifi Cracking Util For Phones / Monitor Mode Vs Multicast?

Jun 23, 2010

Considering writing a wifi cracking (wep, wpa) auditing tool for the android platform, but I am wondering if it is possible to do without a rooted phone.

I had thought it would be impossible to run on an unrooted phone due to the phones wifi chip ignoring packets not addressed to the phone. That is, without the ability to set the wifi chip to monitor mode many of these attacks wont work. I was surprised to learn that android supports multicast packets. That is, android phones can be set to receive packets not addressed to them.

My questions are: Does having a multicast lock mean I can receive all packets broadcast, or does it only apply to packets with a multicast flag (if such a thing exists)?

Is there a difference between monitor mode and multicast? Does the android api have a system for switching channels?

More generally I'm curious: Is anyone familar with other wifi cracking projects running on android (google searches turned up very little)?

What difficulties am I likely to run into?

This question is related to SO question Is there anyway to put Android WIFI (droid handset) into permiscuous monitoring mode?

View 1 Replies View Related

HTC EVO 4G : Wifi Tether In Infrastructure Mode

Sep 29, 2010

Have tried multiple versions of the wifi tether app, but I can't seem to find one that will broadcast in infrastructure mode with the new OTA update (yes I re-rooted my phone after, and confirmed root).

Anyone had any luck, and if so, what version/mods have you done?

View 2 Replies View Related

HTC Desire : Wifi Keeps Going Into Sleep Mode

Jun 4, 2010

I installed juice defender this morning then deciding i didnt want it i uninstalled it, since then my wifi keeps going into sleep mode after about 15 mins which i dont want. before i installed juice defender it just stayed on all the time so i got notifications etc. ive reinstalled juice defender and disabled all its features as far as im aware but wifi is still going into sleep mode. what can i do to get my wifi back on all the time.

View 4 Replies View Related

General :: WiFi Always On And Sleep Mode On ICS?

Jun 14, 2012

I have a smartq t20 tablet (great cheap tablet!) running ICS, my question is, when I leave wifi on all the time, what happens when the tablet goes to sleep (not awake according to the battery details)?I can leave a download running and it would continue when the screen is off, does this mean my tablet is never going into deep sleep? Or is that unrelated?

I know the wifi itself drains more battery when left on even if it isn't being utilized but I was wondering about the CPU side of it.

View 3 Replies View Related

HTC EVO 4G :: Post Update WiFi On Up Time?

Jun 30, 2010

Having wifi on when you're near a router is supposed to save battery since the router is close and the phone doesn't have to search for a 3g signal. After the OTA update my phone no longer sleeps when I have wifi enabled. So now I'm killing my battery by using my home/work wifi routers instead of taxing sprints network connecting to 3g. Is my phone the only one doing this? I haven't read any other reports.

View 25 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved