//Switching the video and the video recorder mode
Instrumentation inst = getInstrumentation();
try{
for (int i=0; i< TOTAL_NUMBER_OF_SWITCHING; i++) {
Thread.sleep(WAIT_FOR_PREVIEW);
inst.sendKeyDownUpSync(KeyEvent.KEYCODE_MENU);
inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_LEFT);
inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER);
Thread.sleep(WAIT_FOR_PREVIEW);
}
} catch (Exception e){
Log.v(TAG, e.toString());
}
assertTrue("testSwitchMode",true);