Shutdown on Android

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


Jacqueline,

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?

-Dan



From: use-livecode <use-livecode-bounces at lists.runrev.com> on behalf of J. Landman Gay via use-livecode <use-livecode at lists.runrev.com>
Date: Friday, September 1, 2023 at 3:37 PM
To: How to use LiveCode <use-livecode at lists.runrev.com>
Cc: J. Landman Gay <jacque at hyperactivesw.com>
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 hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


More information about the use-livecode mailing list