Code example for Instrumentation

Methods: removeMonitor

0
    } 
     
    @Override 
    protected void tearDown() throws Exception {         
        if ((null != mMonitor) && (null != mInstrumentation)){
            mInstrumentation.removeMonitor(mMonitor);
            mMonitor = null;
        } 
         
        if (null != mMediaFormatActivity){
            mMediaFormatActivity.finish();
            mMediaFormatActivity = null;
        } 
         
        super.tearDown(); 
    } 
     
    public void testCase1_TestBlockSizeSummaryUI() { 
        long       blockSize            = mExternalStorageStat.getBlockSize();
        long       totalBlocks          = mExternalStorageStat.getBlockCount();