Skip to main content
Participant
June 11, 2019
Question

app keep running after user leave it in android platform

  • June 11, 2019
  • 1 reply
  • 398 views

Hi everyone,

I have one app designed for ios & android with same code base, but the app behavior is different on ios & android. when I click the home button on ios, the app auto stop runinng as expected, but on android platform, the app still running with sound. Do I need manually stop all sound & timer when app become deactive? Is there any shortcut solution for this issue? Thanks

This topic has been closed for replies.

1 reply

Lars Laborious
Legend
June 11, 2019

Yes, on Android you need to manually stop/pause sound and other activity on deactivate. Unfortunately there's no shortcut to pause everything.

hsp501Author
Participant
June 11, 2019

Thanks, Lars Laborious. Is there any official documents about this issue from adobe?

Lars Laborious
Legend
June 12, 2019

It’s hard to find official documents from Adobe on Android development, but you need to listen for the deactivate/activate events fired by the NativeApplication class.