A. Look for a setting in the app that allows background playback. Go to the app settings and enable 'Allow Background Playback' or similar options. This will let the music continue playing even when you switch to another app or close the app.
B. If the app does not support background playback, consider using a different music player that allows this feature, or keep the app open in the background while using other apps.