A non-transitory computer-readable storage medium storing instructions, wherein the instructions, when executed by at least one processor, individually and/or collectively, of a foldable electronic device comprising a housing including a first housing part, a second housing part rotatably coupled to the first housing part, and a third housing part rotatably coupled to the second housing part, a first display including a first display area disposed on a front side of the first housing part, a second display area disposed on a front side of the second housing part, and a third display area disposed on a front side of the third housing part, a second display including a fourth display area and disposed on a rear side of the first housing part of the second housing part, and at least one sensor configured to detect an angle between the first housing part and the second housing part, and an angle between the second housing part and the third housing part, cause the foldable electronic device to:
- in response to detecting changing, from a multi-folded state in which the second display area is covered by the third display area and the first display area face a rear side of the third housing part, to a single-folded state in which the second display area is covered by the third display area and the first display area is in a same horizontal plane with the second display area, display, on the first display area, one or more visual objects respectively corresponding to a first set of one or more software applications to be executed in an unfolded state in which the first, the second, and the third display areas are in a same horizontal plane;
- and
- in response to detecting changing from the unfolded state to the single-folded state, display, on the first display area, other visual objects respectively corresponding to a second set of one or more software applications to be executed in the multi-folded state.