The Android application manifest file is a specially formatted XML file that must accompany each Android application. This file contains important information about the application’s identity. Here you define the application’s name and version information and what applica- tion components the application relies upon, what permissions the application requir- es to run, and other application configuration information.
The Android manifest file is named AndroidManifest.xml and must be included at the top level of any Android project. The information in this file is used by the Android system to
Editing the Android Manifest File
The manifest resides at the top level of your Android project. You can edit the Android manifest file using the Eclipse Manifest File resource editor (a feature of the Android ADT plug-in for Eclipse) or by manually editing the XML.
Editing the Manifest File Using Eclipse
You can use the Eclipse Manifest File resource editor to edit the project manifest file. The Eclipse Manifest File resource editor organizes the manifest information into categories:
Let’s take a closer look at a sample Android manifest file. The figures and samples come from the Android application called Multimedia, which you build in Chapter “Using Android Multimedia APIs.”We chose this project because it illustrates a number of different characteristics of the Android manifest file, as opposed to the very simple default manifest file you configured for the My First Android App project.
Configuring Package-Wide Settings Using the Manifest Tab
The Manifest tab contains package-wide settings, including the package name, version information, and supported Android SDK information. You can also set any hardware or feature requirements here.
The Manifest tab of the Eclipse Manifest File resourceeditor.
Managing Application and Activity Settings Using the Application Tab
The Application tab contains application-wide settings, including the application label and icon, as well as information about the application components such as activities, intent filters, and other application components, including configuration for services, intent filters, and content providers.
Enforcing Application Permissions Using the Permissions Tab
The Permissions tab contains any permission rules required by your application. This tab can also be used to enforce custom permissions created for the application.
Managing Test Instrumentation Using the Instrumentation Tab
The Instrumentation tab allows the developer to declare any instrumentation classes for monitoring the application. We talk more about instrumentation and testing in Chapter “Testing Android Applications.”
The Application tab of the Eclipse Manifest File resource editor.
The Permissions tab of the Eclipse Manifest File resource editor.
Editing the Manifest File Manually
The Android manifest file is a specially formatted XML file. You can edit the XML manually by clicking on the AndroidManifest.xml tab.
Android manifest files generally include a single <manifest> tag with a single <application> tag. The following is a sample AndroidManifest.xml file for anapplication called Multimedia:
Here’s a summary of what this file tells us about the Multimedia application:
Now let’s talk about some of these important configurations in detail.
Setting Up Your Android Development Environment
Writing Your First Android Application
Understanding The Anatomy Of An Android Application
Defining Your Application Using The Android Manifest File
Managing Application Resources
Exploring User Interface Screen Elements
Designing User Interfaces With Layouts
Drawing And Working With Animation
Using Android Data And Storage Apis
Sharing Data Between Applications With Content Providers
Using Android Networking Apis
Using Android Web Apis
Using Location-based Services (lbs) Apis
Using Android Multimedia Apis
Using Android Telephony Apis
Using Android 3d Graphics With Opengl Es
Using The Android Ndk
Using Android’s Optional Hardware Apis
Working With Notifications
Working With Services
Extending Android Application Reach
Managing User Accounts And Synchronizing User Data
Handling Advanced User Input
Targeting Different Device Configurations And Languages
The Mobile Software Development Process
Designing And Developing Bulletproof Android Applications
Testing Android Applications
Selling Your Android Application
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.