page.title=<application> @jd:body
<application android:allowTaskReparenting=["true" | "false"] android:backupAgent="string" android:debuggable=["true" | "false"] android:description="string resource" android:enabled=["true" | "false"] android:hasCode=["true" | "false"] android:icon="drawable resource" android:killAfterRestore=["true" | "false"] android:label="string resource" android:manageSpaceActivity="string" android:name="string" android:permission="string" android:persistent=["true" | "false"] android:process="string" android:restoreAnyVersion=["true" | "false"] android:taskAffinity="string" android:theme="resource or theme" > . . . </application>
<manifest>
<activity>
<activity-alias>
<service>
<receiver>
<provider>
<uses-library>
The
<activity>
element has its own
allowTaskReparenting
attribute that can override the value set here. See that attribute for more
information.
<manifest>
element.
There is no default. The name must be specified.
The default value is "{@code true}".
An application would not have any code of its own only if it's using nothing but built-in component classes, such as an activity that uses the {@link android.app.AliasActivity} class, a rare occurrence.
<activity>
,
<activity-alias>
,
<service>
,
<receiver>
, and
<provider>
elements.
This attribute must be set as a reference to a drawable resource containing the image definition. There is no default icon.
The default is {@code true}, which means that after the application has finished processing its data during a full-system restore, it will be terminated.
<activity>
,
<activity-alias>
,
<service>
,
<receiver>
, and
<provider>
elements.
The label should be set as a reference to a string resource, so that it can be localized like other strings in the user interface. However, as a convenience while you're developing the application, it can also be set as a raw string.
<activity>
element.
The subclass is optional; most applications won't need one. In the absence of a subclass, Android uses an instance of the base Application class.
For more information on permissions, see the Permissions section in the introduction and another document, Security and Permissions.
By default, Android creates a process for an application when the first
of its components needs to run. All components then run in that process.
The name of the default process matches the package name set by the
<manifest>
element.
By setting this attribute to a process name that's shared with another application, you can arrange for components of both applications to run in the same process — but only if the two applications also share a user ID and be signed with the same certificate.
If the name assigned to this attribute begins with a colon (':'), a new process, private to the application, is created when it's needed. If the process name begins with a lowercase character, a global process of that name is created. A global process can be shared with other applications, reducing resource usage.
The default value of this attribute is {@code false}.
taskAffinity
attributes. See that attribute for more information.
By default, all activities within an application share the same
affinity. The name of that affinity is the same as the package name
set by the
<manifest>
element.
theme
attributes; see that attribute for more information.<activity>
<service>
<receiver>
<provider>