Android
Mainfest
Commonly used files
Android
Attribute
1. Android: allowtaskreparenting
, Allowed or not
Activity
Replace a subordinate task, such as a short message task.
Switch to a browser task.
2. Android: alwaysretaintaskstate
, Whether the retained status remains unchanged,
For example, switch back
Home,
And then re-open,
Activity
In the final state
3. Android: cleartaskonlanunch, such
P
Yes
Activity, Q
Yes
P
Triggered
Activity,
Then return
Home,
Restart
P
,
Show?
Q
4. Android: configchanges, when configured
List
When a change occurs,
Call or not
Onconfigurationchanged ()
Method
For example
"Locale | navigation | orientation ".
5. Android: enabled, activity,
Can be instantiated?
,
6. Android: excludefromrecents, whether it can be displayed in the recently opened
Activity
List
7. Android: exported, whether to allow
Activity
Called by other programs
8. Android: finishontasklaunch, whether to disable Enabled
Activity
When you restart this task
9. Android: launchmode, Activity
Startup Mode,
"Standard"
"Singletop" "singletask"
"Singleinstance"
The first two are a group,
The last two are in a group.
10. Android: Multiprocess,
Allow multiple processes
11. Android: name, Activity
Class Name,
Must be specified
12. Android: onhistory,
Yes
No need to remove this
Activity
When the user switches to another screen.
This attribute is
API level 3
Introduced in
13. Android: process,
I
Items
Activity
The name of the running process,
All program components run in the default process of the application. The process name is consistent with the package name of the application.
<Application>
Element in
Process
Attribute can be
A component is used to set a new default value. However, any component can overwrite this default value, allowing you to run your program in multiple processes.
If the assigned name of this attribute is
:
Start,
When this
Activity
Runtime
,
A new process dedicated to this program will be created.
If the process name starts with a lowercase letter,
This
Activity
It runs in a global process and is provided by its license.
14. Android: screenorientation, Activity
Display Mode
, "Unspecified"
Default Value
"Landscape"
Landscape Painting mode, with a wider width than the height
"Portrait"
Portrait Mode
,
The height is greater than the width.
"User"
User settings
"Behind" "sensor" "nosensor"
15. Android: statenotneeded, whether or not
Activity
Destroyed, restarted, and not saved
16. Android: taskaffinity, Activity
Kinship,
By default
Activity
Have the same relationship
17. Android: Theme, Activity
Style topic
,
If no value is set
Activity
From the application,
See
<Application>
Element
Theme
Attribute
18. Android: windowsoftinputmode, Activity
Interaction Mode between the main window and the keyboard
,
Since
API level 3
Introduced