Invoke.invokeApplication( Invoke.APP_TYPE_CALENDAR, args );
}
private void invokeCamera( final Object arg ) throws Exception {
CameraArguments args = null;
if( arg instanceof CameraArgumentsObject ) {
final CameraArgumentsObject c = (CameraArgumentsObject) arg;
final int view = c.getView();
if( view != CameraArgumentsConstructor.VIEW_CAMERA && view != CameraArgumentsConstructor.VIEW_RECORDER ) {
throw new IllegalArgumentException( "Invalid view for CameraArgumentsObject." );
}
args = new CameraArguments(
c.getView() == CameraArgumentsConstructor.VIEW_RECORDER ? CameraArguments.ARG_VIDEO_RECORDER
: CameraArguments.ARG_CAMERA_APP );
}
Invoke.invokeApplication( Invoke.APP_TYPE_CAMERA, args );