Page 1 of 1

1.5.2 Cross not closing/ battery usage still high.

PostPosted: 22 Sep 2014, 15:03
by RoJeC
When closing Cross android it doesn't fully close.

Even worse it consumes over 15% battery power. Likely also the mediaplayer stays active due to Cross, taking in all 33% of battery.
These figures are about 3 hours after running Cross for 2 seconds.

Samsung s3 mini.

Re: 1.5.2 Cross not closing/ battery usage still high.

PostPosted: 23 Sep 2014, 09:33
by RoJeC
8 hours later the combined % raised to having used over 60% of battery while 'turned off'.

Re: 1.5.2 Cross not closing/ battery usage still high.

PostPosted: 23 Sep 2014, 09:38
by Nordhal
I will do some tests, but we know that Cross for Android is an app that is battery consuming.

However, when you close the app, the process is killed. So how did you manage to get Cross DJ in background? Did you press the home button?

There may be an issue here : since we have our audio engine in a low level layer, Android may not kill our app when it needs to.

Tasks & apps are killed as soon as the phone needs some free RAM. But if it does not need this, apps are not killed. In our case, if our app is in background, it can consume.

Also, what did you use to check the battery consumption? I do not see Cross DJ in my alimentation/battery history

Re: 1.5.2 Cross not closing/ battery usage still high.

PostPosted: 23 Sep 2014, 10:05
by RoJeC
I understand Cross is using necessary power when running. No issue with that.

As I suspected it to be Cross app still consuming the figures are from a test situation.
Phone fully charged, rebooted.
Start Cross. Followed by exit: back button and confirm.

Usage figures from Settings / Battery menu.

Active app info for Cross DJ (when 'closed'; translated from Dutch)
---------
Cross DJ 24mb
2 proces 1 service
..
services
UploadService
started by appplication
..
Processes
Cross DJ 18mb
com.mixvibes.crossdjapp

main proces in use
google play Store 6.8mb
com.android.vending

Service InAppBillingService in use
----------------------

Re: 1.5.2 Cross not closing/ battery usage still high.

PostPosted: 23 Sep 2014, 11:15
by Nordhal
This stupid UploadService does start our app, even if we kill it.
So you're right, unless you stop this service manually, our app is always active.

This is bad, and I fixed it. It should be available on Cross DJ 1.5.3

Thanks for the feedback !

Re: 1.5.2 Cross not closing/ battery usage still high.

PostPosted: 23 Sep 2014, 11:37
by RoJeC
:cool: :biggrin:

We saved the environment as international project :!: :!: