attrs_manifest.xml revision 93e462b79d6896da10e15e74c5aec6beb098dddf
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/* Copyright 2006, The Android Open Source Project
4**
5** Licensed under the Apache License, Version 2.0 (the "License");
6** you may not use this file except in compliance with the License.
7** You may obtain a copy of the License at
8**
9**     http://www.apache.org/licenses/LICENSE-2.0
10**
11** Unless required by applicable law or agreed to in writing, software
12** distributed under the License is distributed on an "AS IS" BASIS,
13** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14** See the License for the specific language governing permissions and
15** limitations under the License.
16*/
17-->
18<resources>
19    <!-- **************************************************************** -->
20    <!-- These are the attributes used in AndroidManifest.xml. -->
21    <!-- **************************************************************** -->
22    <eat-comment />
23
24    <!-- The overall theme to use for an activity.  Use with either the
25         application tag (to supply a default theme for all activities) or
26         the activity tag (to supply a specific theme for that activity).
27    
28         <p>This automatically sets
29         your activity's Context to use this theme, and may also be used
30         for "starting" animations prior to the activity being launched (to
31         better match what the activity actually looks like).  It is a reference
32         to a style resource defining the theme.  If not set, the default
33         system theme will be used. -->
34    <attr name="theme" format="reference" />
35
36    <!-- A user-legible name for the given item.  Use with the
37         application tag (to supply a default label for all application
38         components), or with the activity, receiver, service, or instrumentation
39         tag (to supply a specific label for that component).  It may also be
40         used with the intent-filter tag to supply a label to show to the
41         user when an activity is being selected based on a particular Intent.
42    
43         <p>The given label will be used wherever the user sees information
44         about its associated component; for example, as the name of a
45         main activity that is displayed in the launcher.  You should
46         generally set this to a reference to a string resource, so that
47         it can be localized, however it is also allowed to supply a plain
48         string for quick and dirty programming. -->
49    <attr name="label" format="reference|string" />
50    
51    <!-- A Drawable resource providing a graphical representation of its
52         associated item.  Use with the
53         application tag (to supply a default icon for all application
54         components), or with the activity, receiver, service, or instrumentation
55         tag (to supply a specific icon for that component).  It may also be
56         used with the intent-filter tag to supply an icon to show to the
57         user when an activity is being selected based on a particular Intent.
58    
59         <p>The given icon will be used to display to the user a graphical
60         representation of its associated component; for example, as the icon
61         for main activity that is displayed in the launcher.  This must be
62         a reference to a Drawable resource containing the image definition. -->
63    <attr name="icon" format="reference" />
64
65    <!-- Name of the activity to be launched to manage application's space on
66         device. The specified activity gets automatically launched when the
67         application's space needs to be managed and is usually invoked 
68         through user actions. Applications can thus provide their own custom
69         behavior for managing space for various scenarios like out of memory
70         conditions. This is an optional attribute and
71         applications can choose not to specify a default activity to 
72         manage space. -->
73    <attr name="manageSpaceActivity" format="string" />
74
75    <!-- Option to let applications specify that user data can/cannot be 
76         cleared. Some applications might not want to clear user data. Such
77         applications can explicitly set this value to false. This flag is
78         turned on by default unless explicitly set to false 
79         by applications. -->
80    <attr name="allowClearUserData" format="boolean" />
81    
82    <!-- Option to indicate this application is only for testing purposes.
83         For example, it may expose functionality or data outside of itself
84         that would cause a security hole, but is useful for testing.  This
85         kind of application can not be installed without the
86         INSTALL_ALLOW_TEST flag, which means only through adb install.  -->
87    <attr name="testOnly" format="boolean" />
88    
89    <!-- A unique name for the given item.  This must use a Java-style naming
90         convention to ensure the name is unique, for example
91         "com.mycompany.MyName". -->  
92    <attr name="name" format="string" />
93    
94    <!-- Specify a permission that a client is required to have in order to
95    	 use the associated object.  If the client does not hold the named
96    	 permission, its request will fail.  See the
97         <a href="{@docRoot}guide/topics/security/security.html">Security and Permissions</a>
98         document for more information on permissions. -->
99    <attr name="permission" format="string" />
100    
101    <!-- A specific {@link android.R.attr#permission} name for read-only
102         access to a {@link android.content.ContentProvider}.  See the
103         <a href="{@docRoot}guide/topics/security/security.html">Security and Permissions</a>
104         document for more information on permissions. -->
105    <attr name="readPermission" format="string" />
106    
107    <!-- A specific {@link android.R.attr#permission} name for write
108         access to a {@link android.content.ContentProvider}.  See the
109         <a href="{@docRoot}guide/topics/security/security.html">Security and Permissions</a>
110         document for more information on permissions. -->
111    <attr name="writePermission" format="string" />
112    
113    <!-- If true, the {@link android.content.Context#grantUriPermission
114         Context.grantUriPermission} or corresponding Intent flags can
115         be used to allow others to access specific URIs in the content
116         provider, even if they do not have an explicit read or write
117         permission.  If you are supporting this feature, you must be
118         sure to call {@link android.content.Context#revokeUriPermission
119         Context.revokeUriPermission} when URIs are deleted from your
120         provider.-->
121    <attr name="grantUriPermissions" format="boolean" />
122    
123    <!-- Characterizes the potential risk implied in a permission and
124         indicates the procedure the system should follow when determining
125         whether to grant the permission to an application requesting it. {@link
126         android.Manifest.permission Standard permissions} have a predefined and
127         permanent protectionLevel. If you are creating a custom permission in an
128         application, you can define a protectionLevel attribute with one of the
129         values listed below. If no protectionLevel is defined for a custom
130         permission, the system assigns the default ("normal"). -->
131    <attr name="protectionLevel">
132        <!-- A lower-risk permission that gives an application access to isolated
133             application-level features, with minimal risk to other applications,
134             the system, or the user. The system automatically grants this type
135             of permission to a requesting application at installation, without
136             asking for the user's explicit approval (though the user always
137             has the option to review these permissions before installing). -->
138        <enum name="normal" value="0" />
139        <!-- A higher-risk permission that would give a requesting application
140             access to private user data or control over the device that can
141             negatively impact the user.  Because this type of permission
142             introduces potential risk, the system may not automatically
143             grant it to the requesting application.  For example, any dangerous
144             permissions requested by an application may be displayed to the
145             user and require confirmation before proceeding, or some other
146             approach may be taken to avoid the user automatically allowing
147             the use of such facilities.  -->
148        <enum name="dangerous" value="1" />
149        <!-- A permission that the system is to grant only if the requesting
150             application is signed with the same certificate as the application
151             that declared the permission. If the certificates match, the system
152             automatically grants the permission without notifying the user or
153             asking for the user's explicit approval. -->
154        <enum name="signature" value="2" />
155        <!-- A permission that the system is to grant only to packages in the
156             Android system image <em>or</em> that are signed with the same
157             certificates. Please avoid using this option, as the
158             signature protection level should be sufficient for most needs and
159             works regardless of exactly where applications are installed.  This
160             permission is used for certain special situations where multiple
161             vendors have applications built in to a system image which need
162             to share specific features explicitly because they are being built
163             together. -->
164        <enum name="signatureOrSystem" value="3" />
165    </attr>
166    
167    <!-- Specified the name of a group that this permission is associated
168         with.  The group must have been defined with the
169         {@link android.R.styleable#AndroidManifestPermissionGroup permission-group} tag. -->
170    <attr name="permissionGroup" format="string" />
171    
172    <!-- Specify the name of a user ID that will be shared between multiple
173         packages.  By default, each package gets its own unique user-id.
174         By setting this value on two or more packages, each of these packages
175         will be given a single shared user ID, so they can for example run
176         in the same process.  Note that for them to actually get the same
177         user ID, they must also be signed with the same signature. -->
178    <attr name="sharedUserId" format="string" />
179    
180    <!-- Specify a label for the shared user UID of this package.  This is
181         only used if you have also used android:sharedUserId.  This must
182         be a reference to a string resource; it can not be an explicit
183         string. -->
184    <attr name="sharedUserLabel" format="reference" />
185    
186    <!-- Internal version code.  This is the number used to determine whether
187         one version is more recent than another: it has no other meaning than
188         that higher numbers are more recent.  You could use this number to
189         encode a "x.y" in the lower and upper 16 bits, make it a build
190         number, simply increase it by one each time a new version is
191         released, or define it however else you want, as long as each
192         successive version has a higher number.  This is not a version
193         number generally shown to the user, that is usually supplied 
194         with {@link android.R.attr#versionName}. -->
195    <attr name="versionCode" format="integer" />
196    
197    <!-- The text shown to the user to indicate the version they have.  This
198         is used for no other purpose than display to the user; the actual
199         significant version number is given by {@link android.R.attr#versionCode}. -->
200    <attr name="versionName" format="string" />
201    
202    <!-- Flag to control special persistent mode of an application.  This should
203         not normally be used by applications; it requires that the system keep
204         your application running at all times. -->
205    <attr name="persistent" format="boolean" />
206    
207    <!-- Flag indicating whether the application can be debugged, even when
208         running on a device that is running in user mode. -->
209    <attr name="debuggable" format="boolean" />
210    
211    <!-- Flag indicating whether the given application component is available
212         to other applications.  If false, it can only be accessed by
213         applications with its same user id (which usually means only by
214         code in its own package).  If true, it can be invoked by external
215         entities, though which ones can do so may be controlled through
216         permissions.  The default value is false for activity, receiver,
217         and service components that do not specify any intent filters; it
218         is true for activity, receiver, and service components that do
219         have intent filters (implying they expect to be invoked by others
220         who do not know their particular component name) and for all
221         content providers. -->
222    <attr name="exported" format="boolean" />
223    
224    <!-- Specify a specific process that the associated code is to run in.
225         Use with the application tag (to supply a default process for all
226         application components), or with the activity, receiver, service,
227         or provider tag (to supply a specific icon for that component).
228    
229         <p>Application components are normally run in a single process that
230         is created for the entire application.  You can use this tag to modify
231         where they run.  If the process name begins with a ':' character,
232         a new process private to that application will be created when needed
233         to run that component (allowing you to spread your application across
234         multiple processes).  If the process name begins with a lower-case
235         character, the component will be run in a global process of that name,
236         provided that you have permission to do so, allowing multiple
237         applications to share one process to reduce resource usage. -->
238    <attr name="process" format="string" />
239    
240    <!-- Specify a task name that activities have an "affinity" to.
241         Use with the application tag (to supply a default affinity for all
242         activities in the application), or with the activity tag (to supply
243         a specific affinity for that component).
244    
245         <p>The default value for this attribute is the same as the package
246         name, indicating that all activities in the manifest should generally
247         be considered a single "application" to the user.  You can use this
248         attribute to modify that behavior: either giving them an affinity
249         for another task, if the activities are intended to be part of that
250         task from the user's perspective, or using an empty string for
251         activities that have no affinity to a task. -->
252    <attr name="taskAffinity" format="string" />
253    
254    <!-- Specify that an activity can be moved out of a task it is in to
255         the task it has an affinity for when appropriate.  Use with the
256         application tag (to supply a default for all activities in the
257         application), or with an activity tag (to supply a specific
258         setting for that component).
259    
260         <p>Normally when an application is started, it is associated with
261         the task of the activity that started it and stays there for its
262         entire lifetime.  You can use the allowTaskReparenting feature to force an
263         activity to be re-parented to a different task when the task it is
264         in goes to the background.  Typically this is used to cause the
265         activities of an application to move back to the main task associated
266         with that application.  The activity is re-parented to the task
267         with the same {@link android.R.attr#taskAffinity} as it has. -->
268    <attr name="allowTaskReparenting" format="boolean" />
269    
270    <!-- Specify whether a component is allowed to have multiple instances
271         of itself running in different processes.  Use with the activity
272         and provider tags.
273    
274         <p>Normally the system will ensure that all instances of a particular
275         component are only running in a single process.  You can use this
276         attribute to disable that behavior, allowing the system to create
277         instances wherever they are used (provided permissions allow it).
278         This is most often used with content providers, so that instances
279         of a provider can be created in each client process, allowing them
280         to be used without performing IPC.  -->
281    <attr name="multiprocess" format="boolean" />
282    
283    <!-- Specify whether an activity should be finished when its task is
284         brought to the foreground by relaunching from the home screen.
285         
286         <p>If both this option and {@link android.R.attr#allowTaskReparenting} are
287         specified, the finish trumps the affinity: the affinity will be
288         ignored and the activity simply finished. -->
289    <attr name="finishOnTaskLaunch" format="boolean" />
290    
291    <!-- Specify whether an activity's task should be cleared when it
292         is re-launched from the home screen.  As a result, every time the
293         user starts the task, they will be brought to its root activity,
294         regardless of whether they used BACK or HOME to last leave it.
295         This flag only applies to activities that
296         are used to start the root of a new task.
297         
298         <p>An example of the use of this flag would be for the case where
299         a user launches activity A from home, and from there goes to
300         activity B.  They now press home, and then return to activity A.
301         Normally they would see activity B, since that is what they were
302         last doing in A's task.  However, if A has set this flag to true,
303         then upon going to the background all of the tasks on top of it (B
304         in this case) are removed, so when the user next returns to A they
305         will restart at its original activity.
306         
307         <p>When this option is used in conjunction with
308         {@link android.R.attr#allowTaskReparenting}, the allowTaskReparenting trumps the
309         clear.  That is, all activities above the root activity of the
310         task will be removed: those that have an affinity will be moved
311         to the task they are associated with, otherwise they will simply
312         be dropped as described here. -->
313    <attr name="clearTaskOnLaunch" format="boolean" />
314    
315    <!-- Specify whether an activity should be kept in its history stack.
316         If this attribute is set, then as soon as the user navigates away
317         from the activity it will be finished and they will no longer be
318         able to return to it. -->
319    <attr name="noHistory" format="boolean" />
320    
321    <!-- Specify whether an acitivty's task state should always be maintained
322         by the system, or if it is allowed to reset the task to its initial
323         state in certain situations.
324         
325         <p>Normally the system will reset a task (remove all activities from
326         the stack and reset the root activity) in certain situations when
327         the user re-selects that task from the home screen.  Typically this
328         will be done if the user hasn't visited that task for a certain
329         amount of time, such as 30 minutes.
330         
331         <p>By setting this attribute, the user will always return to your
332         task in its last state, regardless of how they get there.  This is
333         useful, for example, in an application like the web browser where there
334         is a lot of state (such as multiple open tabs) that the application
335         would not like to lose. -->
336    <attr name="alwaysRetainTaskState" format="boolean" />
337    
338    <!-- Indicates that an Activity does not need to have its freeze state
339         (as returned by {@link android.app.Activity#onSaveInstanceState}
340         retained in order to be restarted.  Generally you use this for activities
341         that do not store any state.  When this flag is set, if for some reason
342         the activity is killed before it has a chance to save its state,
343         then the system will not remove it from the activity stack like
344         it normally would.  Instead, the next time the user navigates to
345         it its {@link android.app.Activity#onCreate} method will be called
346         with a null icicle, just like it was starting for the first time.
347         
348         <p>This is used by the Home activity to make sure it does not get
349         removed if it crashes for some reason. -->
350    <attr name="stateNotNeeded" format="boolean" />
351
352    <!-- Indicates that an Activity should be excluded from the list of
353         recently launched activities. -->
354    <attr name="excludeFromRecents" format="boolean" />
355
356    <!-- Specify the authorities under which this content provider can be
357         found.  Multiple authorities may be supplied by separating them
358         with a semicolon.  Authority names should use a Java-style naming
359         convention (such as <code>com.google.provider.MyProvider</code>)
360         in order to avoid conflicts.  Typically this name is the same
361         as the class implementation describing the provider's data structure. -->
362    <attr name="authorities" format="string" />
363    
364    <!-- Flag indicating whether this content provider would like to
365         participate in data synchronization. -->
366    <attr name="syncable" format="boolean" />
367    
368    <!-- Specify the order in which content providers hosted by a process
369         are instantiated when that process is created.  Not needed unless
370         you have providers with dependencies between each other, to make
371         sure that they are created in the order needed by those dependencies.
372         The value is a simple integer, with higher numbers being
373         initialized first. -->
374    <attr name="initOrder" format="integer" />
375    
376    <!-- Specify the relative importance or ability in handling a particular
377         Intent.  For receivers, this controls the order in which they are
378         executed to receive a broadcast (note that for
379         asynchronous broadcasts, this order is ignored).  For activities,
380         this provides information about how good an activity is handling an
381         Intent; when multiple activities match an intent and have different
382         priorities, only those with the higher priority value will be
383         considered a match.
384         
385         <p>Only use if you really need to impose some specific
386         order in which the broadcasts are received, or want to forcibly
387         place an activity to always be preferred over others.  The value is a
388         single integer, with higher numbers considered to be better. -->
389    <attr name="priority" format="integer" />
390    
391    <!-- Specify how an activity should be launched.  See the
392         <a href="{@docRoot}guide/topics/fundamentals.html#acttask">Application Fundamentals</a>
393         documentation for important information on how these options impact
394         the behavior of your application.
395         
396         <p>If this attribute is not specified, <code>standard</code> launch
397         mode will be used.  Note that the particular launch behavior can
398         be changed in some ways at runtime through the
399         {@link android.content.Intent} flags
400         {@link android.content.Intent#FLAG_ACTIVITY_SINGLE_TOP},
401         {@link android.content.Intent#FLAG_ACTIVITY_NEW_TASK}, and
402         {@link android.content.Intent#FLAG_ACTIVITY_MULTIPLE_TASK}. -->
403    <attr name="launchMode">
404        <!-- The default mode, which will usually create a new instance of
405             the activity when it is started, though this behavior may change
406             with the introduction of other options such as
407             {@link android.content.Intent#FLAG_ACTIVITY_NEW_TASK
408             Intent.FLAG_ACTIVITY_NEW_TASK}. -->
409        <enum name="standard" value="0" />
410        <!-- If, when starting the activity, there is already an
411            instance of the same activity class in the foreground that is
412            interacting with the user, then
413            re-use that instance.  This existing instance will receive a call to
414            {@link android.app.Activity#onNewIntent Activity.onNewIntent()} with
415            the new Intent that is being started. -->
416        <enum name="singleTop" value="1" />
417        <!-- If, when starting the activity, there is already a task running
418            that starts with this activity, then instead of starting a new
419            instance the current task is brought to the front.  The existing
420            instance will receive a call to {@link android.app.Activity#onNewIntent
421            Activity.onNewIntent()}
422            with the new Intent that is being started, and with the
423            {@link android.content.Intent#FLAG_ACTIVITY_BROUGHT_TO_FRONT
424            Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT} flag set.  This is a superset
425            of the singleTop mode, where if there is already an instance
426            of the activity being started at the top of the stack, it will
427            receive the Intent as described there (without the
428            FLAG_ACTIVITY_BROUGHT_TO_FRONT flag set).  See the
429            <a href="{@docRoot}guide/topics/fundamentals.html#acttask">Application Fundamentals</a>
430            documentation for more details on tasks.-->
431        <enum name="singleTask" value="2" />
432        <!-- Only allow one instance of this activity to ever be 
433            running.  This activity gets a unique task with only itself running 
434            in it; if it is ever launched again with the same Intent, then that 
435            task will be brought forward and its 
436            {@link android.app.Activity#onNewIntent Activity.onNewIntent()}
437            method called.  If this 
438            activity tries to start a new activity, that new activity will be 
439            launched in a separate task.  See the
440            <a href="{@docRoot}guide/topics/fundamentals.html#acttask">Application Fundamentals</a>
441            documentation for more details on tasks. -->
442        <enum name="singleInstance" value="3" />
443    </attr>
444    
445    <!-- Specify the orientation an activity should be run in.  If not
446         specified, it will run in the current preferred orientation
447         of the screen. -->
448    <attr name="screenOrientation">
449        <!-- No preference specified: let the system decide the best
450             orientation.  This will either be the orientation selected
451             by the activity below, or the user's preferred orientation
452             if this activity is the bottom of a task. If the user
453             explicitly turned off sensor based orientation through settings
454             sensor based device rotation will be ignored. If not by default
455             sensor based orientation will be taken into account and the 
456             orientation will changed based on how the user rotates the device -->
457        <enum name="unspecified" value="-1" />
458        <!-- Would like to have the screen in a landscape orientation: that
459             is, with the display wider than it is tall. -->
460        <enum name="landscape" value="0" />
461        <!-- Would like to have the screen in a portrait orientation: that
462             is, with the display taller than it is wide. -->
463        <enum name="portrait" value="1" />
464        <!-- Use the user's current preferred orientation of the handset. -->
465        <enum name="user" value="2" />
466        <!-- Keep the screen in the same orientation as whatever is behind
467             this activity. -->
468        <enum name="behind" value="3" />
469        <!-- Orientation is determined by a physical orientation sensor:
470             the display will rotate based on how the user moves the device. -->
471        <enum name="sensor" value="4" />
472        <!-- Always ignore orientation determined by orientation sensor:
473             tthe display will not rotate when the user moves the device. -->
474        <enum name="nosensor" value="5" />
475    </attr>
476    
477    <!-- Specify one or more configuration changes that the activity will
478         handle itself.  If not specified, the activity will be restarted
479         if any of these configuration changes happen in the system.  Otherwise,
480         the activity will remain running and its
481         {@link android.app.Activity#onConfigurationChanged Activity.onConfigurationChanged}
482         method called with the new configuration.
483         
484         <p>Note that all of these configuration changes can impact the
485         resource values seen by the application, so you will generally need
486         to re-retrieve all resources (including view layouts, drawables, etc)
487         to correctly handle any configuration change.
488         
489         <p>These values must be kept in sync with those in
490         {@link android.content.pm.ActivityInfo} and
491         include/utils/ResourceTypes.h. -->
492    <attr name="configChanges">
493        <!-- The IMSI MCC has changed, that is a SIM has been detected and
494             updated the Mobile Country Code. -->
495        <flag name="mcc" value="0x0001" />
496        <!-- The IMSI MNC has changed, that is a SIM has been detected and
497             updated the Mobile Network Code. -->
498        <flag name="mnc" value="0x0002" />
499        <!-- The locale has changed, that is the user has selected a new
500             language that text should be displayed in. -->
501        <flag name="locale" value="0x0004" />
502        <!-- The touchscreen has changed.  Should never normally happen. -->
503        <flag name="touchscreen" value="0x0008" />
504        <!-- The keyboard type has changed, for example the user has plugged
505             in an external keyboard. -->
506        <flag name="keyboard" value="0x0010" />
507        <!-- The keyboard or navigation accessibility has changed, for example
508             the user has slid the keyboard out to expose it.  Note that
509             inspite of its name, this applied to any accessibility: keyboard
510             or navigation. -->
511        <flag name="keyboardHidden" value="0x0020" />
512        <!-- The navigation type has changed.  Should never normally happen. -->
513        <flag name="navigation" value="0x0040" />
514        <!-- The screen orientation has changed, that is the user has
515             rotated the device. -->
516        <flag name="orientation" value="0x0080" />
517        <!-- The screen orientation has changed, that is the user has
518             rotated the device. -->
519        <flag name="screenLayout" value="0x0100" />
520        <!-- The font scaling factor has changed, that is the user has
521             selected a new global font size. -->
522        <flag name="fontScale" value="0x40000000" />
523    </attr>
524    
525    <!-- A longer descriptive text about a particular application or
526         permission that can be granted.  This must be a reference 
527         to a string resource; unlike
528    	 the {@link android.R.attr#label} attribute, this can not be a
529    	 raw string. -->
530    <attr name="description" format="reference" />
531    
532    <!-- The name of the application package that an Instrumentation object
533         will run against. -->
534    <attr name="targetPackage" format="string" />
535    
536    <!-- Flag indicating that an Instrumentation class wants to take care
537         of starting/stopping profiling itself, rather than relying on
538         the default behavior of profiling the complete time it is running.
539         This allows it to target profiling data at a specific set of
540         operations. -->
541    <attr name="handleProfiling" format="boolean" />
542    
543    <!-- Flag indicating that an Instrumentation class should be run as a
544         functional test. -->
545    <attr name="functionalTest" format="boolean" />
546
547    <!-- The touch screen type used by an application. -->
548    <attr name="reqTouchScreen">
549        <enum name="undefined" value="0" />
550        <enum name="notouch" value="1" />
551        <enum name="stylus" value="2" />
552        <enum name="finger" value="3" />
553    </attr>
554
555    <!-- The input method preferred by an application. -->
556    <attr name="reqKeyboardType">
557        <enum name="undefined" value="0" />
558        <enum name="nokeys" value="1" />
559        <enum name="qwerty" value="2" />
560        <enum name="twelvekey" value="3" />
561    </attr>
562
563    <!-- Application's requirement for a hard keyboard -->
564    <attr name="reqHardKeyboard" format="boolean" />
565
566    <!-- The navigation device preferred by an application. -->
567    <attr name="reqNavigation">
568        <enum name="undefined" value="0" />
569        <enum name="nonav" value="1" />
570        <enum name="dpad" value="2" />
571        <enum name="trackball" value="3" />
572        <enum name="wheel" value="4" />
573    </attr>
574
575    <!-- Application's requirement for five way navigation -->
576    <attr name="reqFiveWayNav" format="boolean" />
577
578    <!-- The name of the class implementing <code>BackupAgent</code> to manage
579         backup and restore of the application's settings to external storage. -->
580    <attr name="backupAgent" format="string" />
581
582    <!-- This is not the attribute you are looking for. -->
583    <attr name="allowBackup" format="boolean" />
584
585    <!-- Whether the application in question should be terminated after its
586         settings have been restored.  The default is to do so. -->
587    <attr name="killAfterRestore" format="boolean" />
588
589    <!-- Whether the application needs to have its own Application subclass
590         active during restore.  The default is to run restore with a minimal
591         Application class to avoid interference with application logic. -->
592    <attr name="restoreNeedsApplication" format="boolean" />
593
594    <!-- The <code>manifest</code> tag is the root of an
595         <code>AndroidManifest.xml</code> file,
596         describing the contents of an Android package (.apk) file.  One
597         attribute must always be supplied: <code>package</code> gives a
598         unique name for the package, using a Java-style naming convention
599         to avoid name collisions.  For example, applications published
600         by Google could have names of the form
601         <code>com.google.app.<em>appname</em></code>
602         
603         <p>Inside of the manifest tag, may appear the following tags
604         in any order: {@link #AndroidManifestPermission permission},
605         {@link #AndroidManifestPermissionGroup permission-group},
606         {@link #AndroidManifestPermissionTree permission-tree},
607         {@link #AndroidManifestUsesSdk uses-sdk},
608         {@link #AndroidManifestUsesPermission uses-permission},
609         {@link #AndroidManifestUsesConfiguration uses-configuration},
610         {@link #AndroidManifestApplication application},
611         {@link #AndroidManifestInstrumentation instrumentation},
612         {@link #AndroidManifestUsesFeature uses-feature}.  -->
613    <declare-styleable name="AndroidManifest">
614        <attr name="versionCode" />
615        <attr name="versionName" />
616        <attr name="sharedUserId" />
617        <attr name="sharedUserLabel" />
618    </declare-styleable>
619    
620    <!-- The <code>application</code> tag describes application-level components
621         contained in the package, as well as general application
622         attributes.  Many of the attributes you can supply here (such
623         as theme, label, icon, permission, process, taskAffinity,
624         and allowTaskReparenting) serve
625         as default values for the corresponding attributes of components
626         declared inside of the application.
627         
628         <p>Inside of this element you specify what the application contains,
629         using the elements {@link #AndroidManifestProvider provider},
630         {@link #AndroidManifestService service},
631         {@link #AndroidManifestReceiver receiver},
632         {@link #AndroidManifestActivity activity},
633         {@link #AndroidManifestActivityAlias activity-alias}, and
634         {@link #AndroidManifestUsesLibrary uses-library}.  The application tag
635         appears as a child of the root {@link #AndroidManifest manifest} tag. -->
636    <declare-styleable name="AndroidManifestApplication" parent="AndroidManifest">
637        <!-- An optional name of a class implementing the overall
638             {@link android.app.Application} for this package.  When the
639             process for your package is started, this class is instantiated
640             before any of the other application components.  Note that this
641             is not required, and in fact most applications will probably
642             not need it. -->
643        <attr name="name" />
644        <attr name="theme" />
645        <attr name="label" />
646        <attr name="icon" />
647        <attr name="description" />
648        <attr name="permission" />
649        <attr name="process" />
650        <attr name="taskAffinity" />
651        <attr name="allowTaskReparenting" />
652        <!-- Indicate whether this application contains code.  If set to false,
653             there is no code associated with it and thus the system will not
654             try to load its code when launching components.  The default is true
655             for normal behavior. -->
656        <attr name="hasCode" format="boolean" />
657        <attr name="persistent" />
658        <!-- Specify whether the components in this application are enabled or not (i.e. can be
659             instantiated by the system).
660             If "false", it overrides any component specific values (a value of "true" will not
661             override the component specific values). -->
662        <attr name="enabled" />
663        <attr name="debuggable" />
664        <!-- Name of activity to be launched for managing the application's space on the device. -->
665        <attr name="manageSpaceActivity" />
666        <attr name="allowClearUserData" />
667        <attr name="testOnly" />
668        <attr name="backupAgent" />
669        <attr name="allowBackup" />
670        <attr name="killAfterRestore" />
671        <attr name="restoreNeedsApplication" />
672    </declare-styleable>
673    
674    <!-- The <code>permission</code> tag declares a security permission that can be
675         used to control access from other packages to specific components or
676         features in your package (or other packages).  See the
677         <a href="{@docRoot}guide/topics/security/security.html">Security and Permissions</a>
678         document for more information on permissions.
679         
680         <p>This appears as a child tag of the root
681         {@link #AndroidManifest manifest} tag. -->
682    <declare-styleable name="AndroidManifestPermission" parent="AndroidManifest">
683        <!-- Required public name of the permission, which other components and
684        packages will use when referring to this permission.  This is a string using
685        Java-style scoping to ensure it is unique.  The prefix will often
686        be the same as our overall package name, for example
687        "com.mycompany.android.myapp.SomePermission". -->
688        <attr name="name" />
689        <attr name="label" />
690        <attr name="icon" />
691        <attr name="permissionGroup" />
692        <attr name="description" />
693        <attr name="protectionLevel" />
694    </declare-styleable>
695    
696    <!-- The <code>permission-group</code> tag declares a logical grouping of
697         related permissions.
698         
699         <p>Note that this tag does not declare a permission itself, only
700         a namespace in which further permissions can be placed.  See
701         the {@link #AndroidManifestPermission &lt;permission&gt;} tag for
702         more information.
703         
704         <p>This appears as a child tag of the root
705         {@link #AndroidManifest manifest} tag. -->
706    <declare-styleable name="AndroidManifestPermissionGroup" parent="AndroidManifest">
707        <!-- Required public name of the permission group, permissions will use
708        to specify the group they are in.  This is a string using
709        Java-style scoping to ensure it is unique.  The prefix will often
710        be the same as our overall package name, for example
711        "com.mycompany.android.myapp.SomePermission". -->
712        <attr name="name" />
713        <attr name="label" />
714        <attr name="icon" />
715        <attr name="description" />
716    </declare-styleable>
717    
718    <!-- The <code>permission-tree</code> tag declares the base of a tree of
719         permission values: it declares that this package has ownership of
720         the given permission name, as well as all names underneath it
721         (separated by '.').  This allows you to use the
722         {@link android.content.pm.PackageManager#addPermission
723         PackageManager.addPermission()} method to dynamically add new
724         permissions under this tree.
725         
726         <p>Note that this tag does not declare a permission itself, only
727         a namespace in which further permissions can be placed.  See
728         the {@link #AndroidManifestPermission &lt;permission&gt;} tag for
729         more information.
730         
731         <p>This appears as a child tag of the root
732         {@link #AndroidManifest manifest} tag. -->
733    <declare-styleable name="AndroidManifestPermissionTree" parent="AndroidManifest">
734        <!-- Required public name of the permission tree, which is the base name
735        of all permissions under it.  This is a string using
736        Java-style scoping to ensure it is unique.  The prefix will often
737        be the same as our overall package name, for example
738        "com.mycompany.android.myapp.SomePermission".  A permission tree name
739        must have more than two segments in its path; that is,
740        "com.me.foo" is okay, but not "com.me" or "com". -->
741        <attr name="name" />
742        <attr name="label" />
743        <attr name="icon" />
744    </declare-styleable>
745    
746    <!-- The <code>uses-permission</code> tag requests a
747         {@link #AndroidManifestPermission &lt;permission&gt;} that the containing
748         package must be granted in order for it to operate correctly.
749         See the <a href="{@docRoot}guide/topics/security/security.html">Security and Permissions</a>
750         document for more information on permissions.  Also available is a
751         {@link android.Manifest.permission list of permissions} included
752         with the base platform.
753         
754         <p>This appears as a child tag of the root
755         {@link #AndroidManifest manifest} tag. -->
756    <declare-styleable name="AndroidManifestUsesPermission" parent="AndroidManifest">
757        <!-- Required name of the permission you use, as published with the
758        corresponding name attribute of a
759        {@link android.R.styleable#AndroidManifestPermission &lt;permission&gt;}
760        tag; often this is one of the {@link android.Manifest.permission standard
761        system permissions}. -->
762        <attr name="name" />
763    </declare-styleable>
764
765    <!-- The <code>uses-configuration</code> tag specifies
766         a specific hardware configuration value used by the application.
767         For example an application might specify that it requires
768         a physical keyboard or a particular navigation method like
769         trackball. Multiple such attribute values can be specified by the
770         application.
771
772         <p>This appears as a child tag of the root
773         {@link #AndroidManifest manifest} tag. -->
774    <declare-styleable name="AndroidManifestUsesConfiguration" parent="AndroidManifest">
775        <!-- The type of touch screen used by an application. -->
776        <attr name="reqTouchScreen" />
777        <attr name="reqKeyboardType" />
778        <attr name="reqHardKeyboard" />
779        <attr name="reqNavigation" />
780        <attr name="reqFiveWayNav" />
781    </declare-styleable>
782
783    <!-- The <code>uses-feature</code> tag specifies
784         a specific feature used by the application.
785         For example an application might specify that it requires
786         specific version of open gl. Multiple such attribute
787         values can be specified by the application.
788
789         <p>This appears as a child tag of the root
790         {@link #AndroidManifest manifest} tag. -->
791    <declare-styleable name="AndroidManifestUsesFeature" parent="AndroidManifest">
792        <!-- The GLES driver version number needed by an application.
793             The higher 16 bits represent the major number and the lower 16 bits
794             represent the minor number. For example for GL 1.2 referring to
795             0x00000102, the actual value should be set as 0x00010002. -->
796        <attr name="glEsVersion" format="integer"/>
797        <!--  The name of the feature that is being used. -->
798        <attr name="name" />
799        <!--  Specify whether this feature is required for the application.
800              The default is true, meaning the application requires the
801              feature, and does not want to be installed on devices that
802              don't support it.  If you set this to false, then this will
803              not impose a restriction on where the application can be
804              installed. -->
805        <attr name="required" format="boolean" />
806    </declare-styleable>
807
808    <!-- The <code>uses-sdk</code> tag describes the SDK features that the
809         containing package must be running on to operate correctly.
810         
811         <p>This appears as a child tag of the root
812         {@link #AndroidManifest manifest} tag. -->
813    <declare-styleable name="AndroidManifestUsesSdk" parent="AndroidManifest">
814        <!-- This is the minimum SDK version number that the application
815             requires.  This number is an abstract integer, from the list
816             in {@link android.os.Build.VERSION_CODES}  If
817             not supplied, the application will work on any SDK.  This
818             may also be string (such as "Donut") if the application was built
819             against a development branch, in which case it will only work against
820             the development builds. -->
821        <attr name="minSdkVersion" format="integer|string" />
822        <!-- This is the SDK version number that the application is targeting.
823             It is able to run on older versions (down to minSdkVersion), but
824             was explicitly tested to work with the version specified here.
825             Specifying this version allows the platform to disable compatibility
826             code that are not required or enable newer features that are not
827             available to older applications.  This may also be a string
828             (such as "Donut") if this is built against a development
829             branch, in which case minSdkVersion is also forced to be that
830             string. -->
831        <attr name="targetSdkVersion" format="integer|string" />
832        <!-- This is the maximum SDK version number that an application works
833             on.  You can use this to ensure your application is filtered out
834             of later versions of the platform when you know you have
835             incompatibility with them. -->
836        <attr name="maxSdkVersion" format="integer" />
837    </declare-styleable>
838    
839    <!-- The <code>uses-libraries</code> specifies a shared library that this
840         package requires to be linked against.  Specifying this flag tells the
841         system to include this library's code in your class loader.
842         
843         <p>This appears as a child tag of the
844         {@link #AndroidManifestApplication application} tag. -->
845    <declare-styleable name="AndroidManifestUsesLibrary" parent="AndroidManifestApplication">
846        <!-- Required name of the library you use. -->
847        <attr name="name" />
848        <!--  Specify whether this library is required for the application.
849              The default is true, meaning the application requires the
850              library, and does not want to be installed on devices that
851              don't support it.  If you set this to false, then this will
852              allow the application to be installed even if the library
853              doesn't exist, and you will need to check for its presence
854              dynamically at runtime. -->
855        <attr name="required" />
856    </declare-styleable>
857    
858    <!-- The <code>supports-screens</code> specifies the screen dimensions an
859         application supports.  By default a modern application supports all
860         screen sizes and must explicitly disable certain screen sizes here;
861         older applications are assumed to only support the traditional normal
862         (HVGA) screen size.  Note that screen size is a separate axis from
863         density, and is determined as the available pixels to an application
864         after density scaling has been applied.
865         
866         <p>This appears as a child tag of the
867         {@link #AndroidManifest manifest} tag. -->
868    <declare-styleable name="AndroidManifestSupportsScreens" parent="AndroidManifest">
869        <!-- Indicates whether the application supports smaller screen form-factors.
870             A small screen is defined as one with a smaller aspect ratio than
871             the traditional HVGA screen; that is, for a portrait screen, less
872             tall than an HVGA screen.  In practice, this means a QVGA low
873             density or VGA high density screen.  An application that does
874             not support small screens <em>will not be available</em> for
875             small screen devices, since there is little the platform can do
876             to make such an application work on a smaller screen. -->
877        <attr name="smallScreens" format="boolean" />
878        <!-- Indicates whether an application supports the normal screen
879             form-factors.  Traditionally this is an HVGA normal density
880             screen, but WQVGA low density and WVGA high density are also
881             considered to be normal.  This attribute is true by default,
882             and applications currently should leave it that way. -->
883        <attr name="normalScreens" format="boolean" />
884        <!-- Indicates whether the application supports larger screen form-factors.
885             A large screen is defined as a screen that is significantly larger
886             than a normal phone screen, and thus may require some special care
887             on the application's part to make good use of it.  An example would
888             be a VGA <em>normal density</em> screen, though even larger screens
889             are certainly possible.  An application that does not support
890             large screens will be placed as a postage stamp on such a
891             screen, so that it retains the dimensions it was originally
892             designed for. -->
893        <attr name="largeScreens" format="boolean" />
894        <!-- Indicates whether the application can resize itself to newer
895             screen sizes.  This is mostly used to distinguish between old
896             applications that may not be compatible with newly introduced
897             screen sizes and newer applications that should be; it will be
898             set for you automatically based on whether you are targeting
899             a newer platform that supports more screens. -->
900        <attr name="resizeable" format="boolean" />
901        <!-- Indicates whether the application can accommodate any screen
902             density.  Older applications are assumed to not be able to,
903             new ones able to.  You can explicitly supply your abilities
904             here. -->
905        <attr name="anyDensity" format="boolean" />
906    </declare-styleable>
907
908    <!-- Private tag to declare system protected broadcast actions.
909
910         <p>This appears as a child tag of the root
911         {@link #AndroidManifest manifest} tag. -->
912    <declare-styleable name="AndroidManifestProtectedBroadcast" parent="AndroidManifest">
913        <attr name="name" />
914    </declare-styleable>
915
916    <!-- The <code>provider</code> tag declares a
917         {@link android.content.ContentProvider} class that is available
918         as part of the package's application components, supplying structured
919         access to data managed by the application.
920         
921         <p>This appears as a child tag of the
922         {@link #AndroidManifestApplication application} tag. -->
923    <declare-styleable name="AndroidManifestProvider" parent="AndroidManifestApplication">
924        <!-- Required name of the class implementing the provider, deriving from
925            {@link android.content.ContentProvider}.  This is a fully
926            qualified class name (i.e., com.mycompany.myapp.MyProvider); as a
927            short-hand if the first character of the class
928            is a period then it is appended to your package name. -->
929        <attr name="name" />
930        <attr name="label" />
931        <attr name="icon" />
932        <attr name="process" />
933        <attr name="authorities" />
934        <attr name="syncable" />
935        <attr name="readPermission" />
936        <attr name="writePermission" />
937        <attr name="grantUriPermissions" />
938        <attr name="permission" />
939        <attr name="multiprocess" />
940        <attr name="initOrder" />
941        <!-- Specify whether this provider is enabled or not (i.e. can be instantiated by the system).
942             It can also be specified for an application as a whole, in which case a value of "false"
943             will override any component specific values (a value of "true" will not override the
944             component specific values). -->
945        <attr name="enabled" />
946        <attr name="exported" />
947    </declare-styleable>
948    
949    <!-- Attributes that can be supplied in an AndroidManifest.xml
950         <code>grant-uri-permission</code> tag, a child of the
951         {@link #AndroidManifestProvider provider} tag, describing a specific
952         URI path that can be granted as a permission.  This tag can be
953         specified multiple time to supply multiple paths. -->
954    <declare-styleable name="AndroidManifestGrantUriPermission"  parent="AndroidManifestProvider">
955        <!-- Specify a URI path that must exactly match, as per
956             {@link android.os.PatternMatcher} with
957             {@link android.os.PatternMatcher#PATTERN_LITERAL}. -->
958        <attr name="path" format="string" />
959        <!-- Specify a URI path that must be a prefix to match, as per
960             {@link android.os.PatternMatcher} with
961             {@link android.os.PatternMatcher#PATTERN_PREFIX}. -->
962        <attr name="pathPrefix" format="string" />
963        <!-- Specify a URI path that matches a simple pattern, as per
964             {@link android.os.PatternMatcher} with
965             {@link android.os.PatternMatcher#PATTERN_SIMPLE_GLOB}. 
966             Note that because '\' is used as an escape character when
967             reading the string from XML (before it is parsed as a pattern),
968             you will need to double-escape: for example a literal "*" would
969             be written as "\\*" and a literal "\" would be written as
970             "\\\\".  This is basically the same as what you would need to
971             write if constructing the string in Java code. -->
972        <attr name="pathPattern" format="string" />
973    </declare-styleable>
974    
975    <!-- Attributes that can be supplied in an AndroidManifest.xml
976         <code>path-permission</code> tag, a child of the
977         {@link #AndroidManifestProvider provider} tag, describing a permission
978         that allows access to a specific path in the provider.  This tag can be
979         specified multiple time to supply multiple paths. -->
980    <declare-styleable name="AndroidManifestPathPermission"  parent="AndroidManifestProvider">
981        <attr name="path" />
982        <attr name="pathPrefix" />
983        <attr name="pathPattern" />
984        <attr name="permission" />
985        <attr name="readPermission" />
986        <attr name="writePermission" />
987    </declare-styleable>
988    
989    <!-- The <code>service</code> tag declares a
990         {@link android.app.Service} class that is available
991         as part of the package's application components, implementing
992         long-running background operations or a rich communication API
993         that can be called by other packages.
994         
995         <p>Zero or more {@link #AndroidManifestIntentFilter intent-filter}
996         tags can be included inside of a service, to specify the Intents
997         that can connect with it.  If none are specified, the service can
998         only be accessed by direct specification of its class name.
999         The service tag appears as a child tag of the
1000         {@link #AndroidManifestApplication application} tag. -->
1001    <declare-styleable name="AndroidManifestService" parent="AndroidManifestApplication">
1002        <!-- Required name of the class implementing the service, deriving from
1003            {@link android.app.Service}.  This is a fully
1004            qualified class name (i.e., com.mycompany.myapp.MyService); as a
1005            short-hand if the first character of the class
1006            is a period then it is appended to your package name. -->
1007        <attr name="name" />
1008        <attr name="label" />
1009        <attr name="icon" />
1010        <attr name="permission" />
1011        <attr name="process" />
1012        <!-- Specify whether the service is enabled or not (i.e. can be instantiated by the system).
1013             It can also be specified for an application as a whole, in which case a value of "false"
1014             will override any component specific values (a value of "true" will not override the
1015             component specific values). -->
1016        <attr name="enabled" />
1017        <attr name="exported" />
1018    </declare-styleable>
1019    
1020    <!-- The <code>receiver</code> tag declares an
1021         {@link android.content.BroadcastReceiver} class that is available
1022         as part of the package's application components, allowing the
1023         application to receive actions or data broadcast by other
1024         applications even if it is not currently running.
1025         
1026         <p>Zero or more {@link #AndroidManifestIntentFilter intent-filter}
1027         tags can be included inside of a receiver, to specify the Intents
1028         it will receive.  If none are specified, the receiver will only
1029         be run when an Intent is broadcast that is directed at its specific
1030         class name.  The receiver tag appears as a child tag of the
1031         {@link #AndroidManifestApplication application} tag. -->
1032    <declare-styleable name="AndroidManifestReceiver" parent="AndroidManifestApplication">
1033        <!-- Required name of the class implementing the receiver, deriving from
1034            {@link android.content.BroadcastReceiver}.  This is a fully
1035            qualified class name (i.e., com.mycompany.myapp.MyReceiver); as a
1036            short-hand if the first character of the class
1037            is a period then it is appended to your package name. -->
1038        <attr name="name" />
1039        <attr name="label" />
1040        <attr name="icon" />
1041        <attr name="permission" />
1042        <attr name="process" />
1043        <!-- Specify whether the receiver is enabled or not (i.e. can be instantiated by the system).
1044             It can also be specified for an application as a whole, in which case a value of "false"
1045             will override any component specific values (a value of "true" will not override the
1046             component specific values). -->
1047        <attr name="enabled" />
1048        <attr name="exported" />
1049    </declare-styleable>
1050    
1051    <!-- The <code>activity</code> tag declares an
1052         {@link android.app.Activity} class that is available
1053         as part of the package's application components, implementing
1054         a part of the application's user interface.
1055         
1056         <p>Zero or more {@link #AndroidManifestIntentFilter intent-filter}
1057         tags can be included inside of an activity, to specify the Intents
1058         that it can handle.  If none are specified, the activity can
1059         only be started through direct specification of its class name.
1060         The activity tag appears as a child tag of the
1061         {@link #AndroidManifestApplication application} tag. -->
1062    <declare-styleable name="AndroidManifestActivity" parent="AndroidManifestApplication">
1063        <!-- Required name of the class implementing the activity, deriving from
1064            {@link android.app.Activity}.  This is a fully
1065            qualified class name (i.e., com.mycompany.myapp.MyActivity); as a
1066            short-hand if the first character of the class
1067            is a period then it is appended to your package name. -->
1068        <attr name="name" />
1069        <attr name="theme" />
1070        <attr name="label" />
1071        <attr name="icon" />
1072        <attr name="launchMode" />
1073        <attr name="screenOrientation" />
1074        <attr name="configChanges" />
1075        <attr name="permission" />
1076        <attr name="multiprocess" />
1077        <attr name="process" />
1078        <attr name="taskAffinity" />
1079        <attr name="allowTaskReparenting" />
1080        <attr name="finishOnTaskLaunch" />
1081        <attr name="clearTaskOnLaunch" />
1082        <attr name="noHistory" />
1083        <attr name="alwaysRetainTaskState" />
1084        <attr name="stateNotNeeded" />
1085        <attr name="excludeFromRecents" />
1086        <!-- Specify whether the activity is enabled or not (i.e. can be instantiated by the system).
1087             It can also be specified for an application as a whole, in which case a value of "false"
1088             will override any component specific values (a value of "true" will not override the
1089             component specific values). -->
1090        <attr name="enabled" />
1091        <attr name="exported" />
1092        <!-- Specify the default soft-input mode for the main window of
1093             this activity.  A value besides "unspecified" here overrides
1094             any value in the theme. -->
1095        <attr name="windowSoftInputMode" />
1096    </declare-styleable>
1097    
1098    <!-- The <code>activity-alias</code> tag declares a new
1099         name for an existing {@link #AndroidManifestActivity activity}
1100         tag.
1101         
1102         <p>Zero or more {@link #AndroidManifestIntentFilter intent-filter}
1103         tags can be included inside of an activity-alias, to specify the Intents
1104         that it can handle.  If none are specified, the activity can
1105         only be started through direct specification of its class name.
1106         The activity-alias tag appears as a child tag of the
1107         {@link #AndroidManifestApplication application} tag. -->
1108    <declare-styleable name="AndroidManifestActivityAlias" parent="AndroidManifestApplication">
1109        <!-- Required name of the class implementing the activity, deriving from
1110            {@link android.app.Activity}.  This is a fully
1111            qualified class name (i.e., com.mycompany.myapp.MyActivity); as a
1112            short-hand if the first character of the class
1113            is a period then it is appended to your package name. -->
1114        <attr name="name" />
1115        <!-- The name of the activity this alias should launch.  The activity
1116             must be in the same manifest as the alias, and have been defined
1117             in that manifest before the alias here.  This must use a Java-style
1118             naming convention to ensure the name is unique, for example
1119             "com.mycompany.MyName". -->  
1120        <attr name="targetActivity" format="string" />
1121        <attr name="label" />
1122        <attr name="icon" />
1123        <attr name="permission" />
1124        <!-- Specify whether the activity-alias is enabled or not (i.e. can be instantiated by the system).
1125             It can also be specified for an application as a whole, in which case a value of "false"
1126             will override any component specific values (a value of "true" will not override the
1127             component specific values). -->
1128        <attr name="enabled" />
1129        <attr name="exported" />
1130    </declare-styleable>
1131    
1132    <!-- The <code>meta-data</code> tag is used to attach additional
1133         arbitrary data to an application component.  The data can later
1134         be retrieved programmatically from the
1135         {@link android.content.pm.ComponentInfo#metaData
1136         ComponentInfo.metaData} field.  There is no meaning given to this
1137         data by the system.  You may supply the data through either the
1138         <code>value</code> or <code>resource</code> attribute; if both
1139         are given, then <code>resource</code> will be used.
1140         
1141         <p>It is highly recommended that you avoid supplying related data as
1142         multiple separate meta-data entries.  Instead, if you have complex
1143         data to associate with a component, then use the <code>resource</code>
1144         attribute to assign an XML resource that the client can parse to
1145         retrieve the complete data. -->
1146    <declare-styleable name="AndroidManifestMetaData"
1147         parent="AndroidManifestApplication
1148                 AndroidManifestActivity
1149                 AndroidManifestReceiver
1150                 AndroidManifestProvider
1151                 AndroidManifestService
1152                 AndroidManifestPermission
1153                 AndroidManifestPermissionGroup
1154                 AndroidManifestInstrumentation">
1155        <attr name="name" />
1156        <!-- Concrete value to assign to this piece of named meta-data.
1157             The data can later be retrieved from the meta data Bundle
1158             through {@link android.os.Bundle#getString Bundle.getString},
1159             {@link android.os.Bundle#getInt Bundle.getInt},
1160             {@link android.os.Bundle#getBoolean Bundle.getBoolean},
1161             or {@link android.os.Bundle#getFloat Bundle.getFloat} depending
1162             on the type used here. -->
1163        <attr name="value" format="string|integer|color|float|boolean" />
1164        <!-- Resource identifier to assign to this piece of named meta-data.
1165             The resource identifier can later be retrieved from the meta data
1166             Bundle through {@link android.os.Bundle#getInt Bundle.getInt}. -->
1167        <attr name="resource" format="reference" />
1168    </declare-styleable>
1169    
1170    <!-- The <code>intent-filter</code> tag is used to construct an
1171         {@link android.content.IntentFilter} object that will be used
1172         to determine which component can handle a particular
1173         {@link android.content.Intent} that has been given to the system.
1174         It can be used as a child of the
1175         {@link #AndroidManifestActivity activity},
1176         {@link #AndroidManifestReceiver receiver} and 
1177         {@link #AndroidManifestService service}
1178         tags.
1179         
1180         <p> Zero or more {@link #AndroidManifestAction action},
1181         {@link #AndroidManifestCategory category}, and/or
1182         {@link #AndroidManifestData data} tags should be
1183         included inside to describe the contents of the filter.
1184         
1185         <p> The optional label and icon attributes here are used with
1186         an activity to supply an alternative description of that activity
1187         when it is being started through an Intent matching this filter. -->
1188    <declare-styleable name="AndroidManifestIntentFilter"
1189         parent="AndroidManifestActivity AndroidManifestReceiver AndroidManifestService">
1190        <attr name="label" />
1191        <attr name="icon" />
1192        <attr name="priority" />
1193    </declare-styleable>
1194    
1195    <!-- Attributes that can be supplied in an AndroidManifest.xml
1196         <code>action</code> tag, a child of the
1197         {@link #AndroidManifestIntentFilter intent-filter} tag.
1198         See {@link android.content.IntentFilter#addAction} for
1199         more information. -->
1200    <declare-styleable name="AndroidManifestAction" parent="AndroidManifestIntentFilter">
1201        <!-- The name of an action that is handled, using the Java-style
1202             naming convention.  For example, to support
1203             {@link android.content.Intent#ACTION_VIEW Intent.ACTION_VIEW}
1204             you would put <code>android.intent.action.VIEW</code> here.
1205             Custom actions should generally use a prefix matching the
1206             package name. -->
1207        <attr name="name" />
1208    </declare-styleable>
1209    
1210    <!-- Attributes that can be supplied in an AndroidManifest.xml
1211         <code>data</code> tag, a child of the
1212         {@link #AndroidManifestIntentFilter intent-filter} tag, describing
1213         the types of data that match.  This tag can be specified multiple
1214         times to supply multiple data options, as described in the
1215         {@link android.content.IntentFilter} class.  Note that all such
1216         tags are adding options to the same IntentFilter so that, for example,
1217         <code>&lt;data android:scheme="myscheme" android:host="me.com" /&gt;</code>
1218         is equivalent to <code>&lt;data android:scheme="myscheme" /&gt;
1219         &lt;data android:host="me.com" /&gt;</code>. -->
1220    <declare-styleable name="AndroidManifestData" parent="AndroidManifestIntentFilter">
1221        <!-- Specify a MIME type that is handled, as per
1222             {@link android.content.IntentFilter#addDataType
1223             IntentFilter.addDataType()}.
1224             <p><em>Note: MIME type matching in the Android framework is
1225             case-sensitive, unlike formal RFC MIME types.  As a result,
1226             MIME types here should always use lower case letters.</em></p> -->
1227        <attr name="mimeType" format="string" />
1228        <!-- Specify a URI scheme that is handled, as per
1229             {@link android.content.IntentFilter#addDataScheme
1230             IntentFilter.addDataScheme()}.
1231             <p><em>Note: scheme matching in the Android framework is
1232             case-sensitive, unlike the formal RFC.  As a result,
1233             schemes here should always use lower case letters.</em></p> -->
1234        <attr name="scheme" format="string" />
1235        <!-- Specify a URI authority host that is handled, as per
1236             {@link android.content.IntentFilter#addDataAuthority
1237             IntentFilter.addDataAuthority()}.
1238             <p><em>Note: host name matching in the Android framework is
1239             case-sensitive, unlike the formal RFC.  As a result,
1240             host names here should always use lower case letters.</em></p> -->
1241        <attr name="host" format="string" />
1242        <!-- Specify a URI authority port that is handled, as per
1243             {@link android.content.IntentFilter#addDataAuthority
1244             IntentFilter.addDataAuthority()}.  If a host is supplied
1245             but not a port, any port is matched. -->
1246        <attr name="port" format="string" />
1247        <!-- Specify a URI path that must exactly match, as per
1248             {@link android.content.IntentFilter#addDataPath
1249             IntentFilter.addDataAuthority()} with
1250             {@link android.os.PatternMatcher#PATTERN_LITERAL}. -->
1251        <attr name="path" />
1252        <!-- Specify a URI path that must be a prefix to match, as per
1253             {@link android.content.IntentFilter#addDataPath
1254             IntentFilter.addDataAuthority()} with
1255             {@link android.os.PatternMatcher#PATTERN_PREFIX}. -->
1256        <attr name="pathPrefix" />
1257        <!-- Specify a URI path that matches a simple pattern, as per
1258             {@link android.content.IntentFilter#addDataPath
1259             IntentFilter.addDataAuthority()} with
1260             {@link android.os.PatternMatcher#PATTERN_SIMPLE_GLOB}. 
1261             Note that because '\' is used as an escape character when
1262             reading the string from XML (before it is parsed as a pattern),
1263             you will need to double-escape: for example a literal "*" would
1264             be written as "\\*" and a literal "\" would be written as
1265             "\\\\".  This is basically the same as what you would need to
1266             write if constructing the string in Java code. -->
1267        <attr name="pathPattern" />
1268    </declare-styleable>
1269    
1270    <!-- Attributes that can be supplied in an AndroidManifest.xml
1271         <code>category</code> tag, a child of the
1272         {@link #AndroidManifestIntentFilter intent-filter} tag. 
1273         See {@link android.content.IntentFilter#addCategory} for
1274         more information. -->
1275    <declare-styleable name="AndroidManifestCategory" parent="AndroidManifestIntentFilter">
1276        <!-- The name of category that is handled, using the Java-style
1277             naming convention.  For example, to support
1278             {@link android.content.Intent#CATEGORY_LAUNCHER Intent.CATEGORY_LAUNCHER}
1279             you would put <code>android.intent.category.LAUNCHER</code> here.
1280             Custom actions should generally use a prefix matching the
1281             package name. -->
1282        <attr name="name" />
1283    </declare-styleable>
1284    
1285    <!-- Attributes that can be supplied in an AndroidManifest.xml
1286         <code>instrumentation</code> tag, a child of the root
1287         {@link #AndroidManifest manifest} tag. -->
1288    <declare-styleable name="AndroidManifestInstrumentation" parent="AndroidManifest">
1289        <!-- Required name of the class implementing the instrumentation, deriving from
1290            {@link android.app.Instrumentation}.  This is a fully
1291            qualified class name (i.e., com.mycompany.myapp.MyActivity); as a
1292            short-hand if the first character of the class
1293            is a period then it is appended to your package name. -->
1294        <attr name="name" />
1295        <attr name="targetPackage" />
1296        <attr name="label" />
1297        <attr name="icon" />
1298        <attr name="handleProfiling" />
1299        <attr name="functionalTest" />
1300    </declare-styleable>
1301    
1302    <!-- Declaration of an {@link android.content.Intent} object in XML.  May
1303         also include zero or more {@link #IntentCategory <category> and
1304         {@link #Extra <extra>} tags. -->
1305    <declare-styleable name="Intent">
1306        <!-- The action name to assign to the Intent, as per
1307            {@link android.content.Intent#setAction Intent.setAction()}. -->
1308        <attr name="action" format="string" />
1309        <!-- The data URI to assign to the Intent, as per
1310            {@link android.content.Intent#setData Intent.setData()}.
1311            <p><em>Note: scheme and host name matching in the Android framework is
1312            case-sensitive, unlike the formal RFC.  As a result,
1313            Uris here should always be normalized to use lower case letters
1314            for these elements (as well as other proper Uri normalization).</em></p> -->
1315        <attr name="data" format="string" />
1316        <!-- The MIME type name to assign to the Intent, as per
1317            {@link android.content.Intent#setType Intent.setType()}.
1318            <p><em>Note: MIME type matching in the Android framework is
1319            case-sensitive, unlike formal RFC MIME types.  As a result,
1320            MIME types here should always use lower case letters.</em></p> -->
1321        <attr name="mimeType" />
1322        <!-- The package part of the ComponentName to assign to the Intent, as per
1323            {@link android.content.Intent#setComponent Intent.setComponent()}. -->
1324        <attr name="targetPackage" />
1325        <!-- The class part of the ComponentName to assign to the Intent, as per
1326            {@link android.content.Intent#setComponent Intent.setComponent()}. -->
1327        <attr name="targetClass" format="string" />
1328    </declare-styleable>
1329    
1330    <!-- A category to add to an Intent, as per
1331            {@link android.content.Intent#addCategory Intent.addCategory()}. -->
1332    <declare-styleable name="IntentCategory" parent="Intent">
1333        <!-- Required name of the category. -->
1334        <attr name="name" />
1335    </declare-styleable>
1336    
1337    <!-- An extra data value to place into a an extra/name value pair held
1338            in a Bundle, as per {@link android.os.Bundle}. -->
1339    <declare-styleable name="Extra" parent="Intent">
1340        <!-- Required name of the extra data. -->
1341        <attr name="name" />
1342        <!-- Concrete value to put for this named extra data. -->
1343        <attr name="value" />
1344    </declare-styleable>
1345</resources>
1346