An electronic device comprising: at least one camera (190, 192); a flexible display (160, 260a, 360, 906) disposed on a front surface of the electronic device; and at least one processor (210, 420) configured to: while the electronic device is in an unfolded state, detect, via a camera application displayed on the flexible display (160, 260a, 360, 906), a first user input to capture video; initiate capturing of a first video using the at least one camera (190, 192) based on the detection of the first user input; while capturing the first video in the unfolded state, detect that the electronic device is folded from the unfolded state to a folded state; stop the capturing of the first video based on the folded state, wherein the folded state comprises a state in which at least part of the flexible display (160, 260a, 360, 906) is not exposed; while the electronic device is in the folded state, receive a second user input for capturing a second video; while the electronic device is in the folded state, based on the second user input, capture the second video using the at least one camera (190, 192); and while the electronic device is in the unfolded state, detect a third user input to divide full screen of the flexible display (160, 260a, 360, 906), and display a first graphic element in a first area of the full screen of the flexible display (160, 260a, 360, 906) and a second graphic element in a second area of the full screen of the flexible display (160, 260a, 360, 906) based on the detection of the third user input; wherein the first area and the second area are not overlapped, and wherein the first graphic element includes a preview image of the camera application. at least one camera (190, 192); a flexible display (160, 260a, 360, 906) disposed on a front surface of the electronic device; and at least one processor (210, 420) configured to: while the electronic device is in an unfolded state, detect, via a camera application displayed on the flexible display (160, 260a, 360, 906), a first user input to capture video; initiate capturing of a first video using the at least one camera (190, 192) based on the detection of the first user input; while capturing the first video in the unfolded state, detect that the electronic device is folded from the unfolded state to a folded state; stop the capturing of the first video based on the folded state, wherein the folded state comprises a state in which at least part of the flexible display (160, 260a, 360, 906) is not exposed; while the electronic device is in the folded state, receive a second user input for capturing a second video; while the electronic device is in the folded state, based on the second user input, capture the second video using the at least one camera (190, 192); and while the electronic device is in the unfolded state, detect a third user input to divide full screen of the flexible display (160, 260a, 360, 906), and display a first graphic element in a first area of the full screen of the flexible display (160, 260a, 360, 906) and a second graphic element in a second area of the full screen of the flexible display (160, 260a, 360, 906) based on the detection of the third user input; wherein the first area and the second area are not overlapped, and wherein the first graphic element includes a preview image of the camera application. while the electronic device is in an unfolded state, detect, via a camera application displayed on the flexible display (160, 260a, 360, 906), a first user input to capture video; initiate capturing of a first video using the at least one camera (190, 192) based on the detection of the first user input; while capturing the first video in the unfolded state, detect that the electronic device is folded from the unfolded state to a folded state; stop the capturing of the first video based on the folded state, wherein the folded state comprises a state in which at least part of the flexible display (160, 260a, 360, 906) is not exposed; while the electronic device is in the folded state, receive a second user input for capturing a second video; while the electronic device is in the folded state, based on the second user input, capture the second video using the at least one camera (190, 192); and while the electronic device is in the unfolded state, detect a third user input to divide full screen of the flexible display (160, 260a, 360, 906), and display a first graphic element in a first area of the full screen of the flexible display (160, 260a, 360, 906) and a second graphic element in a second area of the full screen of the flexible display (160, 260a, 360, 906) based on the detection of the third user input; wherein the first area and the second area are not overlapped, and wherein the first graphic element includes a preview image of the camera application.