Unlike other traditional application platforms, Android apps cannot control their own lifecycle. Instead, application components must be resilient to changes in application state and react appropriately, and in particular be prepared to be terminated at any time.
By default, each Android application runs through its own process, each running in a separate Dalvik instance. The memory and process management of each application is handled exclusively by the runtime.
By using the Android:process property within manifest for each application component node that receives an impact, you can either run the components of the same application in a different process or have multiple applications share the same process.
Android actively manages its resources, and he takes any steps to ensure a stable and smooth user experience. This means that processes (and their applications) are sometimes terminated without warning, so that resources can be freed up for a high-priority application.
Android-life cycle of the application