Proximity Alert and Battery life

by loty » Thu, 05 Mar 2009 00:33:57 GMT

Sponsored Links
 I wrote a simple app that uses proximity alerts and after installing
it on my G1 found that battery life have been halved at least. It's so
bad that phone needs to be recharged mid-day or it completely dies by
9pm. There is no polling of any kind - just proximity alerts (3 of
them). I tried with GPS turned off (using network triangulation for
coarse GPS location) but battery life is still abysmal.

Is there a general solution to improve battery life with proximity
alerts or the whole GPS thing is a non-starter on G1s?

Proximity Alert and Battery life

by Javier Segura » Thu, 05 Mar 2009 00:49:43 GMT

 There is a utility called Power Management that fits your needs



Sponsored Links

Proximity Alert and Battery life

by loty » Thu, 05 Mar 2009 01:11:54 GMT

 Just to clarify - I'm not interested in monitoring status of my
I'm interested in finding a solution so that simple proximity alerts
don't destroy battery life and make my apps unusable to users.

Can you elaborate please how I can use Power Management utility to
reduce power consumption of simple proximity alerts?


Proximity Alert and Battery life

by Mark Murphy » Thu, 05 Mar 2009 01:26:20 GMT


There are other apps that use proximity alerts -- for example, I would
assume Locale does. Have you tried these applications to see their
effects on battery life?

Mark Murphy (a Commons Guy) 
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!


Proximity Alert and Battery life

by loty » Thu, 05 Mar 2009 07:04:52 GMT

 I played with it for 15 minutes but never run it for a full day. Will
do though.


Other Threads

1. Programatically selection of 3G network connection in G1?

Hi Folks,

I'm working on some data transmission program and current it works alright
on WIFI connection.

However, I understand that if I am in an environment where there are both 3G
and WIFI coverage... the phone will (by default) be turned onto the WIFI
network connection.

However, if for some reasons, I wish to be connected directly to 3G (e.g. 3G
is more stable in public WIFI area).... is it possible to do so
programatically on the Android phone? If i'm not wrong, it's possible using
the ConnectionManager API, am I right?

May i ask if anyone has done something like that and  don't mind sharing the
code snippets to do so , or point me to the right direction for this?

Many Thanks in Advance!



2. Writting/Reading Sync settings - Possible?

There is no public API for this.  Anything you do will break in a future
release.  (In fact I know it will break in a feature release, because I just
modified the mechanism to do this in an incompatible way.  Which is why this
is private.)

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.


3. resource manager LayerDrawable problem

4. onFling gesture in WebView

5. browser intent messages and broadcastReceiver

6. Davlik bug? UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: [classXXX]

7. 3d models and Open GL