| CPC G06F 9/451 (2018.02) [G06F 1/1652 (2013.01); G06F 3/04886 (2013.01); G06F 9/4843 (2013.01)] | 18 Claims |

|
1. An electronic device comprising:
a first housing;
a second housing foldably connected with the first housing;
a flexible display disposed on the first housing and the second housing;
at least one sensor;
at least one processor; and
memory storing instructions, that, when executed by the at least one processor, cause the electronic device to:
control the flexible display to display a first execution screen of a first application, which is executing in a foreground of the electronic device while executing a second application in a background of the electronic device, when the first housing and the second housing are in a partially folded state,
identify a user input to execute the second application in the foreground,
wherein the second application is configured to change an execution screen based on an angle between the first housing and the second housing, which is identified using the at least one sensor, falling within a predetermined range of the partially folded state, and
based on identifying the user input, control the flexible display to display a second execution screen of the second application associated with the predetermined range instead of the first execution screen,
wherein the second execution screen is configured to display a preview screen captured by a camera on a first portion of the flexible display corresponding to the first housing and to display, below the preview screen, a plurality of first UI elements and a plurality of second UI elements on a second portion of the flexible display corresponding to the second housing.
|