On-screen activity detector


#1

my game is still running when the user or turn off the screen or when you click the start button my idea is to put a component that when the user leaves the activity that is running do certain actions (I do not know if I understood)


#2

What typeof game? Provide mote info


#3

It is a type invading space that happens is that when you leave the activity is still running activity


#4

I mean the ships are still moving


#5

That means you are using :alarm_clock: and it keeps running


#6

and how do I avoid that ???


#7

That’s how I do to stop the clock?


#8

Hi,
You can use extension taifun tools https://puravidaapps.com/tools.php
Possible values are pause , stop and resume in ActivityStateChanged
When You click home button on Your phone activityState have value pause. You can close app in that moment.
I am sending this message with phone, later I can sent You blocks.