<instrumentation>

syntax:
<instrumentation android:functionalTest=["true" | "false"]
                 android:handleProfiling=["true" | "false"]
                 android:icon="drawable resource"
                 android:label="string resource"
                 android:name="string"
                 android:targetPackage="string" />
contained in:
<manifest>
description:
Declares an Instrumentation class that enables you to monitor an application's interaction with the system. The Instrumentation object is instantiated before any of the application's components.
여러분이 애플리케이션의 시스템과의 상호작용을 감시하는 것을 가능하게 하기 위해 instrumentation(도구) 클래스를 선언한다. Instrumentation 오브젝트는 모든 애플리케이션 컴포넌트 이전에 인스턴스화 된다.
attributes:
android:functionalTest
Whether or not the Instrumentation class should run as a functional test "true" if it should, and "false" if not. The default value is "false".
Instrumentation 클래스가 기능적인 테스트를 위해 수행되어야 하는지 여부. 만약 그것을 해야 한다면 “참true” , 아니라면 “거짓false”이다. 디폴트 값은 “거짓false”이다.
android:handleProfiling
Whether or not the Instrumentation object will turn profiling on and off "true" if it determines when profiling starts and stops, and "false" if profiling continues the entire time it is running. A value of "true" enables the object to target profiling at a specific set of operations. The default value is "false".
Instrumentation 오브젝트가 프로파일링profiling을 온오프onoff할 것인지 여부 - 만약 그것이 프로파일링을 시작할 때와 멈출 때를 결정한다면 “참true” 그리고 프로파일링이 그것이 실행되는 모든 시간 동안 계속된다면 “거짓false”이다. “참true” 값은 해당 오브젝트가 특정 오퍼레이션 집합set에 대한 타겟 프로파일링을 가능하게 한다. 디폴트 값은 “거짓false”이다.
android:icon
An icon that represents the Instrumentation class. This attribute must be set as a reference to a drawable resource.
Instrumentation 클래스를 표현하는 아이콘. 이 애트리뷰트는 드로어블drawable 리소스에 대한 레퍼런스로써 설정되어야 한다.
android:label
A user-readable label for the Instrumentation class. The label can be set as a raw string or a reference to a string resource.
Instrumentation 클래스를 대해 사용자가 읽은 수 있는 라벨. 라벨은 원시 raw 문자열 또는 문자열 리소스에 대한 레퍼런스로써 설정될 수 있다.
android:name
The name of the Instrumentation subclass. This should be a fully qualified class name (such as, "com.example.project.StringInstrumentation"). However, as a shorthand, if the first character of the name is a period, it is appended to the package name specified in the <manifest> element.

There is no default. The name must be specified.

Instrumentation 서브클래스의 이름. 이것은 (“com.example.project.StringInstrumentation” 와 같이) 전체 클래스 이름이 되어야 한다. 하지만 단축형으로 그 이름의 첫 번째 문자가 마침표라면, 그것은 <manifest> 엘리먼트에서 지정된 package 이름 끝에 덧붙어진다.

디폴트는 없다. 이름은 지정되어야 한다.

introduced in:
API Level 1
API 레벨 1
android:targetPackage
The application that the Instrumentation object will run against. An application is identified by the package name assigned in its manifest file by the <manifest> element.
Instrumentation 오브젝트를 실행할 대상 애플리케이션. 애플리케이션은 <manifest> 엘리먼트에 의해 그것의 매니페스트 파일 내에서 할당된 package 이름에 의해 구분된다.
↑ Go to top