msg = wait(0, m.port)
msgType = type(msg)
if msgType = "roSGScreenEvent"
if msg.isScreenClosed() then
No, there isn't.
This is not a scenography issue in particular - it's Roku one in general.
There is a suggestion on how to fix that already, see here https://forums.roku.com/viewtopic.php?f ... 30#p487482
Waiting for Roku* to chime in, I suppose. Sheesh, can't believe it's been over a year?!
"menghao" wrote:Umm... "background activities" is one of the big mor-asses of Android, at least for mobile. I wouldn't go there!
Thank you EnTerr, the way I can image is that at least I can record the time of the app quit. And try to send usage event when the app restarts next time.
I worked on android TV the leanback library before, they all support the background activities.
Hope Roku will think about it. This is a common usage case indeed.