‫Welcome back.
‫In this video we're going to learn about Androidmanifest in Android development.
‫The Androidmanifest.xml file is a crucial configuration file that provides essential information about
‫your Android app to the Android system.
‫It contains metadata about the app, defines the app's components, and specifies the required permissions.
‫In this video, we're going to learn about some key aspects of the Androidmanifest.xml file, and as
‫you see that this file is an XML file.
‫So this is the manifest opening tag.
‫And this is the closing tag.
‫Inside the manifest we have application.
‫The application element contains information about the application and its components such as activities
‫services, broadcast receivers and content providers.
‫So every new component you should declare it here inside the application tag we have activity.
‫The activity element within the application element defines the individual screens or UI components
‫of the app.
‫In this application we have two activity tags.
‫So this application contains two activities.
‫If we go to here we have the main activity and the second activity the intent filters inside the activity
‫service or receiver elements.
‫You can use intent filter to declare the types of intents your component can respond to.
‫For example, an activity might specify that can handle the main action and the launcher.
‫So here I'm specifying and telling Android Studio that the main activity will be launched and displayed
‫when the user opened the application.
‫And you can see if I tried to open the application, the main activity will be the launcher.
‫The first activity to be displayed.
‫We can define permissions for the application.
‫Inside this manifest, the user's permission tag and element allows you to declare the permissions your
‫app requires, such as accessing the internet, using the camera, and etc..
‫If I want to access the internet in this application, I need to specify this permission inside the
‫manifest file.
‫And there are a lot of attributes you can specify for this application.
‫For example, the icon here I can change the icon of our application.
‫So if you open the emulator this is our icon for the application.
‫If you want to change it, it's very simple.
‫I'll copy this icon to the drawable folder.
‫Make sure that the name of the image starts with letters and all small letters.
‫Click okay and here specify at drawable slash at.
‫Let me run the application again here I need to change this also because this is the round icon.
‫So at drawable slash add run the application and here we go.
‫And the icon is changed.
‫Also I can change the name of the application.
‫If I click on this label and the change it from the string resource to Components app, let me run again.
‫Go to the main screen and here we go the components app and with a new icon.
‫So the manifest file is a crucial part of Android development, as it provides essential information
‫for the Android system to understand and interact with your app.
‫It's used by the system to determine how to launch your app, what permissions it requires, and how
‫it should behave in various contexts.