Posted On: Jun 11, 2024
The major difference between onCreate() and onStart() is as follows.
onCreate() is called when the Activity is created; that is, it is launched or started. (Additionally, this triggers when the orientation is changed.) It is called again when the process is killed, then returned to.
while onStart() called following onCreate() at startup. Additionally, it is also called when the app is navigated back to after onStop() (and following onRestart()), which occurs after the Activity is no longer visible (which is during the time that "the user can see the activity on-screen, though it may not be in the foreground and interacting with the user").
Never Miss an Articles from us.
Android, built on the Linux kernel, is an open-source operating system used in smartphones and tablets. Its high-performance components empower developers to create and execute apps with diverse funct..
Android application components, including Activities, Services, Broadcast Receivers, and Content Providers, form the foundational elements of Android apps. These components facilitate various function..
Fragments in Android represent modular UI components within a FragmentActivity. They enable the creation of flexible and reusable UIs by combining multiple fragments within a single activity. Each fra..