AndroidManifest. xml file (instrumentation)

Source: Internet
Author: User

SYNTAX (SYNTAX ):

<Instrumentationandroid: functionalTest = ["true" | "false"]
Android: handleProfiling = ["true" | "false"]
Android: icon = "drawable resource"
Android: label = "string resource"
Android: name = "string"
Android: targetPackage = "string"/>

Included IN (contained in ):

<Manifest>

DESCRIPTION ):

This element declares an Instrumentation class that can monitor the interaction between an application and the system. The Instrumentation object is instantiated before all other components of the application are instantiated.

ATTRIBUTES (ATTRIBUTES ):

Android: functionalTest

This attribute is used to specify whether the Instrumentation class should be run as a functional test. If it is set to true, it must be run, otherwise it should not be run. The default value is false.

Android: handleProfiling

This attribute is used to specify whether the Instrumentation object enables or disables the analysis function. If this parameter is set to true, the start time and end time of the analysis function are determined by the Instrumentation object. If this parameter is set to false, the analysis function continues until the entire running cycle of the Instrumentation object. If this parameter is set to true, the Instrumentation object is analyzed for a specific set of operations. The default value is false.

Android: icon

This attribute is used to set an icon for the Instrumentation class. It must apply a resource that can be drawn.

Android: label

This attribute is used to set a user-readable label for the Instrumentation class. This tag can be a native string or a string resource.

Android: name

This attribute is used to set the name of the Instrumentation subclass. It should be a complete Java class name (for example, com. example. project. StringInstrumentation ). However, you can also use the shorthand method (for example,. StringInstrumentation). Its package name uses the package name specified in the package attribute of the <manifest> element.

It has no default value and must be specified.

Android: targetPackage

This attribute is used to specify the application monitored by the Instrumenttation object. The application identified by the package name will be associated with the package attribute value of the <manifest> element in the list.

INTRODUCED version (introduced in ):

API Level 1

 


From FireOfStar's column

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.