1. 程式人生 > >Android官方文件—APP清單(

Android官方文件—APP清單(

<instrumentation>

語法:

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

包含於:

說明:

宣告一個Instrumentation類,使您可以監視應用程式與系統的互動。 Instrumentation物件在任何應用程式的元件之前例項化。

屬性:

android:functionalTest

是否應該將Instrumentation類作為功能測試執行 - 如果是,則為“true”,否則為“false”。預設值為“false”。

android:handleProfiling

Instrumentation物件是否開啟和關閉分析 - 如果確定分析的開始和停止時間為“true”,如果分析在執行的整個時間內繼續,則為“false”。值“true”使物件能夠在特定操作集上進行分析。預設值為“false”。

android:icon

表示Instrumentation類的圖示。必須將此屬性設定為對可繪製資源的引用。

android:label

Instrumentation類的使用者可讀標籤。標籤可以設定為原始字串或對字串資源的引用。

android:name

Instrumentation子類的名稱。這應該是一個完全限定的類名(例如,“com.example.project.StringInstrumentation”)。但是,作為簡寫,如果名稱的第一個字元是句點,則將其附加到<manifest>元素中指定的包名稱。

沒有預設值。必須指定名稱。

android:targetPackage

Instrumentation物件將執行的應用程式。應用程式由<manifest>元素在其清單檔案中分配的包名稱標識。

引入於:

API Level 1