When the application starts, two objects of my Application class are created. “Android Studio”
Why can two objects of my Application class be created when the application is launched?
I added a timer to the MyApplication class and saw through the logs that it was started twice. Then I put the log in onCreate and declared val uuid = UUID.randomUUID()
in the class itself.
As a result, when the application was started, the log with the uuid was output twice. The UUID was different each time.