agro6162 / talkmyphone

Automatically exported from code.google.com/p/talkmyphone
0 stars 0 forks source link

Passive/Active Modes - Improved Battery Life #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The mode we have right now would be "Active"--constantly checks for new 
commands.

A new mode would be "Passive." It would periodically wake the phone at 
user-defined intervals to check for new commands which were sent since the last 
check. We'd retain the security of "where" and "ring" without worrying about 
battery life.

Ideally, we'd be able to use Google Talk to switch between the modes. 

I appreciate all your hard work, and I'm very excited about this app's future.

Original issue reported on code.google.com by jade.fal...@gmail.com on 7 Oct 2010 at 6:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by chm.duquesne on 7 Oct 2010 at 10:28

GoogleCodeExporter commented 9 years ago
TMP currently uses a "packet receiver", which means it need not wake up 
periodically, but instead Android will tell it when a command is received and 
is free to let it sleep in the meantime.  In other words, it already is fairly 
passive.

Original comment by skippy.hammond@gmail.com on 13 Oct 2010 at 1:42

GoogleCodeExporter commented 9 years ago
Yes, TalkMyPhone has a Packet receiver that triggers actions when a command is 
received, which means it does nothing while it does not receive packets. 

The only problem would come from the fact a connection is kept open to receive 
these packets (and obviously this eats battery). But, AFAIK, Periodically 
closing/reopening the connection for checking for new commands would not be a 
good idea. I prefer waiting for improvements on the jabber libraries side 
rather than hacking something quick and dirty...

Original comment by chm.duquesne on 13 Oct 2010 at 7:35

GoogleCodeExporter commented 9 years ago
Ah, thanks so much for the information. Makes me love the app even more than I 
already do!

Original comment by jade.fal...@gmail.com on 13 Oct 2010 at 3:20

GoogleCodeExporter commented 9 years ago

Original comment by chm.duquesne on 14 Oct 2010 at 11:49