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