3.File Present Inside The APPlLICATION Package
AndroidManifest.xml
Every application must have an
AndroidManifest.xml
file (with precisely that name) in its root directory. The manifest file provides essential information about your app to the Android system, which the system must have before it can run any of the app's code.
Among other things, the manifest file does the following:
- It names the Java package for the application. The package name serves as a unique identifier for the application.
- It describes the components of the application, which include the activities, services, broadcast receivers, and content providers that compose the application. It also names the classes that implement each of the components and publishes their capabilities, such as the
Intent
messages that they can handle. These declarations inform the Android system of the components and the conditions in which they can be launched. - It determines the processes that host the application components.
- It declares the permissions that the application must have in order to access protected parts of the API and interact with other applications. It also declares the permissions that others are required to have in order to interact with the application's components.
- It lists the
Instrumentation
classes that provide profiling and other information as the application runs. These declarations are present in the manifest only while the application is being developed and are removed before the application is published. - It declares the minimum level of the Android API that the application requires.
- It lists the libraries that the application must be linked against.
activity_main.xml
Under the res/layout you can find the activity_main.xml which is contain the design of the UI xml code. Inside it you design the UI. there are two types of view of this xml file
1.Graphicaly view
This View display you the graphical view of the code.
2.Code View
this is sgow the xml code of the layout and objects are puts inside in the UI
R.java
R.java file is an auto-generated file by aapt (Android Asset Packaging Tool) that contains resource IDs for all the resources of res/ directory. when you create any component in the xml file, id for the corresponding component is automatically created in this file. This id can be used in the activity source file to perform any action on the component.this file contain all the view layout,java file,and all component id in it. On every modification You have to save all the project so that the id of the componed R.java file can store the id of that componend inside it.
For Save the all Project Press the CTRL+Shift+S at a time.
NOTE:-Do not modify this file as a beginner.
Main Activity.java
This file contain all the java Code Which are operating the app.You can write the java Code inside it. you can find this file inside the src/com.example.myapp1(application package name)
Comments
Post a Comment