To prevent apps from running in the background and consuming battery and resources, go to your device settings. Find the 'Apps' or 'Application Manager' section, select the app you want to limit, and choose 'Force Stop' or disable background activity. It's also helpful to adjust battery optimization settings for better performance.