Flexible electronic device and method for controlling display of application execution screen
According to certain embodiments, an electronic device further comprises: a first housing; a second housing slidably coupled with respect to the first housing; a display in which an viewable area to an outside of the electronic device is changeable from a first size to a second size according to a sliding distance of the second housing with respect to the first housing; a memory storing computer-executable instructions; and a processor configured to access the memory and execute the computer-executable instructions, wherein execution of the computer-executable instructions by the processor causes the processor to perform a plurality of operations, the plurality of operations comprising: in response to receiving a first input requesting a recent task list of at least one application being serviced when the viewable area has the first size, display at least one execution screen image having a first aspect ratio for the first size corresponding to the at least one application; and when the viewable area has the second size, displaying the at least one execution screen image having a second aspect ratio for the second size.
1 . An electronic device comprising:
a first housing;
a second housing slidably coupled with respect to the first housing;
a display in which a viewable area to a front surface of the electronic device is changeable from a first size having a first aspect ratio to a second size having a second aspect ratio according to a movement of the second housing with respect to the first housing;
a memory storing computer-executable instructions; and
a processor configured to access the memory and execute the computer-executable instructions, wherein execution of the computer-executable instructions by the processor causes the processor to perform a plurality of operations, the plurality of operations comprising:
while the viewable area is maintained in the first size, in response to receiving a first input requesting a recent task list indicating at least one application currently running in background, displaying the recent task list comprising at least one execution screen image having the first aspect ratio and corresponding to the at least one application, wherein each of the at least one execution screen image having the first aspect ratio is an image captured at a time point when a corresponding one of the at least one application is switched from a foreground execution to a background execution;
in response to changing the viewable area from the first size to the second size, updating the recent task list by generating at least one execution screen image having the second aspect ratio corresponding to the at least one application; and
while the viewable area has is maintained in the second size, displaying the updated recent task list.
2 . The electronic device of claim 1 , wherein the plurality of operations further comprises:
at a time point at which the at least one first application being serviced is switched from a foreground to a background while the viewable area has the first size, storing the execution screen of the at least one first application at the time point as a first execution screen;
wherein the first image corresponds to an execution screen of the first application.
3 . The electronic device of claim 1 , wherein the plurality of operations further comprises:
detecting that the viewable area is changed from the first size to the second size;
in response to detecting the viewable area is changed from the first size to the second size, displaying a second execution screen, wherein the second execution screen replaces the first execution screen.
4 . The electronic device of claim 1 , wherein the plurality of operations further comprises:
newly allocating a buffer for the at least one first application being serviced, based on a change of the viewable area from the first size to the second size,
generating display data of a second execution screen of the at least one first application in the allocated buffer, and
storing the second execution screen of the at least one first application in the allocated buffer.
5 . The electronic device of claim 1 , wherein the plurality of operations further comprises:
storing a second execution screen independently of a first execution screen.
6 . The electronic device of claim 1 , wherein the plurality of operations further comprises:
displaying in the recent task list, both a first execution screen and a second execution screen;
wherein the second image corresponds to an execution screen of the at least one first application in the foreground when the viewable area has the second size.
7 . The electronic device of claim 6 , wherein the plurality of operations further comprises:
in response to an input selecting the first execution screen, controlling the viewable area to be changed from the second size to the first size, and
switching an application corresponding to the selected first execution screen to a foreground and display, in the viewable area.
8 . The electronic device of claim 6 , wherein the plurality of operations further comprises:
receiving an input for selecting the first execution screen included in the recent task list;
when a size of the viewable area is different from display size information related to the selected first execution screen, automatically changing the viewable area of the display, in response to the input, and switching an application corresponding to the selected first execution screen to a foreground.
9 . The electronic device of claim 1 , wherein the recent task list comprises at least one of a thumbnail image captured at a time point when the plurality of applications and the at least one first application, being serviced is switched from a foreground to a background, and an execution window capable of receiving a touch input, and
wherein the execution window comprises the thumbnail image.
10 . The electronic device of claim 9 , wherein the plurality of operations further comprises:
while the viewable area has the second aspect ratio, displaying the recent task list, wherein the recent task list includes the execution window comprising a multi-window execution screen image;
in response to a first input for selecting a divided area of the multi-window execution screen image, changing the viewable area from the second aspect ratio to the first aspect ratio, and switching a second application being displayed in the selected divided area to the foreground; and
in response to a second input for simultaneously selecting two divided areas of the multi-window execution screen image, switching applications being serviced in multiple windows to the foreground.
11 . The electronic device of claim 9 , wherein the plurality of operations further comprises:
when displaying the recent task list including a second execution screen having the second aspect ratio on the display, the viewable area of which has the first size, displaying at least a part of the second execution screen having the second aspect ratio in an execution window having the first aspect ratio, and including a scroll item in the execution window having the first aspect ratio.
12 . The electronic device of claim 1 , wherein the plurality of operations further comprises:
identifying a configuration option related to the recent task list; and
when the configuration option is a window change function, replacing a first execution screen with a second execution screen, in response to the change from the display having the first size to the display having the second size,
when the configuration option is a resizing display function, setting a recent task list comprising the first execution screen and the second execution screen, and
when an aspect ratio of an execution screen selected from the recent task list is different from an aspect ratio of a size of the display currently being displayed, changing the display size according to the aspect ratio of the selected execution screen.
13 . A method for controlling display of an application execution screen of an electronic device,
wherein the electronic device comprise a display in which a viewable area to a front surface of the electronic device is changeable from a first size having a first aspect ratio to a second size having a second aspect ratio according to a movement of a second housing with respect to a first housing;
the method comprising:
while the viewable area is maintained in the first size, in response to receiving a first input requesting a recent task list indicating at least one application currently running in background, displaying the recent task list comprising at least one execution screen image having the first aspect ratio and corresponding to the at least one application, wherein each of the at least one execution screen image having the first aspect ratio is an image captured at a time point when a corresponding one of the at least one application is switched from a foreground execution to a background execution;
in response to changing a viewable area of the display from a first size to a second size, updating the recent task list by generating at least one execution screen image having the second aspect ratio corresponding to the at least one application; and
while the viewable area is maintained in the second size, displaying the updated recent task list.
14 . The method of claim 13 , further comprising:
at a time point at which the at least one first application being serviced is switched from a foreground to a background while the viewable area has the first size, storing the execution screen of the at least one first application at the first point as a first execution screen;
wherein the first image corresponds to an execution screen of the first application.
15 . The method of claim 13 , further comprising:
detecting that the viewable area is changed from the first size to the second size;
in response to detecting the viewable area is changed from the first size to the second size, displaying a second execution screen, wherein the second execution screen replaces a first execution screen.
16 . The method of claim 13 , further comprising:
newly allocating a buffer for the at least one first application being serviced, based on a change of the viewable area from the first size to the second size,
generating display data of a second execution screen of the at least one first application in the allocated buffer, and
storing the second execution screen of the at least one first application in the allocated buffer.
17 . The method of claim 13 , further comprising:
storing a second execution screen independently of a first execution screen.
18 . The method of claim 13 , further comprising:
displaying, in the recent task list, both a first execution screen and a second execution screen;
wherein the second image corresponds to an execution screen of the at least one first application in the foreground when the viewable area has the second size.
19 . The method of claim 18 , further comprising:
in response to an input selecting the first execution screen, controlling the viewable area to be changed from the second size to the first size, and
switching an application corresponding to the selected first execution screen to a foreground and display, in the viewable area.
20 . The method of claim 18 , further comprising:
receiving an input for selecting the first execution screen included in the recent task list;
when a size of the viewable area is different from display size information related to the selected first execution screen, automatically changing the viewable area of the display, in response to the input, and switching an application corresponding to the selected first execution screen to a foreground.