Still consuming CPU after exit

Shay

Well-Known Member
Licensed User
Longtime User
Hi

I am using the following code
and I noticed that my device is still consuming CPU and RAM
what am I missing?

Awake.ReleaseKeepAlive - I am using this so device will not sleep
Awake.KeepAlive(False)
StopService(ServiceModule) - stopping the service (even that on this page is not running)
Activity.Finish
 

Shay

Well-Known Member
Licensed User
Longtime User
so I need to remove this line?
(I have in activity create:Awake.KeepAlive(true) )

few more questions:
1. Do you know if I am using GPS, and device is turning off the screen - is the GPS is still getting info? (I need it to be) this is why I used the 2 awake commands
2. How can I allow the machine go to the "screen saver" (turn off) and still get the GPS location?

Thanks
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
removing the Awake.KeepAlive(False)
did not help

this is helping:
ExitApplication ' Kill the app
 
Upvote 0
Top