Skip to main content
Participant
Jun 11, 2019 6:36 AM UTC
Question

app keep running after user leave it in android platform

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

Lars Laborious
Legend
Jun 11, 2019 7:17 AM UTC

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

Translate
hsp501Author
Participant
Jun 11, 2019 7:30 AM UTC

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

Translate
Lars Laborious
Legend
Jun 12, 2019 2:34 PM UTC

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.

Translate