Skip to content

Commit 01c11df

Browse files
authored
updated activity answer
1 parent a8435c1 commit 01c11df

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -777,13 +777,15 @@ The permissions that the app needs in order to access protected parts of the sys
777777
If we're using Android Studio to build your app, the manifest file is created for us, and most of the essential manifest elements are added as we build our app (especially when using code templates).
778778
779779
* What is `Application` class?
780-
It is the Base class for maintaining global application state. We can provide our own implementation by creating a subclass and specifying the fully-qualified name of this subclass as the "android:name" attribute in your AndroidManifest.xml's <application> tag. The Application class, or your subclass of the Application class, is instantiated before any other class when the process for your application/package is created.
780+
- It is the Base class for maintaining global application state. We can provide our own implementation by creating a subclass and specifying the fully-qualified name of this subclass as the "android:name" attribute in your AndroidManifest.xml's <application> tag. The Application class, or your subclass of the Application class, is instantiated before any other class when the process for your application/package is created.
781781

782782
#### Activity
783783

784784
* What is `Activity`?
785-
786-
* Explain `Activity` and `Fragment` lifecycle. (Complete diagram [GitHub](https://github.com/xxv/android-lifecycle), simplified diagram for [Activity](https://developer.android.com/guide/components/activities/activity-lifecycle.html#alc), [Fragment](https://developer.android.com/guide/components/fragments.html#Lifecycle))
785+
- An `Activity` is a single, focused thing that the user can do. Almost all activities interact with the user, so the `Activity` class takes care of creating a window for you in which you can place your UI with setContentView(View). While activities are often presented to the user as full-screen windows, they can also be used in other ways: as floating windows (via a theme with R.attr.windowIsFloating set), Multi-Window mode or embedded into other windows.
786+
787+
* Explain `Activity` and `Fragment` lifecycle.
788+
- (Complete diagram [GitHub](https://github.com/xxv/android-lifecycle), simplified diagram for [Activity](https://developer.android.com/guide/components/activities/activity-lifecycle.html#alc), [Fragment](https://developer.android.com/guide/components/fragments.html#Lifecycle))
787789

788790
* What are "launch modes"? [Mindorks](https://blog.mindorks.com/android-activity-launchmode-explained-cbc6cf996802)
789791

0 commit comments

Comments
 (0)