Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,465 Members 37,109 Now Online
XDA Developers Android and Mobile Development Forum

[Q] How to keep an App running in the background?

Tip us?
 
Asad_970
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Jul 2014
Question [Q] How to keep an App running in the background?

I'm using cyanogenmod and it's music player ''Apollo'' is never running it the background so whenever I clear the recent apps it closes, this didn't happen with the Samsungs music player, so how do I keep it running in the background so that it doesn't closes when I clear the recent apps, all help is appreciated, thanks.
 
lolcakes203
Old
#2  
lolcakes203's Avatar
Senior Member
Thanks Meter 49
Posts: 279
Join Date: Jan 2013
Location: Toronto
The reason that Apollo closes is because it doesn't create a service to play music like the Samsung player, it just creates a background process that is killed when swiped away. When an app creates a service, it will stay active in the background even if swiped away. This isn't something you can fix on your own to the best of my knowledge.

Sent from my Nexus 4 using XDA Free mobile app
Devices:
LG Optimus 2X P990
LG Nexus 4

LG Optimus 2X:
ROM: Tonyp TheROM Build 26 New Bootloader
Kernel: Kowalski Kernel M1 New Bootloader 2.6.39.4 W/ RAM Hack
Bootloader:ICS Bootloader
Recovery: TWRP 2.6.0.0 For New BL
Baseband: 1035.21

Nexus 4:
ROM: Stock 4.4.4 W/ Root (Xposed, GPU Drivers, Dalvik/Bionic Patches)
Kernel: Matr1x 14.0 W/ GPU OC
Bootloader: Stock Bootloader (Unlocked)
Recvoery: PhilZ Touch CWM-Based Recovery
Radio:Radio (1.03)
The Following User Says Thank You to lolcakes203 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes