1 00:00:00,570 --> 00:00:06,050 The essential building blocks of an Android application are called components. 2 00:00:06,660 --> 00:00:14,850 Each type serves a distinct purpose and has a distinct lifecycle that defines how the component is created 3 00:00:14,910 --> 00:00:15,570 and destroyed. 4 00:00:16,170 --> 00:00:22,350 The communication between these components is done using messages called intense. 5 00:00:22,890 --> 00:00:31,130 It is important to note that all these components need to be listed in the Android manifest dot sml 6 00:00:31,140 --> 00:00:31,590 file. 7 00:00:32,700 --> 00:00:35,640 These four components are listed on the screen. 8 00:00:36,290 --> 00:00:40,410 An activity is the entry point for interacting with the user. 9 00:00:41,670 --> 00:00:45,930 It represents a single screen with a user interface. 10 00:00:46,830 --> 00:00:51,720 Each activity is independent from others services. 11 00:00:52,660 --> 00:01:00,930 A service is a general purpose entry point for keeping an app running in the background for all kinds 12 00:01:00,930 --> 00:01:01,560 of reasons. 13 00:01:02,040 --> 00:01:09,930 It is a component that trons in the background to perform long running operations or to perform work 14 00:01:09,930 --> 00:01:11,610 for remote processes. 15 00:01:12,810 --> 00:01:16,890 A service does not provide a user interface. 16 00:01:17,160 --> 00:01:25,320 Broadcast's receivers, a broadcast receiver is a component that enables the system to deliver events 17 00:01:25,320 --> 00:01:33,840 to the application outside of a regular user flow, allowing the app to respond to system wide broadcast 18 00:01:33,870 --> 00:01:41,670 announcements because broadcast receivers are another well-defined entry into the app. 19 00:01:42,210 --> 00:01:51,030 The system can deliver broadcasts even to apps that aren't currently running, although broadcast receivers 20 00:01:51,030 --> 00:01:53,040 don't display a user interface. 21 00:01:53,520 --> 00:02:01,920 They may create a status by notification to alert the user when a broadcast event occurs. 22 00:02:02,430 --> 00:02:10,410 Content Providers, a content provider, manages a shared set of ABS data that you can store in the 23 00:02:10,410 --> 00:02:21,110 file system in a Ascui Alight database on the Web or on any other persistance storage location that 24 00:02:21,120 --> 00:02:25,110 your app can access through the content provider. 25 00:02:25,230 --> 00:02:33,060 Other apps can query or modify that data if the content provider allows it. 26 00:02:33,600 --> 00:02:40,110 For example, the Android system provides a content provider that manages the user's contact information 27 00:02:41,160 --> 00:02:41,730 as such. 28 00:02:41,970 --> 00:02:49,170 Any app, with the proper permission, can query the content provider to read and write information 29 00:02:49,590 --> 00:02:51,900 about a particular person.