Android androidmanifest. xml Android: Process Element description

Source: Internet
Author: User

Android: process can be used for a single component (activity, broadcast, etc ).

<Application Android: Process = "com. Android. Phone">

ApplicationProgramAll components are running in this process. Each component can overwrite this setting by setting its own process attribute.
By default, Android creates a separate process for each application. All components run in the process. The default process name is usually the same as the package name of the application.
For example, <manifest xmlns: Android = "http://schemas.android.com/apk/res/android"
Package = "com. Lt. mytest">
The default process name of the program is com. Lt. mytest.
Setting this attribute allows the application to share the same process with other applications. Only when the two applications share a userid with the same signature.
<Manifest xmlns: Android = "http://schemas.android.com/apk/res/android"
Android: shareduserid = "android. uid. Phone">
The name of a Linux User ID shared with other applications.
By default, Android assigns a unique user ID to each application. However, if multiple applications set this attribute to the same value, they share the same ID. If these applications are set to run in the same process, they can access each other's data.

Related Article

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.