How to prevent apps from running in the background on Android

Android background running applications not only consume memory but also drain battery quickly. Therefore, to save battery and memory of your Android device, you should block these applications.