But as my phones were upgraded with more RAM and better CPUs that issue vanished. You might have to deal with this manually if on an entry level phone by end tasking apps to keep RAM and CPU free to do the things you want.
https://www.gsmarena.com/htc_desire_526-7419.php finds it's an OK phone, little light on RAM but just like a PC you have to work with the limitations.
Have the HTC 526 Desire. Launch an internet radio app that sometimes loses out to other apps and processes. Is there a way for a user to control/adjust resources to such an app so that programming is not interrupted