Is an application instance always created before any action?

On Android, you can provide your own implementation of the Application class by extending it and declaring a name in the manifest.

My question is whether this implementation will always be created before the initial action, or can activity be started before the application instance can be created?

+8
android android-activity android-manifest
source share
2 answers

whether this implementation will always be created before the initial operation

Yes. This is one of the first objects created in your process.

+8
source share

Yes The application class is the first class that is initialized in any Android application ...

Thus, if any class extends the application class, this class will be initiated first.

+3
source share

All Articles