Please check the life cycle of the activity. If you run the action, it will call the oncreate method, if it is still in the background, then it will call onResume because it is in a pause state. The Linux kernel provides a unique identity for each application.
Suppose you started an operation and you called onCreate to start it again, it will first call the onDestroy or onStop method, then it will call onCreate.
source share