+
+ @Override
+ public void onCreate(Bundle icicle) {
+ super.onCreate(icicle);
+ String iterations = (String) icicle.get("iterations");
+ String video_encoder = (String) icicle.get("video_encoder");
+ String audio_encoder = (String) icicle.get("audio_encoder");
+ String frame_rate = (String) icicle.get("frame_rate");
+ String video_width = (String) icicle.get("video_width");
+ String video_height = (String) icicle.get("video_height");
+ String bit_rate = (String) icicle.get("bit_rate");
+ String record_duration = (String) icicle.get("record_duration");
+ String remove_videos = (String) icicle.get("remove_videos");
+
+ if (iterations != null ) {
+ mIterations = Integer.parseInt(iterations);
+ }
+ if ( video_encoder != null) {
+ mVideoEncoder = Integer.parseInt(video_encoder);
+ }
+ if ( audio_encoder != null) {
+ mAudioEncdoer = Integer.parseInt(audio_encoder);
+ }
+ if (frame_rate != null) {
+ mFrameRate = Integer.parseInt(frame_rate);
+ }
+ if (video_width != null) {
+ mVideoWidth = Integer.parseInt(video_width);
+ }
+ if (video_height != null) {
+ mVideoHeight = Integer.parseInt(video_height);
+ }
+ if (bit_rate != null) {
+ mBitRate = Integer.parseInt(bit_rate);
+ }
+ if (record_duration != null) {
+ mDuration = Integer.parseInt(record_duration);
+ }
+ if (remove_videos != null) {
+ if (remove_videos.compareTo("true") == 0) {
+ mRemoveVideo = true;
+ } else {
+ mRemoveVideo = false;
+ }
+ }
+ }