Stopping music in other screen


I coded a screen to play a song in the background.
My question is can you stop the player in other screen?

(without going back to the original screen)

I don't think you can Darket1. Each Screen in your App is isolated in it's own allocation of memory. However, if you use Virtual Screens, then it's possible.

When we define virtual screens, we use one 'real' App Inventor Screen (most often Screen1). Screen-sized Vertical Arrangements on it are displayed/hidden as required - they are the Virtual Screens. This is generally a better approach for multi-screen Apps, they share data without having to "pass" it between screens and it also reduces code duplication, making the App more efficient and the code easier to follow if you have to return to it at a later date.
So, instead of separate "houses", virtual screens are "rooms" of the same "house".

Yes, you can, even without using virtual screens.
Try this one:



1 Like

Correction - good method Anke!

1 Like