Shutdown on Android

Dan Friedman dan at
Sat Sep 2 11:26:20 EDT 2023


Thank you for the reply.  I don’t think suspend and resume are going to help… If the app is playing music (in the foreground or the background) and the user brings up the list of running apps and swipes up to remove it, how can I trap that the app is being closed and stop playing music?


From: use-livecode <use-livecode-bounces at> on behalf of J. Landman Gay via use-livecode <use-livecode at>
Date: Friday, September 1, 2023 at 3:37 PM
To: How to use LiveCode <use-livecode at>
Cc: J. Landman Gay <jacque at>
Subject: Re: Shutdown on Android
On 8/31/23 5:36 PM, Dan Friedman via use-livecode wrote:
> Does the shutdown message (or shutdownRequest message) work on Android?   I am playing a song using androidStartAudioPlayingInBackground.   However, if the app is closed (swiping up to exit it), then the audio continues to play.  So, I added an androidStopAudioPlayingInBackground command in the shutdown message to stop playing the audio.  But doesn’t seem to work – audio continues to play.
> Any thoughts?

Mark Smith reminded me that the suspend and resume messages are now supported on mobile
platforms. That might do it.

My old brain forgot about that.

Jacqueline Landman Gay         |     jacque at
HyperActive Software           |

use-livecode mailing list
use-livecode at
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list