???????к????????android???л????в?????????????????????????????????share?Щ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????ν????????????????????????????????????????Щ???????leader????????в??????????????????????а?????????

????1?????????????????б???????????????????????

???????????android SDK??ant1.8.2??jdk1.6??eclipse android????  Android SDK??????

??????????????Path??sdk tools·??

????Ant1.8.2???????????????????  Ant??ant????bin????е?·??  Java1.6????????  JAVA_HOME: C:Program FilesJava……

????2?????eclipse check out?μ?汾source???????????????????????????汾??????????????????eclipse???潨??????????????google??  ?????ò???????????????′???

public class (??????)extends ActivityInstrumentationTestCase2<Activity class name>
  {        private <Activity class name>  mActivity;      
            private Instrumentation mInstrumentation;     
      ?????? {                super("test package name"?? Activity class name);        }   
      protected void setUp() throws Exception {           
       super.setUp();           
       mInstrumentation = getInstrumentation();           
       mActivity = this.getActivity();        }    
       protected void tearDown() throws Exception {        
        super.tearDown();        }    
     public void testdemo1() throws InterruptedException {         
       Thread.sleep(30000);//??????е???? ??λ????        }}

???????????????service?????android????????service????extends???????ɡ??????????????????????????SDK Doc??

????3???????????????????????

????A??????????????build.xmlcd <main project folder>android update project --path <??>???????????????????????????????????build.xml??

????B????????????????build.xmlandroid update test-project -m <full path to main project> -p <path to test project>C.???CoverageCd <path to test project>Ant coverage????????????????????????????濴?????coverage??????С?????????????????report???

???

????1??????????????????г???@override error?????????jdk?汾?????1.6????????????·??????????????

????2??????????????г???not found symbols?????????????????????????lib????lib????????????????libs?????漴??

????3????????emma.jar????????????????sdk???????????http://developer.android.com/sdk/installing.html#sdkContents??

????4??????report?????л?????????????. ???У???????б?????д???????????У?????????????д????????б???У?????????б??????д????????С???????????????????д????????????????????????е? 16 ???????????