You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -753,9 +753,15 @@ It is also a good practice to annotate overridden methods with `@Override` to ma
753
753
#### Base
754
754
755
755
* Tell all the Android application components. [Android Official](https://developer.android.com/guide/components/fundamentals.html#Components)
756
+
Each component is an entry point through which the system or a user can enter your app. The 4 components are:
757
+
i) Activity
758
+
ii) Service
759
+
iii) Broadcast Receiver
760
+
iv) Content Provider
756
761
757
762
* What is the structure of an Android Application?
758
763
764
+
759
765
* What is `Context`? How is it used? [Medium](https://medium.com/p/understanding-context-in-android-application-330913e32514)
760
766
761
767
* What is `AndroidManifest.xml`?
@@ -821,19 +827,28 @@ It is also a good practice to annotate overridden methods with `@Override` to ma
821
827
#### Intents and Broadcasting
822
828
823
829
* What is `Intent`? [StackOverflow](https://stackoverflow.com/questions/6578051/what-is-an-intent-in-android)
830
+
An intent is 'an intention to perform an action'. It can be used to start activity, to send a broadcast receiver and to communicate with a background service. Main information in intent are:
831
+
- action
832
+
- data
824
833
825
834
* What is an Implicit `Intent`?
835
+
If the target component is not defined directly but enough data is provided so that the android system can evaluate the registered components.
826
836
827
837
* What is an Explicit `Intent`?
838
+
If the target component is defined directly.
828
839
829
840
* What is a `BroadcastReceiver`? [StackOverflow](https://stackoverflow.com/questions/5296987/what-is-broadcastreceiver-and-when-we-use-it)
841
+
A component that enables the system to deliver events to the app. the events can be system generated (power off, airplane mode turned on) or user generated (button click or anything at all);
830
842
831
843
* What is a `LocalBroadcastManager`? [Developer Android](https://developer.android.com/reference/android/support/v4/content/LocalBroadcastManager.html)
832
844
833
845
* What is the function of an `IntentFilter`?
846
+
Specifies the types of intents that an activity, service, or broadcast receiver can respond to.
847
+
When you create an implicit intent, the Android system finds the appropriate component to start by comparing the contents of the intent to the intent filters declared in the manifest file of other apps on the device. If the intent matches an intent filter, the system starts that component and delivers it the Intent object.
834
848
835
849
* What is a Sticky `Intent`? [AndroidInterview](http://www.androidinterview.com/what-is-a-sticky-intent/)
836
850
851
+
837
852
* Describe how broadcasts and intents work to be able to pass messages around your app?
0 commit comments