Need help for androidmanifest.xml

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Need help for androidmanifest.xml

Postby sasuke » Fri Dec 14, 2007 1:01 pm

Hi all,

I have read the android.content.Intent class, and i still don't really understand about the androidmanifest.xml file.

I need a little help to explain the functionality of the tags in androidmanifest.xml. My problem is, when to use each tag like <intent-filter>,<action>,<category>, etc. and also when to use category like DEFAULT_CATEGORY,ALTERNATIVE_CATEGORY, etc.

Thanks for your help
sasuke
Experienced Developer
Experienced Developer
 
Posts: 57
Joined: Fri Nov 30, 2007 1:25 pm

Top

Postby plusminus » Fri Dec 14, 2007 2:05 pm

Hello sasukeo,
:src: The AndroidManifest.xml File
AndroidManifest.xml is a required file for every application. It sits in the root folder for an application, and describes global values for your package, including the application components (activities, services, etc) that the package exposes and the implementation classes for each component, what kind of data each can handle, and where they can be launched.

An important aspect of this file are the intent filters that it includes. 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 object can hold several descriptors describing what you want to do, what data you want to do it to, the type of data, 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. More details on intents is given in the Intent reference page.

Besides declaring your application's Activities, Content Providers, Services, and Intent Receivers, you can also specify permissions and instrumentation (security control and testing) in AndroidManifest.xml ...


:arrow: Read more.


There you find links/descriptions to things like the Category:
The semantics of categories is the opposite of actions -- an Intent includes the categories that it requires, all of which must be included in the filter in order to match. In other words, adding a category to the filter has no impact on matching unless that category is specified in the intent.


Regards,
plusminus
Last edited by plusminus on Fri Dec 14, 2007 2:57 pm, edited 1 time in total.
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby sasuke » Fri Dec 14, 2007 2:18 pm

where is the link that refer to this description? i can't find it.. :wink:

There you find links/descriptions to things like the Category:
The semantics of categories is the opposite of actions -- an Intent includes the categories that it requires, all of which must be included in the filter in order to match. In other words, adding a category to the filter has no impact on matching unless that category is specified in the intent.



Thanks
sasuke
Experienced Developer
Experienced Developer
 
Posts: 57
Joined: Fri Nov 30, 2007 1:25 pm

Postby plusminus » Fri Dec 14, 2007 3:03 pm

Hello sasukeo,

if you scroll down here:
:src: The AndroidManifest.xml File
you'll find:

...
<action>
An Intent action that the component supports.
<category>
An Intent category that the component supports.
<type>
An Intent data MIME type that the component supports.
<scheme>
An Intent data URI scheme that the component supports.
<authority>
An Intent data URI authority that the component supports.
<path>
An Intent data URI path that the component supports.
...


Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby sasuke » Fri Dec 14, 2007 3:09 pm

thank you for the answers plusminus :D
sasuke
Experienced Developer
Experienced Developer
 
Posts: 57
Joined: Fri Nov 30, 2007 1:25 pm

Top

Return to General

Who is online

Users browsing this forum: No registered users and 3 guests