super.onCreate(icicle);
String iterations = (String) icicle.get("iterations");
String videoEncoder = (String) icicle.get("video_encoder");
String audioEncoder = (String) icicle.get("audio_encoder");
String frameRate = (String) icicle.get("frame_rate");
String videoWidth = (String) icicle.get("video_width");
String videoHeight = (String) icicle.get("video_height");
String bitRate = (String) icicle.get("bit_rate");
String recordDuration = (String) icicle.get("record_duration");
String removeVideos = (String) icicle.get("remove_videos");
if (iterations != null ) {
mIterations = Integer.parseInt(iterations);
}
if (videoEncoder != null) {
mVideoEncoder = Integer.parseInt(videoEncoder);
}
if (audioEncoder != null) {
mAudioEncoder = Integer.parseInt(audioEncoder);
}
if (frameRate != null) {
mFrameRate = Integer.parseInt(frameRate);
}
if (videoWidth != null) {
mVideoWidth = Integer.parseInt(videoWidth);
}
if (videoHeight != null) {
mVideoHeight = Integer.parseInt(videoHeight);
}
if (bitRate != null) {
mBitRate = Integer.parseInt(bitRate);
}
if (recordDuration != null) {
mDuration = Integer.parseInt(recordDuration);
}
if (removeVideos != null) {
if (removeVideos.compareTo("true") == 0) {
mRemoveVideo = true;
} else {
mRemoveVideo = false;
}
}