android file structure, what is androidmenfest.xml, androidmenfest is for, jobs of androidmenfest, tags use in androidmenfest, defile resources in androidmenfest
Android File Structure Tutorial 01
Hi AllLet's look at the file structure and the usage of each file of the Android project. This knowledge is vital when we discus further developments. Open your project file structure and lets see about each file.
AndroidManifest.xml
This file have vital information about android system, those are important to adjust the application before run codes. Mainly AndroidManifest do following things.
- It names the Java package for the application (witch we discuss before post 'Hello World with Android')
- Describe the component of the application. (the activities, services, broadcast receivers, and content providers that the application is composed of. It names the classes that implement each of the components and publishes their capabilities)
- It determines which processes will host application components and declarer the permission within the application and also when interacting with other applications, application components.
- In your file there is list of Instrumentation classes, those are base class for implementing application instrumentation code. These declarations are present in the manifest only while the application is being developed and tested; they're removed before the application is published.
- Also have defined the minimum level of Android API and Libraries that require.
If you cant understand the things in before list just let it there a bit, because with moving Android you may grab what those are.
I know this has long text lines unlike before posts, but should get understand about around things also before moving hand on works.
Now open your AndroidManifest.xml file
(here I'm using the AndroidManifest.xml file from last developed application in post - Change the Properties of the Interface Element , if you advance Androd programmer this may simple for you.)
Before image is simple example of manifest file, there are lot more tags when you add new services and libraries to the project.
If you want to learn it further, below list contain the complete set of tags use in the androidmanifest use those link provided to explore further.These are the only legal elements; you cannot add your own elements or attributes.
<action> <activity> <activity-alias> <application> <category> <data> <grant-uri-permission> <instrumentation> <intent-filter> <manifest> <meta-data> <permission> <permission-group> <permission-tree> <provider> <receiver> <service> <supports-screens> <uses-configuration> <uses-feature> <uses-library> <uses-permission> This post may complicate beginners, but don't confuse with these tags. you will learn those with next few activities, be with the next blog posts. Android File structure tutorial posts will not add as continues posts. Because it may boring to followers.
Thank You All
Next post :
By MIthila Karunarathna
Next post :
Introduction to Buttons









