1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2007 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17<!-- 18 To run this test package, install it and the NotesList application to a device or emulator and 19 then run 20 adb shell am instrument -w com.example.android.notepad.tests/android.test.InstrumentationTestRunner 21--> 22<!-- 23 The Android package name differs from the package ID of the code. The code package ID 24 'com.example.android.notepad' allows the test code to use declarations from the application 25 under test, while the Android package name identifies this as a separate test package. 26--> 27<manifest xmlns:android="http://schemas.android.com/apk/res/android" 28 package="com.example.android.notepad.tests" 29 android:versionCode="1" 30 android:versionName="1.0"> 31 <!-- 32 The application element indicates that this package must be linked against the library 33 android.test.runner, which is not part of the normal link path. The library contains 34 code for test cases. 35 --> 36 <application> 37 <uses-library android:name="android.test.runner" /> 38 </application> 39 <!-- 40 The instrumentation element tells Android to use instrumentation to run this package. 41 The target Android package 'com.example.android.notepad' is loaded along with the 42 test package 'com.example.android.notepad.tests'. Android then starts the class 43 'android.test.InstrumentationTestRunner', which loads the test case classes in the package. 44 --> 45 <instrumentation android:name="android.test.InstrumentationTestRunner" 46 android:targetPackage="com.example.android.notepad" 47 android:label="Tests for com.example.android.notepad"/> 48 <uses-sdk android:minSdkVersion="10"></uses-sdk> 49</manifest> 50