Electronic device and method for controlling display

An electronic device and a method for controlling a display are provided. The method includes sensing, via the electronic device, a rotation of the electronic device, identifying, by the electronic device, at least one layer having direction information that is different from a direction of the sensed rotation among a plurality of layers included in an application, changing, via the electronic device, a direction of the identified at least one layer to a direction corresponding to the sensed rotation, and displaying, via the electronic device, the application including the changed at least one layer.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This application claims the benefit under 35 U.S.C. § 119(a) of a Korean patent application filed on Feb. 21, 2014 in the Korean Intellectual Property Office and assigned Serial number 10-2014-0020896, the entire disclosure of which is hereby incorporated by reference.

TECHNICAL FIELD

The present disclosure relates to an electronic device and a method for controlling a display.

BACKGROUND

Various services and additional functions provided by an electronic device have been gradually expanded. In order to increase an effective value of the electronic device and meet various demands of users, various applications which can be executed by the electronic device have been developed.

Further, various Operating Systems (OSs) have been provided by companies manufacturing electronic devices and various applications which can be executed according to the various OSs that have been developed. In general, the applications may generate activities when the electronic device lies vertically and horizontally, respectively and switch the activity to be appropriate for a rotation of the electronic device, or some of the applications may generate an activity to use in a fixed position (for example, electronic device in a landscape mode).

SUMMARY

Aspects of the present disclosure are to address at least the above-mentioned problems and/or disadvantages and to provide at least the advantages described below.

When an electronic device uses each of activities according to a rotation mode of the electronic device, a preview image is cut off due to a change according to a rotation of the electronic device in an application such as a camera application outputting a continuous preview image.

Further, when an electronic device configures the camera application to be used in a fixed position, the user may feel inconvenience in viewing since a system window (for example, popup, quick panel, system dialogue toast message or the like) is dependent on the application configured to be used in the fixed position even though the preview image is not cut off.

Accordingly, it is required to adaptively rotate the system window in response to rotations of various applications rotated according to the rotation of the electronic device.

Accordingly, an aspect of the present disclosure is to provide an electronic device and a method for controlling a display of an electronic device.

In accordance with an aspect of the present disclosure, a method for controlling a display of an electronic device is provided. The method including sensing, via an electronic device, a rotation of the electronic device, identifying at least one layer having direction information that is different from a direction of the sensed rotation among a plurality of layers included in an application, changing a direction of the identified at least one layer to a direction corresponding to the sensed rotation, and displaying the application including the changed at least one layer.

In accordance with another aspect of the present disclosure, a method for controlling a display of an electronic device is provided. The method including recognizing, via the electronic device, at least one layer of which a direction is configured independently from an application among a plurality of layers corresponding to the application, if a direction of the at least one layer does not match a direction of the application, changing a coordinate of the at least one layer based on a coordinate of the application, and displaying the application based on the change.

In accordance with another aspect of the present disclosure, an electronic device controlling a display is provided. The electronic device including a screen configured to display an application, a sensor module configured to include at least one sensor that senses a rotation of the electronic device and a display controlling module configured to identify at least one layer having direction information that is different from the sensed rotation among a plurality of layers included in the displayed application in response to the rotation of the electronic device and to change a direction of the identified at least one layer to a direction corresponding to the sensed rotation.

In accordance with another aspect of the present disclosure, a non-transitory computer-readable recording medium having a program recorded thereon is provided. The program being for controlling a display of the electronic device and causing a computer to execute a method including sensing a rotation of the electronic device, identifying at least one layer having direction information that is different from a direction of the sensed rotation among a plurality of layers included in an application, changing a direction of the identified at least one layer to a direction corresponding to the sensed rotation, and displaying the application including the changed at least one layer.

According to the present disclosure, the user can receive convenience through an electronic device and a method for controlling a display.

Further, according to the present disclosure, it is possible to provide comfortable use to the user by changing a layer of at least one layer having direction information different from the rotation of the electronic device to a direction corresponding to the rotation of the electronic device among layers included in the application.

Moreover, the present disclosure can resolve the viewing inconvenience felt by the user by matching a coordinate of the system window or the toast message provided by the electronic device with a coordinate of the application.

In addition, a system load of the electronic device can be reduced and an entry speed of the application can be increased by providing a seamless view without cutting off an image such as the preview image of the camera application.

DETAILED DESCRIPTION

In the present disclosure, the expression “include” or “may include” refers to existence of a corresponding function, operation, or element, and does not limit one or more additional functions, operations, or elements. In the present disclosure, the terms such as “include” and/or “have” may be construed to denote a certain characteristic, number, step, operation, constituent element, component or a combination thereof, but may not be construed to exclude the existence of or a possibility of addition of one or more other characteristics, numbers, steps, operations, constituent elements, components or combinations thereof.

In the present disclosure, the expression “or” includes any or all combinations of words enumerated together. For example, the expression “A or B” may include A, may include B, or may include both A and B.

In the present disclosure, expressions including ordinal numbers, such as “first” and “second,” etc., may modify various elements. However, such elements are not limited by the above expressions. For example, the above expressions do not limit the sequence and/or importance of the elements. The above expressions are used merely for the purpose to distinguish an element from the other elements. For example, a first user device and a second user device indicate different user devices although both of them are user devices. For example, a first element could be termed a second element, and similarly, a second element could be also termed a first element without departing from the scope of the present disclosure.

In the case where a component is referred to as being “connected” or “accessed” to other component, it should be understood that not only the component is directly connected or accessed to the other component, but also there may exist another component between them. Meanwhile, in the case where a component is referred to as being “directly connected” or “directly accessed” to other component, it should be understood that there is no component therebetween.

The terms used in the present disclosure are only used to describe specific embodiments, and are not intended to limit the present disclosure. Singular forms are intended to include plural forms unless the context clearly indicates otherwise.

An electronic device according to the present disclosure may be a device including a display control function. For example, the electronic device may include at least one of a smart phone, a tablet Personal Computer (PC), a mobile phone, a video phone, an e-book reader, a desktop PC, a laptop PC, a netbook computer, a Personal Digital Assistant (PDA), a Portable Multimedia Player (PMP), an MP3 player, a mobile medical device, a camera, a wearable device (for example, a Head-Mounted-Device (HMD) such as electronic glasses, electronic clothes, an electronic bracelet, an electronic necklace, an electronic accessory, an electronic tattoo, and a smart watch).

According to some embodiments, the electronic device may be a smart home appliance with a display control function. The smart home appliance as an example of the electronic device may include at least one of, for example, a television, a Digital Video Disk (DVD) player, an audio, a refrigerator, an air conditioner, a vacuum cleaner, an oven, a microwave oven, a washing machine, an air cleaner, a set-top box, a TV box (e.g., Samsung HomeSync™, Apple TV™, or Google TV™), a game console, an electronic dictionary, an electronic key, a camcorder, and an electronic picture frame.

According to some embodiments, the electronic device may include at least one of various types of medical devices (for example, Magnetic Resonance Angiography (MRA), Magnetic Resonance Imaging (MRI), Computed Tomography (CT), a scanning machine, ultrasonic wave device and the like), a navigation device, a Global Positioning System (GPS) receiver, an Event Data Recorder (EDR), a Flight Data Recorder (FDR), a car infotainment device, electronic equipment for a ship (for example, navigation equipment for a ship, a gyro compass and the like), avionics, a security device, a head unit for a vehicle, an industrial or home robot, an Automatic Teller Machine (ATM) of a financial institution, and a Point Of Sales (POS) device of a shop.

According to some embodiments, the electronic device may include at least one of furniture or a part of a building/structure, an electronic board, an electronic signature receiving device, a projector, and various types of measuring devices (for example, a water meter, an electricity meter, a gas meter, a radio wave meter and the like) including a display control function. The electronic device according to the present disclosure may be one or a combination of the above described various electronic devices. Also, the electronic device according to the present disclosure may be a flexible device. It is obvious to those skilled in the art that the electronic device according to the present disclosure is not limited to the aforementioned devices.

The expressions “1”, “2”, “first”, and “second” used in the present disclosure may modify various components of the present disclosure but do not limit the corresponding components. For example, the above expressions do not limit the sequence and/or importance of the elements. The above expressions are used merely for the purpose of distinguishing an element from the other elements. For example, a first user device and a second user device indicate different user devices although both of them are user devices. For example, a first element could be termed a second element, and similarly, a second element could be also termed a first element without departing from the scope of the present disclosure.

Also, the electronic device according to the present disclosure may be a flexible device. It is obvious to those skilled in the art that the electronic device according to the present disclosure is not limited to the aforementioned devices.

Hereinafter, an electronic device according to various embodiments of the present disclosure will be described with reference to the accompanying drawings. The term “user” used in various embodiments may refer to a person who uses an electronic device or a device (for example, an artificial intelligence electronic device) which uses an electronic device.

FIGS. 1 through 8, discussed below, and the various embodiments used to describe the principles of the present disclosure in this patent document are by way of illustration only and should not be construed in any way that would limit the scope of the disclosure. Those skilled in the art will understand that the principles of the present disclosure may be implemented in any suitably arranged communications system. The terms used to describe various embodiments are exemplary. It should be understood that these are provided to merely aid the understanding of the description, and that their use and definitions in no way limit the scope of the present disclosure.

FIG. 1illustrates a network environment including an electronic device according to an embodiment of the present disclosure.

Referring toFIG. 1, a network environment101including an electronic device101is illustrated. The electronic device101may include a bus110, a processor120, a memory130, an input/output interface140, a display150, a communication interface160, and a display controlling module170.

The bus110may be a circuit connecting the above described components and transmitting communication (for example, a control message) between the above described components.

The processor120may receive commands from other components (for example, the memory130, the input/output interface140, the display150, the communication interface160, and the display controlling module170) through the bus110, analyze the received commands, and execute calculation or data processing according to the analyzed commands.

The memory130may store commands or data received from the processor120or other components (for example, the input/output interface140, the display150, the communication interface160and the display controlling module170) or generated by the processor120or other components. The memory130may include programming modules, for example, a kernel131, middleware132, an Application Programming Interface (API)133, or an application134. Each of the above described programming modules may be configured by software, firmware, hardware, or a combination of two or more thereof.

The kernel131may control or manage system resources (for example, the bus110, the processor120, or the memory130) used for executing an operation or function implemented by the remaining other programming modules, for example, the middleware132, the API133, or the application134. Further, the kernel131may provide an interface through which the middleware133, the API134, or the application134may access individual components of the electronic device101to control or manage the components.

The middleware132may perform a relay function to allow the API133or the application134to communicate with the kernel131to exchange data. Further, in operation requests received from the applications134, the middleware132may control (for example, scheduling or load balancing) the operation requests by using a method of assigning a priority, by which system resources (for example, the bus110, the processor120, the memory130and the like) of the electronic device101can be used, to at least one of the applications134.

The API133is an interface by which the application134can control a function provided by the kernel131or the middleware132and may include, for example, at least one interface or function for a file control, a window control, image processing, or a character control.

According to various embodiments, the application134may include a Short Message Service (SMS)/Multimedia Messaging Service (MMS) application, an email application, a calendar application, an alarm application, a health care application (for example, application measuring a quantity of exercise or blood sugar) or an application (for example, application providing information on pressure, humidity or temperature). Additionally or alternatively, the application134may be an application related to an information exchange between the electronic device101and an external electronic device (for example, electronic device104). The application related to the information exchange may include, for example, a notification relay application for transferring particular information to the external electronic device or a device management application for managing the external electronic device.

For example, the notification relay application may include a function of transmitting notification information generated by another application (for example, SMS/MMS application, email application, health care application or environment information application) of the electronic device101to the external electronic device (for example, electronic device104). Additionally or alternatively, the notification relay application may receive notification information from, for example, the external electronic device (for example, electronic device104) and provide the received notification information to the user. The device management application may manage (for example, install, remove, or update) at least a part of functions (for example, turning on/off the external electronic device (or some components of the external electronic device) or controlling a brightness of the display) of the external electronic device (for example, electronic device104) communicating with the electronic device101, an application executed in the external electronic device, or a service (for example, call service or message service) provided by the external electronic device.

According to various embodiments, the application134may include an application designated according to an attribute (for example, type of electronic device) of the external electronic device (for example, electronic device104). For example, when the external electronic device is an MP3 player, the application134may include an application related to music reproduction. Similarly, when the external electronic device is a mobile medical device, the application134may include an application related to health care. According to an embodiment, the application134may include at least one of an application designated to the electronic device101and an application received from an external electronic device (for example, server106or electronic device104).

The input/output interface140may transmit a command or data input from the user through an input/output device (for example, sensor, keyboard, or touch screen) to the processor120, the memory130, the communication interface160, or the display controlling module170through, for example, the bus110. For example, the input/output interface140may provide data on a user's touch input through a touch screen to the processor120. The input/output interface140may output a command or data received, through, for example, the bus110, from the processor120, the memory130, the communication interface160, or the display controlling module170through the input/output device (for example, speaker or display). For example, the input/output interface140may output voice data processed through the processor120to the user through the speaker.

The display150may display various pieces of information (for example, multimedia data or text data) for the user.

The communication interface160may connect communication between the electronic device101and the external device (for example, electronic device104or server106). For example, the communication interface160may access a network162through wireless or wired communication to communicate with the external device. The wireless communication may include at least one of, for example, WiFi, BlueTooth (BT), Near Field Communication (NFC), a Global Positioning System (GPS), and cellular communication (for example, LTE, LTE-A, CDMA, WCDMA, UMTS, WiBro or GSM). The wired communication may include at least one of, for example, a Universal Serial Bus (USB), a High Definition Multimedia Interface (HDMI), Recommended Standard 232 (RS-232), and a Plain Old Telephone Service (POTS).

According to an embodiment, the network162may be a telecommunication network. The telecommunication network may include at least one of a computer network, Internet, Internet of Things, and a telephone network. According to an embodiment, a protocol (for example, transport layer protocol, data link layer protocol, or physical layer protocol) for the communication between the electronic device101and the external device may be supported by at least one of the application134, the application programming interface133, the middleware132, the kernel131, and the communication interface160.

The display controlling module170may process at least a part of information obtained from other components (for example, processor120, memory130, input/output interface140, or communication interface160) and provide the processed information to the user in various ways. For example, the display controlling module170may control at least some of the functions of the electronic device101by using the processor120or independently from the processor120such that the electronic device101interworks with another electronic device (for example, electronic device104or server106). Additional information on the display controlling module170will be provided throughFIGS. 2 to 8below.

Hereinafter, the present disclosure will be described with reference to the accompanying drawings. The present disclosure may have various modifications and embodiments and thus will be described in detail with reference to specific embodiments illustrated in the drawings. However, it should be understood that there is no intent to limit the present disclosure to the particular forms disclosed, but on the contrary, the present disclosure is to cover all modifications, equivalents, and/or alternatives falling within the spirit and scope of the disclosure. In description of the drawings, similar elements are indicated by similar reference numerals.

FIG. 2is a block diagram of a display controlling module of an electronic device according to an embodiment of the present disclosure.

Referring toFIG. 2, a display controlling module170is illustrated. The display controlling module170may include a rotation sensing module210, a display managing module220, a display correcting module230, and an interworking controlling module240.

According to an embodiment, the rotation sensing module210may sense a rotation of the electronic device101. The rotation sensing module210may sense an inclined direction of the electronic device101. Further, the rotation sensing module210may receive information on the rotation or the inclined direction of the electronic device101through at least one sensor included in a sensor module840as illustrated inFIG. 8to determine the rotation or the inclined direction of the electronic device.

According to an embodiment, the display managing module210may manage a display of the electronic device101. The display managing module210may change a direction of an application displayed on the display150to a direction corresponding to the sensed rotation. The application may include one or more layers according to a function or attribute thereof. The one or more layers may share rotation and direction information of the application. Further, the display managing module210may identify one or more layers having direction information different from the rotation of the application from a plurality of layers included in the application displayed on the display150. The display managing module210may change a direction of one or more identified layers to a direction corresponding to the rotation of the application. According to an embodiment, the display managing module210may determine whether a coordinate of the one or more changed layers matches a coordinate of the layer rotated according to the sensed rotation. The display managing module210may identify whether at least one of direction information and coordinate information of each layer is changed according to the rotation of the electronic device101among a plurality of layers included in the application. The display managing module210may match the coordinate of the one or more identified layers with the coordinate of the application rotated according to the rotation of the electronic device101. For example, when a command for displaying a system window is input while an application is executed, the display managing module210may analyze coordinate information of an application displayed on the top among applications executed in the electronic device101and match a coordinate of the system window with the coordinate of the application displayed on the top.

According to an embodiment, the display correcting module230may correct a display of the electronic device101. According to an embodiment, the display correcting module230may determine whether a coordinate of a first layer of the application of which a direction will be changed to a direction corresponding to the rotation of the electronic device101matches coordinates of one or more layers except for the first layer. The first layer may be a layer existing on the bottom of the application. According to an embodiment, when the coordinate of the first layer does not match the coordinates of the one or more layers except for the first layer, the display correcting module230may control a position of the one or more layers such that the coordinate of the one or more layers match the coordinate of the first layer. The one or more layers may be the remaining layers except for the first layer among the plurality of layers included in the application. According to an embodiment, the display correcting module230may match the coordinates of the one or more layers with the coordinate of the first layer.

According to an embodiment, the interworking controlling module240may control interworking between the rotation sensing module210, the display managing module220, and the display correcting module230included in the display controlling module170. According to an embodiment, the interworking controlling module240may be configured to perform at least one of an operation that senses an operation status of another application installed in an auxiliary electronic device and an operation that provides an alert message to the user in response to a request for removing one or more applications by executing, for example, a management application.

FIG. 3is a block diagram of a display controlling module of an electronic device according to an embodiment of the present disclosure.

Referring toFIG. 3, an electronic device101is illustrated, where the electronic device101may include a camera module891as illustrated inFIG. 8. According to an embodiment, the camera module may include at least one of a first camera151(not shown) and a second camera152which photographs a still image or a moving image under a control of an application processor810. The first camera151may be disposed on a front surface of the electronic device101, and the second camera152may be disposed on a rear surface of the electronic device101. According to an embodiment, the camera module891of the electronic device101may include at least one of a barrel (not shown) for zooming in/zooming out the first and/or second cameras, a motor898as illustrated inFIG. 8for controlling a motion of the barrel (not shown) to zoom in/zoom out the barrel (not shown), and a flash840K as illustrated inFIG. 8for providing a light source for photographing according to a main purpose of the electronic device101. The motor and the flash may be included in the camera module891or may be separately included in the electronic device101.

According to an embodiment, the electronic device101may execute a camera application310and may take a picture or record an image by executing the camera application310. When the electronic device101executes the camera application310, the display controlling module170may include the camera application310, a display managing module320, a rotation sensing module330, and an output module340.

According to an embodiment, the camera application310may include a plurality of layers (e.g., a first layer311, a second layer312and a third layer313, etc.). Each of the layers may be referred to as a view. AlthoughFIG. 3shows only three layers, it is merely an embodiment and the camera application according to various embodiments of the present disclosure may include one or more layers. Each of the layers may include one or more of direction information and coordinate information. According to an embodiment, the direction information and the coordinate information included in each of the layers may be obtained from the camera application. According to an embodiment, as the direction information and the coordinate information included in each of the layers, direction information and coordinate information of the camera application may be used. According to an embodiment, each of the layers may provide a user interface, display an image photographed through the camera application310, or include various functions provided by the camera application310. According to an embodiment, the camera application310may include a display correcting module314. The display correcting module314may correct a display of each layer of the camera application displayed on the display150of the electronic device101. According to an embodiment, the display correcting module314may correct displays of one or more layers of the camera application displayed on the display150of the electronic device101based on a display of another layer. According to an embodiment, the display correcting module314may correct a display based on an application executed on the top. According to an embodiment, the display correcting module314may determine whether a coordinate of a first layer of the camera application of which a direction will be changed to a direction corresponding to the rotation of the electronic device101matches coordinates of one or more layers except for the first layer. The first layer may be a layer existing on the bottom of the camera application, a layer existing on the top, or a predetermined reference layer. According to an embodiment, when the coordinate of the first layer does not match the coordinates of the one or more layers except for the first layer, the display correcting module314may control a position of the one or more layers such that the coordinate of the one or more layers match the coordinate of the first layer. The one or more layers may be the remaining layers except for the first layer among the plurality of layers included in the camera application. The display correcting module314may be included in the camera application310or may be separately included in the display control module.

According to an embodiment, the display managing module320may manage a display of the electronic device101. The display managing module320may identify one or more layers having direction information different from the rotation of the electronic device101from the plurality of layers included in the camera application displayed on the display150. According to an embodiment, the display managing module320may identify a layer within the application having direction information different from the top application of the electronic device101. According to an embodiment, the display managing module320may determine whether coordinates of the one or more changed layers match a coordinate of the layer rotated according to the sensed rotation. The display managing module320may identify whether at least one of direction information and coordinate information of each layer is changed according to the rotation of the electronic device101among the plurality of layers included in the camera application. According to an embodiment, the display managing module320may match the coordinates of the one or more identified layers with the coordinate of the application rotated according to the rotation of the electronic device101. According to an embodiment, the display managing module320may identify a layer within the application having direction information different from the top application of the electronic device101. The display managing module320may change directions of the one or more identified layers to a direction corresponding to the application. The display managing module320may match the coordinates of the one or more changed layers with the coordinate of the application.

According to an embodiment, the rotation sensing module330may sense a rotation of the electronic device101. The rotation sensing module210may sense an inclined direction of the electronic device101. Further, the rotation sensing module210may receive information on the rotation or the inclined direction of the electronic device101through at least one sensor included in the sensor module840to determine the rotation or the inclined direction of the electronic device101.

According to an embodiment, the output module340may display the camera application on the display150under a control of at least one of the display managing module320and the processor120. Further, the output module340may output the camera application having the one or more layers of which the directions have been changed to the direction corresponding to the rotation of the electronic device101on the display150under a control of at least one of the display managing module320and the processor120.

FIG. 4is a flowchart illustrating a display controlling method of an electronic device according to an embodiment of the present disclosure.

Referring toFIG. 4, a display controlling method of an electronic device according to an embodiment of the present disclosure is illustrated.

According to an embodiment, the rotation sensing module220may sense a rotation of the electronic device101in operation410. According to an embodiment, the rotation sensing module220may receive information on the rotation of the electronic device101from one or more sensors included in the electronic device101to sense the rotation of the electronic device101. When the electronic device101is rotated or a direction thereof is changed, one or more sensors included in the sensor module840of the electronic device101may sense at least one of the rotation and the direction change of the electronic device101. According to an embodiment, when the electronic device101is rotated or the direction thereof is changed, the rotation sensing module210included in the display controlling module170may sense at least one of the rotation and the direction change of the electronic device101. In contrast, when the at least one of the rotation and the direction change is not sensed in operation410the display controlling method ends.

According to an embodiment, one or more layers having direction information different from the sensed rotation may be identified from a plurality of layers included in the application in response to the sensing of the rotation of the electronic device101in operation412. According to an embodiment, when the electronic device101is rotated or the direction is changed, the rotation sensing module210may receive a signal for the rotation or the direction change of the electronic device101from one or more sensors included in the sensor module840to determine that the electronic device101has been rotated or the direction thereof has been changed. According to an embodiment, the electronic device101may execute one or more applications and display the executed applications on the display150. The application may include one or more layers and a number of layers varies depending on a use purpose, a type, and a manufacturer. According to an embodiment, when a direction or a progress direction corresponding to the rotation of the electronic device101is changed, each of the layers may include at least one of direction information and coordinate information to be displayed on the display150after being changed. Each of the plurality of layers may have at least one of direction information and coordinate information. The direction information may be information for controlling a direction change of a system window in response to the rotation of the electronic device101and the coordinate information may be information for determining a display position of the system window. According to an embodiment, the system window includes a window separately displayed from a currently executed application. The system window may be a window of an application separated from the application being executed. According to an embodiment, the system window may be provided separately from the application being executed and may include a window provided by an operating system of the electronic device in response to an input of at least one of a button and a key.

According to an embodiment, at least one of the processor120, the display controlling module170, and the display managing module220may identify one or more layers having direction information different from the sensed rotation according to the rotation of the electronic device101. At least one of the processor120, the display controlling module170, and the display managing module220may identify whether at least one of the direction information and the coordinate information of each layer is changed according to the rotation of the electronic device101among the plurality of layers included in the application being currently executed. According to an embodiment, at least one of the processor120, the display controlling module170, and the display managing module220may determine which layer is changed equally to, similarly as, or in real time with the rotation of the electronic device by sensing the change of at least one of the direction information and the coordinate information of the one or more layers in response to the rotation of the electronic device101. According to an embodiment, at least one of the processor120, the display controlling module170, and the display managing module220may determine which layer is not rotated in spite of the rotation of the electronic device101.

According to an embodiment, directions of the one or more identified layers may be changed to a direction corresponding to the sensed rotation in operation414. According to an embodiment, at least one of the processor120, the display controlling module170, and the display managing module220may rotate at least one of the plurality of layers included in the application according to the direction corresponding to the rotation of the electronic device101. According to an embodiment, when one or more layers having direction information different from the rotation of the electronic device are identified from the plurality of layers included in the application, the display managing module220may change directions of the one or more identified layers to the direction corresponding to the sensed rotation. According to an embodiment, the display managing module230may match coordinates of the one or more identified layers with a coordinate of the layer rotated according to the rotation of the electronic device101. Further, the display correcting module230determines whether the coordinates of the one or more changed layers match the coordinate of the layer rotated according to the sensed rotation. When the coordinates do not match, the display correcting module230may match the coordinates of the one or more layers with the coordinate of the layer rotated according to the sensed rotation.

According to an embodiment, when the processor120detects a command which executes the system window, the processor120may display the system window in consideration of the top layer of the application displayed on the display150. According to an embodiment, when a command for displaying the system window is input, at least one of the processor120, the display controlling module170, and the display managing module220may analyze coordinate information of the top layer of the displayed application, match a coordinate of the system window with a coordinate of the top layer of the displayed application, and display the system window. According to an embodiment, when a command for displaying the system window is input, at least one of the processor120, the display controlling module170, and the display managing module220may analyze coordinate information of the top layer of the displayed application, match a coordinate of the system window with a coordinate of the top layer of the displayed application, and display the system window.

FIG. 5is a flowchart illustrating a display controlling method of the electronic device according to an embodiment of the present disclosure.

Referring toFIG. 5, a display controlling method of an electronic device according to an embodiment of the present disclosure is illustrated.

According to an embodiment, the rotation sensing module220may sense a rotation of the electronic device101in operation510. According to an embodiment, the rotation sensing module220may receive information on the rotation of the electronic device101from one or more sensors included in the electronic device101to sense the rotation of the electronic device101. In an embodiment, if no rotation is sensed in operation510, then the controlling method illustrated inFIG. 5ends.

According to an embodiment, a coordinate of the one or more layers included in the application is applied to a coordinate of the application in response to the sensing of the rotation of the electronic device101in operation512. According to an embodiment, when the electronic device101is rotated or the direction is changed, the rotation sensing module210may receive a signal for the rotation or the direction change of the electronic device101from one or more sensors included in the sensor module840to determine that the electronic device101has been rotated or the direction thereof has been changed.

According to an embodiment, the electronic device101may display the application on the display150in response to the rotation of the electronic device101in operation514. The application may include one or more layers and a number of layers varies depending on a use purpose, a type, and a manufacturer. According to an embodiment, when a direction or a progress direction corresponding to the rotation of the electronic device101is changed, each of the layers may include at least one of direction information and coordinate information to be displayed on the display150after being changed.

According to an embodiment, the display managing module220may apply coordinates of one or more layers except for a first layer of the application being executed to a coordinate of the first layer of the application in response to the rotation of the electronic device101, and the first layer may be located on the bottom of the application and may be rotated in real time in response to the rotation of the electronic device101. According to an embodiment, the first layer may be linked with the display150of the electronic device101and thus rotated in real time. The first layer may be located on the bottom or the top of the application. According to an embodiment, the first layer may be located at any one position of the application including a plurality of layers. According to an embodiment, at least one of the processor120and the display controlling module170may control rotations of one or more applications displayed on the display150in response to the rotation of the electronic device101.

According to an embodiment, it may be determined whether the coordinate of the application matches the coordinates of the one or more layers in operation516. When the coordinates do not match, the coordinate of the one or more layers are controlled to match the coordinate of the application (or first layer) in operation518. According to an embodiment, at least one of the processor120, the display controlling module170, and the display correcting module230may determine whether the coordinate of the application (or coordinate of the first layer) matches the coordinates of the one or more layers (only except for the first layer). When the coordinates do not match, display positions of the one or more layers may be controlled to match a position of the application (or a position of the first layer). The determination on whether the coordinates match each other may include changing the coordinates of the one or more layers to match the coordinate of the application. According to an embodiment, when it is determined that the coordinate of the application does not match the coordinates of the one or more layers, the display correcting module230may control the positions of the one or more layers such that the coordinates of the one or more layers match the coordinate of the application. According to an embodiment, the display correcting module230may match the coordinates of the one or more layers with the coordinate of the application (or coordinate of the first layer).

According to an embodiment, the application having the one or more layers of which the coordinates have been controlled is displayed in operation520. When the coordinate of the first layer matches the coordinates of the one or more layers, the application is displayed in operations516and520. According to an embodiment, the display managing module220may match the coordinates of the one or more layers with the coordinate of the first layer among the plurality of layers included in the application in response to the rotation of the electronic device101and then display the application on the display150. The display may be made in real time in response to the rotation or the direction changed of the electronic device101.

According to an embodiment, it may be identified whether a command for displaying a system window is input in operation522. According to an embodiment, when it is identified that a command for displaying a system window is not input, then the controlling method illustrated inFIG. 5ends According to an embodiment, when it is identified whether the system window is displayed, at least one of the processor120, the display controlling module170, and the display managing module220matches a coordinate of the system window with the coordinate of the application in operation524. According to an embodiment, the system window includes a window separately displayed from a currently executed application. The system window may be a window of an application separated from the executed application. According to an embodiment, the system window may be provided separately from the application being executed and may include a window provided by an operating system of the electronic device in response to an input of at least one of a button and a key included in the electronic device. The display managing module220may match the coordinate of the system window with the coordinate of the application and display the system window. According to an embodiment, the display managing module220may match the coordinate of the system window with coordinates of one or more of the plurality of layers included in the application being executed. When a command for displaying the system window is input while the application is displayed, the display managing module220may match the coordinate of the system window with the coordinate of the displayed application.

FIGS. 6A and 6Billustrate an example of a plurality of layers included in a camera application according to an embodiment of the present disclosure.

Referring toFIGS. 6A and 6B,FIG. 6Aillustrates a preview image displayed in the camera application according to an embodiment andFIG. 6Billustrates a plurality of layers included in the camera application according to an embodiment.

AlthoughFIGS. 6A and 6Billustrate only a camera application as an example, it is merely an embodiment and it is apparent that the present disclosure can be applied to various applications, which can be executed in an electronic device101and includes one or more layers, as well as the camera application.

Referring toFIG. 6A, a preview image is displayed in the camera application according to the embodiment of the present disclosure. When the camera application is executed, the preview image by the executed camera application is displayed on the display150. The preview image is displayed on the display150in response to a position change of the electronic device101. According to an embodiment, the camera application may include various menus such as a menu that receives a selection from the user to photograph a picture or a video, a menu that configures an environment of the camera application, and a menu that selects each of cameras included in the electronic device101.

Referring toFIG. 6B, a plurality of layers included in a camera application according to the embodiment are illustrated. According to an embodiment, the camera application in a state where the electronic device101lies vertically may include one or more layers. AlthoughFIG. 6Billustrates that the camera application includes only three layers610,620, and630, it is merely an embodiment and the camera application according to the present disclosure may include two or more layers. According to an embodiment, the camera application according to the present disclosure may include a plurality of activities and each of the activities may include one or more layers. According to an embodiment, each of the layers included in the camera application may include direction information and coordinate information.

According to an embodiment, a first layer610may be located on the bottom of the camera application, a second layer620may be located on the first layer610, and a third layer630may be located on the second layer620. According to an embodiment, the first layer610is not directly shown to the user, but serves as a container which contains other layers and may be called a layout. The layout may include a frame layout, a relative layout, and a linear layout. According to an embodiment, the second layer620displays a preview image photographed in the camera application. According to an embodiment, the third layer630may include various functions provided by the camera application. The third layer630may include a menu635for switching at least two cameras included in the electronic device101, a menu636providing a flash, and a menu637for configuration an environment of the camera application. According to an embodiment, the third layer630may include various menus such as a button, a text view, a text editing, a radio button and the like as well as the plurality of menus635,636, and637according to a type of application.

According to an embodiment, each of the layers610,620, and630may include at least one of direction information and coordinate information. A coordinate value611of an upper right end of the first layer610is (0,0), a coordinate value612of an upper left end is (N,0), a coordinate value613of a lower right end is (0,M), and a coordinate value614of a lower left end is (N,M). Similarly, a coordinate value of an upper right end of the second layer620may be (0,0), a coordinate value of an upper left end may be (N,0), a coordinate value of a lower right end may be (0,M), and a coordinate value of a lower left end may be (N,M). Referring toFIG. 6B, although the coordinate value of the upper right end is set as (0,0), it is only an embodiment and the lower right end, the upper left end, or the lower left end may be set as (0,0). When the electronic device101is rotated, the coordinate values may be changed. For example, when a coordinate value of an upper right end of the electronic device101in a vertical state is set as (0,0) but the vertical state of the electronic device101is changed to a horizontal state, one of coordinate values of a lower right end, an upper left end, and a lower left end of the electronic device101in the vertical state may be set as (0,0). N and M refer to pixel coordinate values and the pixel coordinate value varies depending on a size of the display150. According to an embodiment, coordinate values611,612, and613may be used when matching another layer. According to an embodiment, pixels of the display150may have different coordinate values. According to an embodiment, each of the coordinate values may be changed according to a rotation direction of the electronic device101.

FIGS. 7A to 7Cillustrate an example of a display of a system window in a state where a camera application including a plurality of layers is executed according to an embodiment of the present disclosure.

FIG. 7Aillustrates an example where a system window is displayed when an electronic device lies horizontally according to an embodiment,FIG. 7Billustrates an example of a plurality of layers included in a camera application when an electronic device lies horizontally and rotates vertically according to an embodiment, andFIG. 7Cillustrates an example of a plurality of layers included in a camera application after an electronic device is vertically rotated according to an embodiment.

Referring toFIG. 7A, the system window is displayed in a state where the electronic device according to the embodiment lies horizontally. According to an embodiment, in the camera application executed in the state where the electronic device101lies horizontally, each of layers710,720, and730are rotated and displayed according to a state of the electronic device101lying horizontally. The camera application may include a landscape mode and a portrait mode and can switch therebetween. A fourth layer740including a system window741may be displayed on the third layer730in response to an input of a command for executing the system window in such a state.

According to an embodiment, the first layer710may be located on the bottom of the camera application, the second layer720may be located on the first layer710, and the third layer730may be located on the second layer720. According to an embodiment, the fourth layer740may be located on the third layer730. According to an embodiment, the fourth layer740may be located on any position between the layers. According to an embodiment, the first layer610is not directly shown to the user, but serves as a container which contains other layers and may be called a layout or a User Interface (UI) view. The second layer720displays a preview image photographed in the camera application. According to an embodiment, the third layer730may include various functions provided by the camera application. The third layer730may include a menu735for switching at least two cameras included in the electronic device101, a menu736providing a flash, and a menu737for configuration of an environment of the camera application. The menus735,736, and737may be rotated in response to the rotation of the electronic device101(for example, when the electronic device is rotated in a counterclockwise direction, the menus735,635, and637ofFIG. 6Bare displayed like the menus735,736, and737ofFIG. 7A). According to an embodiment, the fourth layer740may include the system window741. According to an embodiment, the system window741may include a window separately displayed from a currently executed application. According to an embodiment, the system window741may be a window of an application separated from the executed application. According to an embodiment, the system window741may be provided separately from the application being executed and may include a window provided by an operating system of the electronic device in response to an input of at least one of a button and a key included in the electronic device. According to an embodiment, the system window741may include a user interface in a drop down type which is accessible in any situation or anywhere regardless of an execution of the application. The user interface may be executed to configure an operation of turning on/off WiFi, Bluetooth, GPS and the like and/or an operation of controlling screen brightness, a volume of the electronic device. The user interface may be called a quick panel. AlthoughFIG. 7Aillustrates the system window displayed due to an input of a power key (now shown) included in the electronic device101, it is only an embodiment and it is apparent that the present disclosure can be applied to a window corresponding to a function configured by another application or another user's input as well as the system window corresponding to the input of the power key. According to an embodiment, the layers710,720,730, and740may be displayed while their coordinates711,721,731, and741match each other in response to the rotation of the electronic device101.

Referring toFIG. 7B, a plurality of layers included in the camera application when the electronic device according to an embodiment which lies horizontally is rotated vertically are illustrated. According to an embodiment, the camera application may include a landscape mode and a portrait mode and can switch therebetween. According to an embodiment, one or more layers included in the camera application may be individually rotated. According to an embodiment, each of the layers included in the camera application may be changed or rotated according to a coordinate of an application dependent on the camera application. According to an embodiment, when the electronic device101is rotated from a horizontal state to a vertical state, the first layer750may be rotated in accordance with a rotation direction of the electronic device101. Further, the first layer750may be rotated simultaneously with the electronic device101when the electronic device101is rotated. According to an embodiment, the second layer720and the third layer730may not be simultaneously rotated. According to an embodiment, when a power key (not shown) is input, the fourth layer760may be displayed in response to the rotation of the electronic device101. According to an embodiment, the fourth layer760may include a system window761. According to an embodiment, orientations of the second layer720and the third layer730may not match a rotation direction of the first layer750. For example, the coordinates of the layers710,720,730, and740match each other according to an application mode when the electronic device101lies horizontally as illustrated inFIG. 7A. However, as illustrated inFIG. 7B, when the electronic device101is vertically rotated, orientations of the second layer720and the third layer730do not match an orientation of the first layer750. In this case, in order to match the orientations of the second layer720and the third layer730with the rotation direction of the first layer750, the coordinate values721and731of the second layer720and the third layer730may be changed to the coordinate values742and752of the first layer and the fourth layer760. For example, the display managing module220may change coordinate values of upper left ends of the second layer720and the third layer730to a coordinate value of an upper left end752of the first layer.

Referring toFIG. 7C, a plurality of layers included in the camera application after the electronic device according to an embodiment is vertically rotated are illustrated. A second layer770and a third layer780are controlled to match the rotation direction of the first layer750. According to an embodiment, a rotation direction of the fourth layer760may be controlled according to the coordinate of the camera application. According to an embodiment, the fourth layer760may be displayed after being rotated with reference to a coordinate value782of the third layer780. Further, the fourth layer760may be displayed after being rotated with reference to coordinate value(s)752,772, and762of one of the first to third layers750,760, and770. The layers750,760, and770may be rotated in real time in response to the rotation of the electronic device101. According to an embodiment, due to a rotation of the fourth layer, a system window761included in the fourth layer760may be rotated in real time in response to the rotation of the electronic device101. In this case, the user may recognize the rotations of the layers750,770,780, and760.

FIG. 8is a block diagram of an electronic device according to an embodiment of the present disclosure.

Referring toFIG. 8, an electronic device801, including at least one Application Processor (AP)810, a communication module820, a Subscriber Identifier Module (SIM) card824, a memory830, a sensor module840, an input device (module)850, a display860, an interface870, an audio module880, a camera module891, a power managing module895, a battery896, an indicator897, and a motor898, is illustrated.

The AP810may control a plurality of hardware or software components connected to the AP810by driving an operating system or an application program and process various data including multimedia data and perform calculations. The AP810may be implemented by, for example, a SoC. According to an embodiment, the AP810may further include a Graphic Processing Unit (GPU).

The communication module820(for example, communication interface160) may transmit/receive data in communication between different electronic devices (for example, the electronic device104and the server106) connected to the electronic device801through a network. According to an embodiment, the communication module820may include a cellular module821, a WiFi module823, a BlueTooth (BT) module825, a GPS module827, an NFC module828, and a Radio Frequency (RF) module829.

The cellular module821may provide a voice, a call, a video call, a SMS, or an Internet service through a communication network (for example, Long Term Evolution (LTE), LTE-A, Code Division Multiple Access (CDMA), Wideband CDMA (WCDMA), UMTS, WiBro, GSM or the like). Further, the cellular module821may distinguish and authenticate electronic devices within a communication network by using a subscriber identification module (for example, the SIM card824). According to an embodiment, the cellular module821may perform at least some of the functions which can be provided by the AP810. For example, the cellular module821may perform at least some of the multimedia control functions.

According to an embodiment, the cellular module821may include a Communication Processor (CP). Further, the cellular module821may be implemented by, for example, an SoC. AlthoughFIG. 8illustrates that the components such as the cellular module821(for example, communication processor), the memory830, and the power managing module895are separate components of the AP810, the AP810may include at least some of the above described components (for example, cellular module821) according to an embodiment.

According to an embodiment, the AP810or the cellular module821(for example, communication processor) may load a command or data received from at least one of a non-volatile memory and other components connected to each of the AP810and the cellular module821to a volatile memory and process the loaded command or data. Further, the AP810or the cellular module821may store data received from at least one of other components or generated by at least one of other components in a non-volatile memory.

Each of the WiFi module823, the BT module825, the GPS module827, and the NFC module828may include a process for processing data transmitted/received through the corresponding module. Referring toFIG. 8, the cellular module821, the WiFi module823, the BT module825, the GPS module827, and the NFC module828are illustrated as blocks separated from each other, but at least some (for example, two or more) of the cellular module821, the WiFi module823, the BT module825, the GPS module827, and the NFC module828may be included in one Integrated Chip (IC) or one IC package. For example, at least some (for example, the communication processor corresponding to the cellular module821and the WiFi processor corresponding to the WiFi module823) of the processors corresponding to the cellular module825, the WiFi module827, the BT module828, the GPS module827, and the NFC module823may be implemented by one SoC.

The RF module829may transmit/receive data, for example, an RF signal. The RF module829may include, for example, a transceiver, a Power Amp Module (PAM), a frequency filter, a Low Noise Amplifier (LNA) or the like, which is not illustrated inFIG. 8. Further, the RF module829may further include a component for transmitting/receiving electronic waves over a free air space in wireless communication, for example, a conductor, a conducting wire or the like. AlthoughFIG. 8illustrates that the cellular module821, the WiFi module823, the BT module825, the GPS module827, and the NFC module828share one RF module829, at least one of the cellular module821, the WiFi module823, the BT module825, the GPS module827, and the NFC module828may transmit/receive an RF signal through a separate RF module.

The SIM card824may be a card including a subscriber identification module and may be inserted into a slot formed in a particular portion of the electronic device. The SIM card824may include unique identification information (for example, Integrated Circuit Card IDentifier (ICCID)) or subscriber information (for example, International Mobile Subscriber Identity (IMSI).

The memory830(for example, memory130) may include an internal memory832or an external memory834. The internal memory832may include at least one of a volatile memory (for example, a Dynamic Random Access Memory (DRAM), a Static RAM (SRAM), a Synchronous Dynamic RAM (SDRAM) or the like) or a non-volatile memory (for example, a One Time Programmable Read Only Memory (OTPROM), a Programmable ROM (PROM), an Erasable and Programmable ROM (EPROM), an Electrically Erasable and Programmable ROM (EEPROM), a mask ROM, a flash ROM, a NAND flash memory, a NOR flash memory or the like).

According to an embodiment, the internal memory832may be a Solid State Drive (SSD). The external memory834may further include a flash drive, for example, a Compact Flash (CF), a Secure Digital (SD), a Micro Secure Digital (Micro-SD), a Mini Secure Digital (Mini-SD), an extreme Digital (xD), a memory stick or the like. The external memory834may be functionally connected to the electronic device801through various interfaces. According to an embodiment, the electronic device801may further include a storage device (or storage medium) such as a hard drive.

The sensor module840may measure a physical quantity or detect an operation status of the electronic device801, and convert the measured or detected information to an electronic signal. The sensor module840may include, for example, at least one of a gesture sensor840A, a gyro sensor840B, an atmospheric pressure sensor840C, a magnetic sensor840D, an acceleration sensor840E, a grip sensor840F, a proximity sensor840G, a color sensor840H (for example, red, green, and blue (RGB) sensor), a biometric sensor840I, a temperature/humidity sensor840J, an illumination sensor840K, and an Ultra Violet (UV) sensor840M. Additionally or alternatively, the sensor module840may include, for example, an E-nose sensor (not illustrated), an ElectroMyoGraphy (EMG) sensor (not illustrated), an ElectroEncephaloGram (EEG) sensor (not illustrated), an ElectroCardioGram (ECG) sensor (not illustrated), an InfraRed (IR) sensor, an iris sensor (not illustrated), a fingerprint sensor, and the like. The sensor module840may further include a control circuit for controlling one or more sensors included in the sensor module840.

The input device (module)850may include a touch panel852, a (digital) pen sensor854, a key856, or an ultrasonic input device858. The touch panel852may recognize a touch input in at least one type among, for example, a capacitive type, a resistive type, an infrared type, and an acoustic wave type. The touch panel852may further include a control circuit. In the capacitive type, a physical contact or a proximity recognition is possible. The touch panel852may further include a tactile layer. In this case, the touch panel852may provide a tactile reaction to the user.

The (digital) pen sensor854may be implemented, for example, using a method identical or similar to a method of receiving a touch input of a user or using a separate recognition sheet. The key856may include, for example, a physical button, an optical key or a keypad. The ultrasonic input device858is a device which can detect an acoustic wave by a microphone (for example, microphone888) of the electronic device801through an input tool generating an ultrasonic signal to identify data and can perform wireless recognition. According to an embodiment, the electronic device801may receive a user input from an external device (for example, computer or server) connected to the electronic device801by using the communication module820.

The display860(for example, display150) may include a panel862, a hologram device864, or a projector866. For example, the panel862may be a Liquid Crystal Display (LCD) or an Active Matrix Organic Light Emitting Diode (AM-OLED). The panel862may be implemented to be, for example, flexible, transparent, or wearable. The panel862may be configured by the touch panel852and one module. The hologram device864may show a stereoscopic image in the air by using interference of light. The projector866may project light on a screen to display an image. For example, the screen may be located inside or outside the electronic device801. According to an embodiment, the display860may further include a control circuit for controlling the panel862, the hologram device864, or the projector866.

The interface870may include, for example, a High-Definition Multimedia Interface (HDMI)872, a Universal Serial Bus (USB)874, an optical interface876, or a D-subminiature (D-sub)878. The interface870may be included in, for example, the communication interface160illustrated inFIG. 1. Additionally or alternatively, the interface290may include, for example, a Mobile High-definition Link (MHL) interface, a Secure Digital (SD)/Multi-Media Card (MMC) interface, or an Infrared Data Association (IrDA) standard interface.

The audio module880may bi-directionally convert a sound and an electronic signal. At least some components of the audio module880may be included in, for example, the input/output interface140illustrated inFIG. 1. The audio codec880may convert sound information input or output through, for example, a speaker882, a receiver884, an earphone886, the microphone888or the like.

The camera module891is a device which can photograph an image and a dynamic image. According to an embodiment, the camera module291may include one or more image sensors (for example, a front lens or a back lens), a lens (not shown), an Image Signal Processor (ISP) (not shown) or a flash (not shown) (for example, LED or xenon lamp).

The power managing module895may manage power of the electronic device801. Although not illustrated, the power managing module895may include, for example, a Power Management Integrated Circuit (PMIC), a charger Integrated Circuit (IC), or a battery or fuel gauge.

The PMIC may be mounted in, for example, an integrated circuit or an SoC semiconductor. Charging methods may be classified into a wired charging method and a wireless charging method. The charger IC can charge a battery and can prevent introduction of over-voltage or over-current from a charger. According to an embodiment, the charger IC may include a charger IC for at least one of the wired charging method and the wireless charging method. A magnetic resonance scheme, a magnetic induction scheme, or an electromagnetic scheme can be exemplified as the wireless charging method, and an additional circuit for wireless charging, such as a coil loop circuit, a resonance circuit, a rectifier circuit, and the like may be added.

The battery gauge may measure, for example, a remaining quantity of the battery896, or a voltage, a current, or a temperature during the charging. The battery896may store or generate electricity and supply power to the electronic device801by using the stored or generated electricity. The battery896may include, for example, a rechargeable battery or a solar battery.

The indicator897may show particular statuses of the electronic device801or a part (for example, AP810) of the electronic device801, for example, a booting status, a message status, a charging status and the like. The motor898may convert an electrical signal to a mechanical vibration. Although not illustrated, the electronic device801may include a processing unit (for example, GPU) for supporting a mobile TV. The processing unit for supporting the mobile TV may process media data according to a standard of Digital Multimedia Broadcasting (DMB), Digital Video Broadcasting (DVB), media flow or the like.

Each of the components of the electronic device according to the present disclosure may be implemented by one or more components and the name of the corresponding component may vary depending on a type of the electronic device. The electronic device according to the present disclosure may include one or more of the aforementioned components or may further include other additional components, or some of the aforementioned components may be omitted. Further, some of the components of the electronic device according to the present disclosure may be combined to be one entity, which can perform the same functions as those of the components before the combination.

The term “module” used in the present disclosure may refer to, for example, a unit including a combination of two or more of hardware, software, and firmware. The “module” may be interchangeably used with a term, such as unit, logic, logical block, component, or circuit. The “module” may be a minimum unit of an integrally configured article or a part thereof. The “module” may be a minimum unit performing one or more functions or a part thereof. The “module” may be mechanically or electronically implemented. For example, the “module” according to the present disclosure may include at least one of an Application-Specific Integrated Circuit (ASIC) chip, a Field-Programmable Gate Arrays (FPGA), and a programmable-logic device for performing operations which have been known or are to be developed hereinafter.

According to various embodiments, at least some of the devices (for example, modules or functions thereof) or the method (for example, operations) according to the present disclosure may be implemented by a command stored in a computer-readable storage medium in a programming module form. When the command is executed by one or more processors (for example, processor210), the one or more processors may execute a function corresponding to the command. The computer-readable storage medium may be, for example, the memory220. At least some of the programming modules may be implemented (for example, executed) by, for example, the processor210. At least some of the programming modules may include, for example, a module, a program, a routine, a set of instructions or a process for performing one or more functions.

The computer-readable recording medium may include magnetic media such as a hard disk, a floppy disk, and a magnetic tape, optical media such as a Compact Disc Read Only Memory (CD-ROM) and a Digital Versatile Disc (DVD), magneto-optical media such as a floptical disk, and hardware devices specially configured to store and perform a program command (for example, programming module), such as a Read Only Memory (ROM), a Random Access Memory (RAM), a flash memory and the like. In addition, the program instructions may include high class language codes, which can be executed in a computer by using an interpreter, as well as machine codes made by a compiler. The aforementioned hardware device may be configured to operate as one or more software modules in order to perform the operation of the present disclosure, and vice versa.

The programming module according to the present disclosure may include one or more of the aforementioned components or may further include other additional components, or some of the aforementioned components may be omitted. The operations performed by the module, the programming module, or other components according to the present disclosure may be performed by a sequential, parallel, repetitive, or heuristic method. Further, some operations may be executed according to another order or may be omitted, or other operations may be added.

According to various embodiments, in a storage medium storing commands, the commands are configured to allow one or more processors to perform one or more operations when the commands are executed by the one or more processor. The one or more operations may include an operation that senses a rotation of the electronic device, an operation that identifies one or more layers having direction information different from the sensed rotation among a plurality of layers included in an application, an operation that changes directions of the identified one or more layers to a direction corresponding to the sensed rotation, and an operation that displays the changed application. Further, the command may further include an operation that determines whether coordinates of the changed one or more layers match a coordinate of the layer rotated in response to the sensed rotation and an operation that, when the coordinates do not match, matches the coordinates of the one or more layers with the coordinate of the layer rotated in response to the sensed rotation.