Android :: Permanent Socket Connection Drains Battery

Jul 15, 2010

I am developing an app which has one service running in the background even if the application is closed. This service basically listens to the server via socket connection. It is an app's requirement to keep one consistent connection open. but this drains battery liek anything. I know socket is costly affair in the sense of battery life. Do anybody know any other way to keep communication channel open? or any optimization in using socket?

Android :: Permanent socket connection drains battery


Samsung Vibrant :: USB Connection Drains Battery Fast

Aug 16, 2010

I got my Samsung Vibrant yesterday and like it a lot. However, I have what I thought was a faulty battery problem. The battery would not charge when hooking it up via USB to my desktop or AC.I took the phone to the Tmobile store and they swapped out the battery for me. The battery runs fine unplugged but as soon as I plug in the USB adaptor it starts losing a % of charge every 10 secs. As soon as I unplug it the draining stops. I called the Tmobile store again and they said it may be the USB adaptor. Well, I have a spare cable. I used it and the same thing happens.Is there something wrong with my phone? Is there a setting I need to adjust? Anyone experienced this yet?

View 5 Replies View Related

Android :: Socket Freezes Using GSM Connection

May 27, 2010

I'm working on application that uses a socket connection.I've implemented 2 different Threads for the read() and the write() methods so they are not being blocked by the read.Everything is working well on the WiFi connection but when I switch to GSM connection the connection becomes unstable without any exception being thrown. It means that there are freezes.the write and read seems to work but no data is actually being piped.

View 10 Replies View Related

Android :: Socket Refused Connection

Dec 7, 2009

I wondered if there could be a specific reason why a server socket could refused a client request connection , the server running on one android device the other on the emulator?

View 2 Replies View Related

Android :: How To Manage Connection To A Socket?

Jun 21, 2010

I would like to know what is the recommendation for socket connection management in Android?In our App we would like to be connected to a TCP/IP server when our app is in the foreground or paused. So, create a connection to a TCP/ IP server when the App starts basically, On Create of the launcher activity. However, we do not want to create a new connection and close connection every time an activity is created, paused, destroyed or orientation changed. So, we save the connection object in the App class and the activities will reuse the same connection.Question is when do I close it? I would like to close the socket when the App is "paused", "stopped" or "destroyed". The problem is these messages are not sent in the App context. How can I figure out if the App is in foreground or not? Even the "Terminated" event for an App is not guaranteed to be delivered. So, in that case how do I know when to disconnect?

View 2 Replies View Related

Android :: Socket Freezes Via GSM Connection

May 24, 2010

I'm working on application that uses a socket connection. I've implemented 2 different Threads for the read() and the write() methods so they are not being blocked by the read. Everything is working well on the WiFi connection but when I switch to GSM connection the connection becomes unstable without any exception being thrown. It means that there are freezes at the write and read seems to work but no data is actually being piped.

View 2 Replies View Related

Android :: Bluetooth Socket Connection

Nov 11, 2010

I'm creating an application that uses an android to send and receive data via bluetooth. but I'm having problems when creating the socket. He gets caught in that line mmSocket btserver.accept = (); And I can not pair with any device.I have another doubt, I can make that communication with an android and a symbian?

View 1 Replies View Related

Android :: Server Socket 3G Connection

Mar 3, 2010

I have been trying to setup a Droid to Droid 3G connection. I can confirm that all works great in wifi mode. The Droid can make connection requests (Http, Telnet, raw sockets) in 3G, but I cannot get the Droid to accept a socket connection in 3G mode. I was told by Verizon that a special license may be needed to accept socket connection requests and they would send me some information. So far none has been received. If anyone knows how to program the Droid to accept socket connection requests over 3G, please respond. Also if anyone knows why this not allowed please respond.

View 10 Replies View Related

Android :: Detecting Socket Connection Failure

Apr 1, 2010

I am working on an app that uses a Socket to connect to a controller over TCP. The protocol library was written in Java and I am implementing it in android via a Service. where the Connection class is a Thread that handles the communications with the controller. It's where the Socket lives.I'm using the Preferences mechanism to store the IP and Port. If I feed the Socket the correct IP and Port, the Connection Service works beautifully. However, I am trying to simulate a user entering the wrong information and having the connection fail. The ultimate goal is to present a dialog and offer the ability to "reconnect" or "update settings". However, when I enter a wrong Port number, the application simply hangs.I was under the impression that Threads executed concurrently so I've tried moving the call to start the Connection Service to a Thread, but it still hangs the application.

View 3 Replies View Related

Android :: Create Persistent Socket Connection On Droid?

Apr 29, 2010

First off, let me say that feel free to recommend me if long lived TCP persistent connections are the way to go or persistent HTTP connections are better.

I've also pre-read that instead of having a persistent connection, I can have a polling mechanism.

I'm just asking in the curious interest of how can I create a persistent connection from Android to a server?

View 2 Replies View Related

Android :: SSL Socket Blocks On Read While Changing Connection / Is It A Bug?

Feb 19, 2010

I assume that when I do a read on the inputstream, it blocks until it gets more data to read.
I also assume that when the connection is closed, the read throws an IOException.

The problem is that sometimes when I change the connection from carrier to WiFi or from WiFi to carrier, the read just gets stuck and never throws the IOException.

The SDK is 1.5 and the phone a HTC Hero.

This behavior is quite ugly for me because I need to stay always connected.
Does someone else have ever seen this problem ? Is it a bug or am I the bug?

View 2 Replies View Related

General :: Socket Connection App SDK?

Jun 20, 2012

I'm making a chat program and server relay on pc and I was wondering if there's a simple template for tcp/ip socket connections.

View 9 Replies View Related

Android :: Battery Drains While Using Wireless Tether App

Nov 21, 2010

When I use this app to tether my laptop my battery drains like 2% a minute and my phone gets extremely hot. Is this the case for everyone else using this app?

View 9 Replies View Related

Android :: Server Socket Ports Connection Timeout Error

Jul 9, 2010

I am playing around a bit with peer-to-peer communication with android devices.I have written a basic program that creates a listening ServerSocket on each phone using the application. Using the application you can also connect to other devices that is listening, by connecting to the remote ServerSocket. Nothing strange about that.My problem is that it seems that the listening port is not open for connection on different devices. I can connect to my HTC Desire, works like a charm. But connecting to a HTC Hero I get timeout, same if I try to connect to the emulator. But connection FROM the emulator to the Desire and FROM the Hero to the Desire works like a charm. Whats up with this? No security apps is installed and both devices(and the emulator) is running 2.1.

View 1 Replies View Related

Android :: Make Beep Sound Notification On Socket Connection Establishment?

Aug 3, 2010

How can I make the Device sound a beep when socket connection has been established. In other words, how to set a notification tone when an event occurs in Android sdk?

View 1 Replies View Related

HTC EVO 4G :: My Battery Drains Quicker After 2.2

Aug 6, 2010

When I purchased the phone, the battery would last about four hours until I installed advanced task killer. After group, it sucks. I checked to make sure it was still on safe mode and would only sync my gmail account. What are my options?

View 7 Replies View Related

Socket Programming - TCP Connection Through NetBios (NBNS) Name?

Dec 22, 2011

I'd like to know whether there is a way to connect to a TCP server (socket server) in an computer using his name (e.g.: my computer has a host name: MyComputer; then I must connect with it using his name).

It can be done using NBNS protocol (NetBios Name Service), but always I try to connect using his name, the Tablet uses DNS protocol instead of NBNS, as I might expct.

View 1 Replies View Related

Android :: Connection Between Server/socket When It Moves From EDGE To WIFI And Vice Versa

Dec 16, 2009

Does Android keep the connection between the server/socket when it moves from EDGE to WIFI and vice versa?

View 1 Replies View Related

HTC Desire :: Phone Gets Very Hot And Battery Drains

May 7, 2010

had my desire since the first release date and everything was fine until a few days ago when my phone was very hot and the battery life was about 5 hours from full charge.I think it is something running in the background i have been into settings then checked to see what was running everything seemed fine so i am a little stuck, is there an app to see whats running.

View 9 Replies View Related

HTC Droid Eris :: What Drains Battery Most?

May 12, 2010

I'm new here and a new Eris owner had it now for about a week and love it so far.I've read through several of the threads here about the battery and best ways to conserve, and I've tried to apply them (and I appreciate the info I've been able to find here).I'm conditioning the battery now (fully drained/charged it a few times), have set the brightness down lower, turned off bluetooth & wifi, set email checking to 2 hrs rather than 15 minutes.My question is about the effect on the battery of using facebook and peep/twitter as apps running on their own home screen.I have each of these two on their own screen so I can see updates but is this more draining on the battery than instead just having the apps as icons and then opening them up (meaning does this mean they are open all the time and draining battery)? Also, I have 3 email accounts setup but set to check every 2 hrs. Would this be more draining than just 1 email that checks every 30 minutes?

View 3 Replies View Related

HTC Magic :: Battery Drains Very Fast

Jun 7, 2010

I have a HTC Magic running the latest version of CyanogenMod 4.The battery was fine on my phone, till yesterday when it started draining within a couple of hours (while on standby). Clearly something is wrong as usually the battery would last most of the day if it was on standby.I thought it was an application, so I uninstalled everything I installed in the last day or so.

View 3 Replies View Related

HTC Incredible :: Weatherbug Drains Battery?

Jul 21, 2010

Has anyone else had problems with weather bug draining their battery?I unplugged my phone this morning and in less than 2 hours I was down to 30% and I never even used the phone. The only thing I remember installing lately was weather bug and this game called sketch online.

View 15 Replies View Related

HTC Incredible :: Battery Drains By Itself Without Use Overnight?

May 25, 2010

This has happened about 2-3 times now since the phone was released.The phone is fully charged before I go to bed and in the morning it's dead since the phone turned off by itself.Also it might explain why during the day, even without use for 2-3 hours it drains for no reason down to ~25%?So weird, anyone else have this problem? I don't have the GPS on.

View 40 Replies View Related

Nexus :: Battery Drains During Night?

Feb 1, 2010

Anyone know what could be the cause of my battery dying while I'm asleep at night? I don't put it on the charger at night if the battery is above 20% and the last couple nights my battery will be near 30% and when I wake up in the morning it's dead?! My feeds are set to update 12 hours apart which is usually around 7am, and I thought it was the auto task killer but I shut that off. The only thing I can think of is my alarm?! But really?

View 3 Replies View Related

Socket Networking - Set Up Basic Network Connection Using Droids?

Feb 7, 2012

I'm trying to set up a basic network connection using droids but I'm having problems.my server program:

Code:
ServerSocket ss = new ServerSocket(8888);
while(!end){
//Server is waiting for client here, if needed[code]....

the server runs until it reaches ss.accept() like it should but the client still can't connect. The client usually times out and nothing happens

I'm running both these programs using eclipse on my computer. I set the premissions in the manifest for both programs to let them use the internet and I have the port forwarding .

View 2 Replies View Related

KitKat 4.4 :: Android 4.4.2 Update On Galaxy Note 3 Drains Battery (1% Every Minute)

Mar 6, 2014

I am on Three UK, and I manually searched for an update for my Galaxy Note 3 today, while on my wireless network. My phone showed that a KitKat 4.4.2 update was available which was approx. 391 MB in size. Downloaded and installed it.

The install worked fine, but after the install, my phone seems to be draining the battery at 1% every minute. I have turned off GPS, wireless, mobile data etc. but to no avail.I don't even have Skype installed on my phone (as Google asked some users to uninstall Skype)

View 5 Replies View Related

Motorola Droid X :: Battery Drains While Using Car Charger

Aug 15, 2010

Interesting....I start at 80% battery...insert the Dx into the official moto car dock and car charger...drive using nav for 3hrs and my battery is down to 50%. I also stream pandora simultaneously. I would expect the charger to keep up but it is a losing battle....

View 12 Replies View Related

Motorola Droid X :: 3.5mm Jack Drains Battery?

Sep 2, 2010

So i just got my droidx yesterday, fully charged, configured the alarm before i went to bed, and plugged the externally powered speakers above my bed into the droid.Wake-up, no alarm, phones battery is dead.Today, ive applied the power settings under the tips and tricks here. But really? Whole battery in under 12 hours from just merely having the 3.5mm jack plugged in?

View 1 Replies View Related

Samsung I7500 :: Battery Drains Quickly Under 40%

Dec 14, 2009

My battery is alright, and can last almost 2 days, but while from 100% to ~40% it drains 'normally' , from 40% to 0% it drains real fast - about 20 minutes phone call.

View 6 Replies View Related

HTC Eris :: Nonsensikal 10.8.1 Battery Drains So Quickly

Nov 3, 2010

I really like Nonsensikal 10.8.1! It seems very zippy, smooth, and stable. The only issue I seem to be having is that my battery drains so quickly. Anyone else having this issue?

View 4 Replies View Related







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