Code example for Intent

Methods: addFlagsputExtrasetClasssleep

0
    } 
 
    @LargeTest 
    public void testBackVideoCapture() throws Exception { 
        Instrumentation inst = getInstrumentation();
        Intent intent = new Intent(MediaStore.INTENT_ACTION_VIDEO_CAMERA);
 
        intent.setClass(getInstrumentation().getTargetContext(), CameraActivity.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intent.putExtra(EXTRAS_CAMERA_FACING,
                android.hardware.Camera.CameraInfo.CAMERA_FACING_BACK);
        Activity act = inst.startActivitySync(intent);
        Thread.sleep(WAIT_FOR_SWITCH_CAMERA);
        captureVideos("Back Camera Video Capture\n", inst);
        act.finish();
    } 
 
    @LargeTest 
    public void testFrontVideoCapture() throws Exception { 
        Instrumentation inst = getInstrumentation();
Stop searching for code, let great code find you!  Add Codota to your java IDE