Android-manifest detailed

Source: Internet
Author: User

Android-manifest DetailedOne configuration 1
Android:name: Name


Android:theme: Theme


Android:label: Label


Android:description: Description


Android:icon: Icon


Android:launchmode: Startup mode


Android:screenorientation: Screen Orientation


Android:configchanges: Configuration changes


Android:permission: Permissions


Android:multprocess: Multi-process


Android:process: Process


Two configuration 2
1 android:allowtaskreparenting:
Allow task redirection, default to False, such as when sending a message with a browser to open a connection, after entering the link,
In return of the activity of the mail, if you start the browser through launcher, the default is False, the browser will return to the main interface,
But set to true, it goes back to the interface you just sent the message to.


2 Android:alwaysretaintaskstate:
Allow task status to be retained
For example, open activity, then switch to bactivity, and then switch to launch, if the activity has not been started for a long time, that is, just the activity process was killed:
True: This situation will go back to bactivity
False: This does not return to Bactivity, only the aactivity is started, and the default value is False


3 Android:cleartaskonlaunch
Booting from launch clears the task
For example, open activity, then switch to bactivity, then switch to launch, and start the program from launch again.
True: This will clear all the activity processes above aactivity, as in the case of the first opening
False: This situation does not clear the activity process above aactivity, the default value is False


4 android:configchanges
Configure the following configuration changes,
"MCC", "MNC", "locale",
"Touchscreen", "keyboard", "Keyboardhidden",
"Navigation", "Screenlayout", "Fontscale", "Uimode",
"Orientation", "screensize", "Smallestscreensize"
To determine if the current activity will be restarted, using the Onconfigurationchanged method


5 Android:finishontasklaunch
If you restart the task that you just started in the list of Tasklaunch (that is, the screen list, not the long press home key interface, above), whether to create a new activity instance
True: A new activity instance is re-created
False: does not re-create, default value is False


6 android:hardwareaccelerated
Hardware acceleration, need to be configurable
Whether to support the Opengles


7 android:multiprocess
Multi-process, that is, whether an instance of an activity can be loaded into the process of the affected component that initiated it
True: You can
False: No, the default value is False


8 Android:nohistory
Whether the activity should be removed from the activity stack and ended (call the Finish () method) when the user leaves him and no longer appears on the screen
true: should
False: should not, default to False


9 android:process
Process
Two methods of setting:
1 Customizing the alias of a process to the activity android:process= "Chengzhi.android"
1 Plus: Indicates the possibility that the activity can belong to another process if needed, and actively modifies the name of the activity process.


Ten android:statenotneeded
Retention of the current activity state is not required, columns such as edittext do not revert to the previously set string
true: can restore
False: cannot be recovered, default value is False


Android:screenoriention
Set screen inversion
The most common are the following two:
Default value unspecified
Sensor: Following sensor


Android:excludefromrecent
Does not contain recent history, there is not a recently activated activity in the "press and hold home key out of the screen"
True: does not contain
False: Included, default value is False


Android:export:
Whether the current activity can be used by other processes, the default allows


Android:windowsoftinputmode:
Soft keyboard input mode, hidden or realistic


three launchmoder:activity execution mode
1 Standards: Standard mode


2 Singletop:
When the activity of the instance needs to be at the top of the stack, when the activity is requested again, no new instances are created, but the onnewintent of the top activity of the stack is started.
When the activity that requires the instance is not at the top of the stack, the activity is created when the activity is requested to start


3 Singletask:
When an activity is already in existence, a request to start the activity again triggers the onnewintent of an existing activity instance.
If the activity has other activity on the task stack where the activity is located, then the other activity is destroyed.


4 SingleInstance:
Uniqueness of the process
The activity that sets up this startup mode will be independent of a task stack, and has only its own, always keeping an instance
From the stack, the current stack, back to the other stack

Android-manifest detailed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.