Skip to main content

File Present Inside The APPlLICATION Package

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)

Image result for what is main activity.java


Comments

Popular posts from this blog

APPLICATIONS COMPONENT

2.APPLICATIONS COMPONENT Application components are the essential building blocks of an Android application. These components are loosely coupled by the application manifest file AndroidManifest.xml that describes each component of the application and how they interact. Activities  They dictate the UI and handle the user interaction tothe smartphone screen Services  They handle background processing associated with an application. Broadcast Receivers  They handle communication between Android OS and applications. Content Providers   They handle data and database management issues. Activities An activity represents a single screen with a user interface. For example, an email application might have one activity that shows a list of new emails, another activity to compose an email, and one for reading emails. If an application has more than one activity, then one of them should be marked as the activity that is presented when the application is launc

ANDROID ARCHITECTURE

1.ANDROID ARCHITECTURE Linux kernel At the bottom of the layers is Linux - Linux 2.6 with approximately 115 patches.This provides basic system functions like process management, memory management, device management like camera, keypad, display etc. Also, the kernel handles all the things that Linux is really good at, such as networking and a vast array of device drivers, which take the pain out of interfacing to peripheral hardware. Libraries On top of Linux kernel there is a set of libraries including open-source Web browser engine WebKit, well known library libc, SQLite database which is a useful repository for storage and sharing of application data, libraries to play and record audio and video, SSL libraries responsible for Internet security etc. Android Runtime This is the third section of the architecture and available on the second layer from the bottom. This section provides a key component called Dalvik Virtual Machine which is a kind of Java Virtual