The Android Manifestxml

The AndroidManifest.xml is a required file for every Android application. It is located in the root folder of the application, and describes global values for your package, including the application components (activities, services, etc) that the package exposes to the 'outer world', what kind of data each of our Activities and co. can handle, and how they can be launched.

An important thing to mention of this file are its so called IntentFilters. These filters describe where and when that activity can be started. When an activity (or the operating system) wants to perform an action such as open a Web page or open a contact picker screen, it creates an Intent object. This Intent-object can hold several information describing what you want to do, what data is needed to accomplish it and other bits of information. Android compares the information in an Intent object with the intent filter exposed by every application and finds the activity most appropriate to handle the data or action specified by the caller. If there it more than one application capable of handling that Intent, the user gets asked, which app he would prefer handling it.

Besides declaring your application's Activities, Content Providers, Services, and Intent Receivers, you can also specify permissions in


0 0

Post a comment