goodev / a2dpvolume

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

Service Restart Loop after 24+ hours #170

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Device (phone) brand: Google
Device (phone) model: Nexus 4
Android OS version: 4.2.2
App version number: 2.9.7
What steps will reproduce the problem?
1. Start Service, enable "Show Pop-ups"
2. Use device normally for 24+ hours (exact amount of time varies)
3. Service notifications pop-up regularly (nearly every time screen is turned 
on)
4. Apparent battery drain side-effect. 

What is the expected output? What do you see instead?

Rebooting the device resolves the issue for around 24 hours.

Original issue reported on code.google.com by vincean...@gmail.com on 2 Jul 2013 at 1:28

GoogleCodeExporter commented 9 years ago
Sorry one more detail, for settings, run service as a background task.

Original comment by vincean...@gmail.com on 2 Jul 2013 at 1:30

GoogleCodeExporter commented 9 years ago
Are you using task killers?  This is generally a symptom of something killing 
the task to make room to run other apps.  That can happen even without task 
killers.  If you have several apps that consume RAM Android will dump the older 
background tasks to make room.  The longer you run the device the more stuff 
that gets loaded into RAM.  Using the "notify in foreground" can help to stop 
A2DP Volume from being killed since it takes higher priority if its a 
foreground app.  

Original comment by JimR...@gmail.com on 2 Jul 2013 at 11:40

GoogleCodeExporter commented 9 years ago
Nope. No task killers. I've found they cause more problems than they solve.

I suspect you're right though. Most apps are more reliable when running in the 
foreground. I just hate having stuff in my drawer, so I try to avoid it.

Seems silly that Android will arbitrarily dump services from memory. Can you 
imagine if a Linux server did that? "Oops, sorry. You didn't really _need_ 
apache running, did you?"

Original comment by vincean...@gmail.com on 3 Jul 2013 at 12:29

GoogleCodeExporter commented 9 years ago

Original comment by JimR...@gmail.com on 4 Jul 2013 at 8:02