Skip to content

Commit 03f34e9

Browse files
committed
answers added
1 parent b1d26ae commit 03f34e9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,9 +753,15 @@ It is also a good practice to annotate overridden methods with `@Override` to ma
753753
#### Base
754754
755755
* 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
756761
757762
* What is the structure of an Android Application?
758763
764+
759765
* What is `Context`? How is it used? [Medium](https://medium.com/p/understanding-context-in-android-application-330913e32514)
760766
761767
* What is `AndroidManifest.xml`?
@@ -821,19 +827,28 @@ It is also a good practice to annotate overridden methods with `@Override` to ma
821827
#### Intents and Broadcasting
822828
823829
* 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
824833
825834
* 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.
826836
827837
* What is an Explicit `Intent`?
838+
If the target component is defined directly.
828839
829840
* 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);
830842
831843
* What is a `LocalBroadcastManager`? [Developer Android](https://developer.android.com/reference/android/support/v4/content/LocalBroadcastManager.html)
832844
833845
* 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.
834848
835849
* What is a Sticky `Intent`? [AndroidInterview](http://www.androidinterview.com/what-is-a-sticky-intent/)
836850
851+
837852
* Describe how broadcasts and intents work to be able to pass messages around your app?
838853
839854
* What is a `PendingIntent`?

0 commit comments

Comments
 (0)