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

???????????????????б??????????(???????????)

???????????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

????{ private 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 android update project --path <??>???????????????????????????????????build.xml??

????B.??????????????build.xmlandroid update test-project -m -p C.???CoverageCd Ant coverage????????????????????????????濴?????coverage??????С?????????????????report???

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

????2.????????????г???not found symbols?????????????????????????lib????lib????????????????libs?????漴??3.??????emma.jar????????????????sdk??4.????report?????л?????????????. ???У???????б?????д???????????У?????????????д????????б???У?????????б??????д????????С???????????????????д????????????????????????е? 16 ?????????