WO2020166780A1 - 전자 장치 및 상기 전자 장치에서 실행되는 복수의 어플리케이션의 라이프 사이클을 관리하는 방법 - Google Patents

전자 장치 및 상기 전자 장치에서 실행되는 복수의 어플리케이션의 라이프 사이클을 관리하는 방법 Download PDF

Info

Publication number
WO2020166780A1
WO2020166780A1 PCT/KR2019/012628 KR2019012628W WO2020166780A1 WO 2020166780 A1 WO2020166780 A1 WO 2020166780A1 KR 2019012628 W KR2019012628 W KR 2019012628W WO 2020166780 A1 WO2020166780 A1 WO 2020166780A1
Authority
WO
WIPO (PCT)
Prior art keywords
application program
electronic device
information
life cycle
processor
Prior art date
Application number
PCT/KR2019/012628
Other languages
English (en)
French (fr)
Inventor
조현천
윤재석
임영석
최성열
여재영
Original Assignee
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Priority to US17/427,338 priority Critical patent/US20220100556A1/en
Publication of WO2020166780A1 publication Critical patent/WO2020166780A1/ko

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/14Display of multiple viewports
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2330/00Aspects of power supply; Aspects of display protection and defect management
    • G09G2330/04Display protection
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2354/00Aspects of interface with display user

Definitions

  • Various embodiments of the present disclosure relate to an electronic device and a method of managing a life cycle of a plurality of applications executed in the electronic device.
  • the electronic device may execute an application and provide various functions to a user.
  • the electronic device is capable of multitasking by simultaneously executing a plurality of applications.
  • an application can be switched between a foreground and a background.
  • the plurality of applications executed in the electronic device may include a foreground state that is displayed and executed on a screen, and a background state that is executed without being displayed on the screen.
  • a plurality of applications may operate independently without being linked to each other.
  • an electronic device capable of sharing status information (eg, life cycle event information and additional information) about one application transmitted through a framework and executed on the electronic device.
  • status information eg, life cycle event information and additional information
  • a method of managing the life cycle of a plurality of applications can be provided.
  • An electronic device includes a display; At least one processor operatively connected to the display; And a memory operatively connected to the processor, wherein the memory stores a first application program and a second application program including a user interface, and the memory, when executed, the processor, the first Requesting status information on an application program, receiving the status information on the first application program, and including content generated based at least in part on the received status information, of the second application program Instructions for displaying the user interface on the display can be stored.
  • a method of managing life cycles of a first application program and a second application program executed in an electronic device is, in accordance with a control of a processor, a framework provides state information about the first application program. Transferring to the first application program; Requesting, by a life cycle manager, the transmitted state information from the first application program; Receiving, by the life cycle manager, status information on the first application program; And displaying a user interface of the second application program including content generated based at least in part on the received state information on a display.
  • a computer-readable storage medium storing a program that performs a method of managing life cycles of a first application program and a second application program executed in an electronic device is, under control of a processor, a framework Transmitting the state information on the first application program to the first application program; Requesting, by a life cycle manager, the transmitted state information from the first application program; Receiving, by the life cycle manager, status information on the first application program; And displaying a user interface of the second application program including content generated based at least in part on the received state information on a display.
  • a plurality of applications may share state information about one application transmitted through a framework, so that a plurality of applications may operate in connection with each other. For this reason, a plurality of applications can operate simultaneously without being independent of each other.
  • a plurality of applications share state information about one application transmitted through a framework, so that the plurality of applications are not required to cause unnecessary overloads occurring in the process of switching between the foreground state and the background state. It can reduce head and time consumption.
  • FIG. 1 is a block diagram of an electronic device in a network environment according to various embodiments of the present disclosure.
  • FIG. 2 is a block diagram illustrating a program according to various embodiments of the present invention.
  • FIG. 3 is a diagram illustrating a configuration of an electronic device according to various embodiments of the present disclosure.
  • FIG. 4 is a block diagram illustrating a configuration of a life cycle manager applied to an electronic device according to various embodiments of the present disclosure.
  • FIG. 5 is a diagram illustrating an example of managing life cycles of a plurality of applications executed in an electronic device according to various embodiments of the present disclosure.
  • FIG. 6 is a flowchart illustrating a method of managing life cycles of a plurality of applications executed in an electronic device according to various embodiments of the present disclosure.
  • FIG. 1 is a block diagram of an electronic device 101 in a network environment 100 according to various embodiments.
  • the electronic device 101 communicates with the electronic device 102 through a first network 198 (for example, a short-range wireless communication network), or a second network 199 It is possible to communicate with the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network).
  • the electronic device 101 may communicate with the electronic device 104 through the server 108.
  • the electronic device 101 includes a processor 120, a memory 130, an input device 150, an audio output device 155, a display device 160, an audio module 170, and a sensor module ( 176, interface 177, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196, or antenna module 197 ) Can be included.
  • a sensor module 176, interface 177, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196, or antenna module 197
  • at least one of these components may be omitted or one or more other components may be added to the electronic device 101.
  • some of these components may be implemented as one integrated circuit.
  • the sensor module 176 eg, a fingerprint sensor, an iris sensor, or an illuminance sensor
  • the display device 160 eg, a display.
  • the processor 120 for example, executes software (eg, a program 140) to implement at least one other component (eg, a hardware or software component) of the electronic device 101 connected to the processor 120. It can be controlled and can perform various data processing or operations. According to an embodiment, as at least part of data processing or operation, the processor 120 may store commands or data received from other components (eg, the sensor module 176 or the communication module 190) to the volatile memory 132 The command or data stored in the volatile memory 132 may be processed, and result data may be stored in the nonvolatile memory 134.
  • software eg, a program 140
  • the processor 120 may store commands or data received from other components (eg, the sensor module 176 or the communication module 190) to the volatile memory 132
  • the command or data stored in the volatile memory 132 may be processed, and result data may be stored in the nonvolatile memory 134.
  • the processor 120 includes a main processor 121 (eg, a central processing unit or an application processor), and a secondary processor 123 (eg, a graphics processing unit, an image signal processor) that can be operated independently or together with the main processor 121 (eg, a central processing unit or an application processor). , A sensor hub processor, or a communication processor). Additionally or alternatively, the coprocessor 123 may be set to use lower power than the main processor 121 or to be specialized for a designated function. The secondary processor 123 may be implemented separately from the main processor 121 or as a part thereof.
  • main processor 121 eg, a central processing unit or an application processor
  • a secondary processor 123 eg, a graphics processing unit, an image signal processor
  • the coprocessor 123 may be set to use lower power than the main processor 121 or to be specialized for a designated function.
  • the secondary processor 123 may be implemented separately from the main processor 121 or as a part thereof.
  • the coprocessor 123 is, for example, in place of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, an application is executed). ) While in the state, together with the main processor 121, at least one of the components of the electronic device 101 (for example, the display device 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the functions or states related to. According to an embodiment, the coprocessor 123 (eg, an image signal processor or a communication processor) may be implemented as part of another functionally related component (eg, the camera module 180 or the communication module 190). have.
  • the memory 130 may store various data used by at least one component of the electronic device 101 (eg, the processor 120 or the sensor module 176).
  • the data may include, for example, software (eg, the program 140) and input data or output data for commands related thereto.
  • the memory 130 may include a volatile memory 132 or a nonvolatile memory 134.
  • the program 140 may be stored as software in the memory 130, and may include, for example, an operating system 142, middleware 144, or an application 146.
  • the input device 150 may receive a command or data to be used for a component of the electronic device 101 (eg, the processor 120) from an outside (eg, a user) of the electronic device 101.
  • the input device 150 may include, for example, a microphone, a mouse, a keyboard, or a digital pen (eg, a stylus pen).
  • the sound output device 155 may output an sound signal to the outside of the electronic device 101.
  • the sound output device 155 may include, for example, a speaker or a receiver.
  • the speaker can be used for general purposes such as multimedia playback or recording playback, and the receiver can be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from the speaker or as part of it.
  • the display device 160 may visually provide information to the outside of the electronic device 101 (eg, a user).
  • the display device 160 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the device.
  • the display device 160 may include a touch circuitry set to sense a touch, or a sensor circuit (eg, a pressure sensor) set to measure the strength of a force generated by the touch. have.
  • the audio module 170 may convert sound into an electric signal or, conversely, convert an electric signal into sound. According to an embodiment, the audio module 170 acquires sound through the input device 150, the sound output device 155, or an external electronic device directly or wirelessly connected to the electronic device 101 (for example, Sound may be output through the electronic device 102) (for example, a speaker or headphones).
  • the sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101, or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the detected state. can do.
  • the sensor module 176 is, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.
  • the interface 177 may support one or more designated protocols that may be used for the electronic device 101 to directly or wirelessly connect with an external electronic device (eg, the electronic device 102 ).
  • the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
  • HDMI high definition multimedia interface
  • USB universal serial bus
  • SD card interface Secure Digital Card
  • the connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external electronic device (eg, the electronic device 102 ).
  • the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
  • the haptic module 179 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that a user can perceive through a tactile or motor sense.
  • the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
  • the camera module 180 may capture a still image and a video.
  • the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
  • the power management module 188 may manage power supplied to the electronic device 101.
  • the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
  • PMIC power management integrated circuit
  • the battery 189 may supply power to at least one component of the electronic device 101.
  • the battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
  • the communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, electronic device 102, electronic device 104, or server 108). It is possible to support establishment and communication through the established communication channel.
  • the communication module 190 operates independently of the processor 120 (eg, an application processor), and may include one or more communication processors that support direct (eg, wired) communication or wireless communication.
  • the communication module 190 is a wireless communication module 192 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg : A LAN (local area network) communication module, or a power line communication module) may be included.
  • a corresponding communication module is a first network 198 (for example, a short-range communication network such as Bluetooth, WiFi direct or IrDA (infrared data association)) or a second network 199 (for example, a cellular network, the Internet, or It can communicate with external electronic devices through a computer network (for example, a telecommunication network such as a LAN or WAN).
  • the wireless communication module 192 uses subscriber information (e.g., International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 in a communication network such as the first network 198 or the second network 199.
  • subscriber information e.g., International Mobile Subscriber Identifier (IMSI)
  • IMSI International Mobile Subscriber Identifier
  • the antenna module 197 may transmit a signal or power to the outside (eg, an external electronic device) or receive from the outside.
  • the antenna module may include one antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern.
  • the antenna module 197 may include a plurality of antennas. In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is, for example, provided by the communication module 190 from the plurality of antennas. Can be chosen.
  • the signal or power may be transmitted or received between the communication module 190 and an external electronic device through the at least one selected antenna.
  • other components eg, RFIC
  • other than the radiator may be additionally formed as part of the antenna module 197.
  • At least some of the components are connected to each other through a communication method (e.g., a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI))) between peripheral devices and signals ( E.g. commands or data) can be exchanged with each other.
  • a communication method e.g., a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)
  • GPIO general purpose input and output
  • SPI serial peripheral interface
  • MIPI mobile industry processor interface
  • the command or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199.
  • Each of the electronic devices 102 and 104 may be a device of the same or different type as the electronic device 101.
  • all or part of the operations executed by the electronic device 101 may be executed by one or more of the external electronic devices 102, 104, or 108.
  • the electronic device 101 needs to perform a function or service automatically or in response to a request from a user or another device, the electronic device 101 does not execute the function or service by itself.
  • One or more external electronic devices receiving the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit the execution result to the electronic device 101.
  • the electronic device 101 may process the result as it is or additionally and provide it as at least part of a response to the request.
  • cloud computing, distributed computing, or client-server computing technology Can be used.
  • the program 140 includes an operating system 142 for controlling one or more resources of the electronic device 101, middleware 144, or an application 146 executable in the operating system 142.
  • the operating system 142 may include, for example, Android TM , iOS TM , Windows TM , Symbian TM , Tizen TM , or Bada TM .
  • At least some of the programs 140 are, for example, preloaded in the electronic device 101 at the time of manufacture, or when used by a user, an external electronic device (eg, electronic device 102 or 104), or a server ( 108)) can be downloaded or updated.
  • the operating system 142 may control management (eg, allocation or collection) of one or more system resources (eg, process, memory, or power) of the electronic device 101.
  • the operating system 142 is, additionally or alternatively, other hardware devices of the electronic device 101, for example, the input device 150, the sound output device 155, the display device 160, the audio module 170 , Sensor module 176, interface 177, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196, or One or more driver programs for driving the antenna module 197 may be included.
  • the middleware 144 may provide various functions to the application 146 so that a function or information provided from one or more resources of the electronic device 101 can be used by the application 146.
  • the middleware 144 is, for example, an application manager 201, a window manager 203, a multimedia manager 205, a resource manager 207, a power manager 209, a database manager 211, and a package manager 213 ), a connectivity manager 215, a notification manager 217, a location manager 219, a graphic manager 221, a security manager 223, a call manager 225, or a voice recognition manager 227.
  • I can.
  • the application manager 201 may manage the life cycle of the application 146, for example.
  • the window manager 203 may manage one or more GUI resources used on a screen, for example.
  • the multimedia manager 205 for example, identifies one or more formats required for playback of media files, and performs encoding or decoding of a corresponding media file among the media files by using a codec suitable for the selected corresponding format. Can be done.
  • the resource manager 207 may manage the source code of the application 146 or the space of the memory 130, for example.
  • the power manager 209 manages, for example, capacity, temperature, or power of the battery 189, and may determine or provide related information necessary for the operation of the electronic device 101 using the corresponding information. . According to an embodiment, the power manager 209 may interwork with a basic input/output system (BIOS) (not shown) of the electronic device 101.
  • BIOS basic input/output system
  • the database manager 211 may create, search, or change a database to be used by the application 146, for example.
  • the package manager 213 may manage installation or update of an application distributed in the form of, for example, a package file.
  • the connectivity manager 215 may manage, for example, a wireless connection or a direct connection between the electronic device 101 and an external electronic device.
  • the notification manager 217 may provide a function for notifying the user of the occurrence of a designated event (eg, incoming call, message, or alarm), for example.
  • the location manager 219 may manage location information of the electronic device 101, for example.
  • the graphic manager 221 may manage, for example, one or more graphic effects to be provided to a user or a user interface related thereto.
  • the security manager 223 may provide, for example, system security or user authentication.
  • the telephony manager 225 may manage, for example, an audio call function or a video call function provided by the electronic device 101.
  • the voice recognition manager 227 transmits, for example, a user's voice data to the server 108, and a command corresponding to a function to be performed in the electronic device 101 based at least in part on the voice data, Alternatively, text data converted based at least in part on the voice data may be received from the server 108.
  • the middleware 144 may dynamically delete some of the existing components or add new components.
  • at least a portion of the middleware 144 may be included as a part of the operating system 142 or implemented as separate software different from the operating system 142.
  • the application 146 is, for example, a home 251, a dialer 253, an SMS/MMS 255, an instant message (IM) 257, a browser 259, a camera 261, and an alarm 263. , Contacts (265), voice recognition (267), email (269), calendar (271), media player (273), album (275), watch (277), health (279) (e.g., exercise or blood sugar) Biometric information measurement), or environmental information 281 (eg, air pressure, humidity, or temperature information measurement) application may be included. According to an embodiment, the application 146 may further include an information exchange application (not shown) capable of supporting information exchange between the electronic device 101 and an external electronic device.
  • the information exchange application may include, for example, a notification relay application configured to deliver specified information (eg, a call, a message, or an alarm) to an external electronic device, or a device management application configured to manage an external electronic device. have.
  • the notification relay application for example, transmits notification information corresponding to a specified event (eg, mail reception) generated by another application (eg, email application 269) of the electronic device 101 to an external electronic device. I can. Additionally or alternatively, the notification relay application may receive notification information from an external electronic device and provide it to the user of the electronic device 101.
  • a specified event eg, mail reception
  • email application 269 e.g., email application 269
  • the notification relay application may receive notification information from an external electronic device and provide it to the user of the electronic device 101.
  • the device management application is, for example, an external electronic device that communicates with the electronic device 101 or some components thereof (for example, the display device 160 or the camera module 180). -Off) or a function (eg, brightness, resolution, or focus of the display device 160 or the camera module 180) may be controlled.
  • the device management application may additionally or alternatively support installation, deletion, or update of an application operating in an external electronic device.
  • Electronic devices may be devices of various types.
  • the electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance.
  • a portable communication device eg, a smart phone
  • a computer device e.g., a smart phone
  • a portable multimedia device e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a wearable device e.g., a smart bracelet
  • phrases such as “at least one of, B, or C” may include any one of the items listed together in the corresponding one of the phrases, or all possible combinations thereof.
  • Terms such as “first”, “second”, or “first” or “second” may be used simply to distinguish the component from other corresponding components, and the components may be referred to in other aspects (eg, importance or Order) is not limited.
  • Some (eg, a first) component is referred to as “coupled” or “connected” with or without the terms “functionally” or “communicatively” to another (eg, second) component. When mentioned, it means that any of the above components can be connected to the other components directly (eg by wire), wirelessly, or via a third component.
  • module used in this document may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic blocks, parts, or circuits.
  • the module may be an integrally configured component or a minimum unit of the component or a part thereof that performs one or more functions.
  • the module may be implemented in the form of an application-specific integrated circuit (ASIC).
  • ASIC application-specific integrated circuit
  • Various embodiments of the present document include one or more instructions stored in a storage medium (eg, internal memory 136 or external memory 138) readable by a machine (eg, electronic device 101). It may be implemented as software (eg, the program 140) including them.
  • the processor eg, the processor 120 of the device (eg, the electronic device 101) may call and execute at least one command among one or more commands stored from a storage medium. This makes it possible for the device to be operated to perform at least one function according to the at least one command invoked.
  • the one or more instructions may include code generated by a compiler or code executable by an interpreter.
  • a storage medium that can be read by a device may be provided in the form of a non-transitory storage medium.
  • a method according to various embodiments disclosed in the present document may be provided by being included in a computer program product.
  • Computer program products can be traded between sellers and buyers as commodities.
  • the computer program product is distributed in the form of a device-readable storage medium (e.g. compact disc read only memory (CD-ROM)), or through an application store (e.g. Play Store TM ) or two user devices ( It can be distributed (e.g., downloaded or uploaded) directly between, e.g. smartphones).
  • a device e.g. compact disc read only memory (CD-ROM)
  • an application store e.g. Play Store TM
  • two user devices It can be distributed (e.g., downloaded or uploaded) directly between, e.g. smartphones).
  • at least a portion of the computer program product may be temporarily stored or temporarily generated in a storage medium that can be read by a device such as a server of a manufacturer, a server of an application store, or a memory of a relay server.
  • each component (eg, module or program) of the above-described components may include a singular number or a plurality of entities.
  • one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added.
  • a plurality of components eg, a module or a program
  • the integrated component may perform one or more functions of each component of the plurality of components in the same or similar to that performed by the corresponding component among the plurality of components prior to the integration.
  • operations performed by modules, programs, or other components are sequentially, parallel, repeatedly, or heuristically executed, or one or more of the above operations are executed in a different order or omitted. Or one or more other actions may be added.
  • FIG. 3 is a diagram illustrating a configuration of an electronic device according to various embodiments of the present disclosure.
  • an electronic device 300 may include a memory 310, a display 320, and a processor 330.
  • the electronic device 300 may include, for example, one of a smart phone, a tablet PC, a desktop, a laptop, or a wearable device.
  • the memory 310 may include the memory 130 of FIG. 1.
  • the display 320 may include the display device 160 of FIG. 1.
  • the processor 330 may include the processor 120 of FIG. 1.
  • the memory 310, the display 320, and the processor 330 may be operatively connected.
  • the memory 310 may include a framework 340 and an application layer 350.
  • the memory 310 may store instructions for the processor 330 to provide a framework 340 and an application layer 350 that interfaces with the framework 340 when executed.
  • the memory 310 may store the first application program 351 and the second application program 357 included in the application layer 350.
  • the first application program 351 may include a first user interface 321.
  • the second application program 357 may include a second user interface 322.
  • the memory 310 may store a program (eg, the program 140 of FIGS. 1 and 2) and various data for controlling the overall operation of the electronic device 300.
  • the memory 310 is a user interface (for example, the first user interface 312 and the second user interface 322) provided through the display 320 from the electronic device 300 and when the electronic device 300 processes functions. You can save a variety of necessary setting information.
  • the memory 310 may store instructions that the processor 330 operates during execution.
  • the framework 340 includes status information about the first application program 351 and/or the second application program 357 included in the application layer 350 (for example, life cycle event information And additional information)) may be provided to the application layer 350.
  • the framework 340 applies status information (eg, life cycle event information and additional information) about the first application program 351 and/or the second application program 357 included in the application layer 350. It may be provided from the layer 350.
  • the framework 340 may control management (eg, allocation or collection) of one or more system resources (eg, process, memory, or power) of the electronic device 300.
  • the framework 340 may include one or more driver programs for driving other hardware devices (eg, the display 320) of the electronic device 300.
  • the framework 340 may be software implemented by the processor 330 (eg, the program 140 of FIGS. 1 and 2 ). Instructions for implementing the framework 340 may be stored in the memory 310.
  • the framework 340 may include the operating system 142 of FIGS. 1 and 2.
  • the application layer 350 may include a first application program 351, a life cycle manager 355, and a second application program 357.
  • the first application program 351 may include, for example, the home 251 of FIG. 2 or the launcher.
  • the second application program 357 may include, for example, the voice recognition 267 of FIG. 2 or a voice-based assistant program.
  • the application layer 350 includes the first application program 351 and the second application program 357, but a plurality of other application programs (eg, FIG. 2 May include an application 146 of.
  • the application layer 350 includes status information (eg, life cycle event information and/or information about the first application program 351 and/or the second application program 357) transmitted from the framework 340. Additional information) can be received.
  • the first application program 351 may be executed in the foreground.
  • the second application program 357 may be executed in the background.
  • the first application program 351 may be executed in the background.
  • the second application program 357 may be executed in the foreground.
  • the state information may include first life cycle event information or second life cycle information.
  • first life cycle event information may be delivered to the first application program 351.
  • the second life cycle information may be delivered to the life cycle manager 355 or the second application program 357.
  • the first life cycle event information and the second life cycle information may each include information for allocating or removing resources to the first application program 351 and the second application program 357, or starting or stopping a predetermined operation. I can.
  • status information (eg, first life cycle event information) about the first application program 351 executed in the foreground may include information disclosed in Table 1 below.
  • status information (eg, second life cycle event information) about the second application program 357 executed in the background may include information disclosed in [Table 2] below.
  • status information (eg, first life cycle event information) on the first application program 351 may be transmitted to the life cycle manager 355.
  • the first application program 351 may deliver first additional information different from the first life cycle event information to the life cycle manager 355.
  • the first additional information is input using touch information of the first application program 351 input using the display 320, and an input device (for example, the input device 150 of FIG. 1). It may include key and voice information about the first application program 351 to be used.
  • the first additional information may include information acquired by the electronic device 300 (eg, a configuration of the electronic device 300, a rotation of the display 320, a GPS location of the electronic device 300).
  • the first additional information may include region, location, and coordinate information on which the first application program 351 is displayed on the display 320.
  • the first additional information may include command information for explicitly manipulating the second application program 357 according to business logic of the first application program 351.
  • the first additional information may include setting information stored in the memory 310 to interlock the first application program 351 and the second application program 357.
  • the life cycle manager 355 stores status information (eg, first life cycle event information and/or first additional information) received from the first application program 351 into the second application program 357. ).
  • the status information may be shared between the first application program 351 and the second application program 357.
  • the life cycle manager 355 uses the state information (eg, first life cycle event information and/or first additional information) to determine whether the first application program 351 is running in the foreground or in the background. You can see the situation as to whether it is running.
  • the life cycle manager 355 may be set to share, for example, information updated in the first application program 351 running in the foreground with the second application program 357 running in the background. In this case, even if the framework 340 is not updated, the electronic device 300 may simultaneously operate the first application program 351 and the second application program 357 by using the life cycle manager 355. .
  • the life cycle manager 355 is based on status information (eg, first life cycle event information and/or first additional information), the first application program 351 or the second application program It is possible to determine the update timing of (357). For example, when both the first application program 351 and the second application program 357 are executed in the background, the life cycle manager 355 is the first application program 351 or the second application program 357 Any one of them may be set to reflect the update information when it is executed in the foreground.
  • status information eg, first life cycle event information and/or first additional information
  • the life cycle manager 355 is the first application program 351 or the second application program 357 Any one of them may be set to reflect the update information when it is executed in the foreground.
  • the life cycle manager 355 transmits status information (eg, first life cycle event information and/or first additional information) on the first application program 351 to the framework 340 or A request may be made to the first application program 351. In response to the request, the life cycle manager 355 may receive the status information from the framework 340 or the first application program 351.
  • status information eg, first life cycle event information and/or first additional information
  • the life cycle manager 355 uses the received status information (eg, first life cycle event information and/or first additional information), for example, displayed on the display 320.
  • the progress of the touch and drag on the first user interface 321 of the first application program 351 may be transmitted to the legacy component 359 of the second application program 357.
  • the life cycle manager 355 uses the received status information to determine whether a key input event for executing the second application program 357 is delivered. It can be passed to the component 359.
  • the life cycle manager 355 uses the received status information to determine, for example, a situation as to whether the first application program 351 needs to move or update the second application program 357. 357) of the legacy component 359.
  • the legacy component 359 included in the second application program 357 includes state information (eg, first life cycle event information and/or first addition) transmitted through the life cycle manager 355.
  • Information e.g, first life cycle event information and/or first addition
  • a command for executing an overall control operation on the second application program 357 may be included.
  • the second application program 357 may transmit the second additional information to the first application program 351 by using the life cycle manager 355.
  • the second additional information includes, for example, call back information for status information (eg, first life cycle event information and/or first additional information) transmitted from the first application program 351. Can include.
  • the second additional information may include, for example, life cycle information of the second application program 357.
  • the second additional information may include, for example, coordinate information of the second application program 357 and location setting information of the first application program 351.
  • the second additional information may include, for example, command information for explicitly manipulating the first application program 351 according to the business logic of the second application program 357.
  • the display 320 may display a first user interface 321 related to the first application program 351 provided from the application layer 350.
  • the display 320 may display a second user interface 322 related to the second application program 357 provided from the application layer 350.
  • the display 320 may receive touch and drag signals input from the outside.
  • the display 320 may activate the first application program 351 and/or the second application program 357 based on the input signal (eg, a foreground environment).
  • the display 320 may perform an input function and a display function.
  • the display 320 may include a touch panel.
  • the touch panel may be composed of a touch sensing sensor such as a capacitive overlay, a resistive overlay, or an infrared beam, or may be composed of a pressure sensor.
  • all types of sensor devices capable of sensing contact or pressure of an object may be configured as the touch panel of the present embodiment.
  • the touch panel may sense a user's touch input, generate a sensing signal, and transmit the sensing signal to the processor 330.
  • the sensing signal may include coordinate data input by a user to a touch.
  • the processor 330 may be operatively connected to the memory 310 and the display 320.
  • the processor 330 may be set to execute an operation of managing life cycles of the first application program 351 and the second application program 357 executed in the electronic device 300.
  • the processor 330 may be configured to execute instructions stored in the memory 310.
  • the processor 330 may be set to interface the framework 340 and the application layer 350 as the memory 310 is executed.
  • the processor 330 includes state information (eg, life cycle event information and additional information) about the first application program 351 and/or the second application program 357 included in the application layer 350.
  • Information may be set to be provided by the framework 340 to the application layer 350.
  • the processor 330 may receive state information on the first application program 351 and/or the second application program 357 included in the application layer 350 from the application layer 350. Can be set to be
  • the processor 330 displays the first user interface 321 of the first application program 351 and/or the second user interface 322 of the second application program 357. It can be set to display.
  • the processor 330 requests the life cycle manager 355 for status information (eg, first life cycle event information and/or first additional information) about the first application program 351 to the first application program 351 Can be set to
  • the processor 330 provides the life cycle manager 355 with status information (eg, first life cycle event information and/or first additional information) on the first application program 351. It may be set to receive from 351.
  • the processor 330 is a second user interface of the second application program 357 including content generated based at least in part on the received status information (eg, first life cycle event information and/or first additional information). It may be set to display 322 on the display 320.
  • the processor 330 may control an overall operation of the electronic device 300 and a signal flow between internal components, and may perform a function of processing data.
  • the processor 330 may include, for example, a central processing unit (CPU), an application processor, a communication processor, and the like.
  • the processor 330 may be composed of a single core processor or a multi-core processor, and may be composed of at least one or more processors.
  • FIG. 4 is a block diagram illustrating a configuration of a life cycle manager applied to an electronic device according to various embodiments of the present disclosure.
  • a life cycle manager 355 may include an evaluator 352 and an emitter 354.
  • the life cycle manager 355 provides status information (eg, first life cycle event information and/or first additional information) received from the first application program 351 in a predetermined order without duplication. 2 Can be delivered to the legacy component 359 of the application program 357.
  • status information eg, first life cycle event information and/or first additional information
  • the evaluator 352 includes state information (eg, first life cycle event information and/or first additional information) transmitted from the second application program 357 to the first application program 351.
  • state information eg, first life cycle event information and/or first additional information
  • the state information received from the first application program 351 may be transmitted to the second application program 357.
  • the first application program 351 does not consider the situation of the second application program 357 and uses the life cycle manager 355 to provide status information (eg, first life cycle event information and / Or the first additional information) can be transmitted and shared to the second application program 357.
  • the second application program 357 should receive only the state information of an acceptable situation among the state information of the first application program 351 transmitted using the life cycle manager 355, and can accept it.
  • the state information in the absence of the state may be ignored, or stored in the memory 310, and may be accepted when the state information is received.
  • a first such as onWindowFocusChanged and onConfigurationChanged.
  • Life cycle event information can be received.
  • the second application program 357 receives first life cycle event information such as onWindowFocusChanged and onConfigurationChanged.
  • first life cycle event information such as onWindowFocusChanged and onConfigurationChanged.
  • the second application program 357 is unable to receive the status information (eg, first life cycle event information) transmitted from the first application program 351, and a malfunction occurs in the second application program 357.
  • the evaluator 352 may determine and prepare for the above case.
  • the emitter 354 is configured to generate the second state information (eg, first life cycle event information and/or first additional information) transmitted from the first application program 351 in the order in which they are generated. It can be delivered to the application program 357.
  • the emitter 354 indicates state information of the first application program 351 (eg, first life cycle event information and / Or the first additional information) may be shared and synchronized with the second application program 357 so that the first application program 351 and the second application program 357 can be used simultaneously.
  • the emitter 354 displays the status information transmitted from the first application program 351, for example, onCreated (created for the first time), onStarted (starts to be partially visible on the screen), and onResumed (shows the entire screen). ) Can be delivered to the legacy component 359 of the second application program 357 in the same order.
  • FIG. 5 is a diagram illustrating an example of managing life cycles of a plurality of applications executed in an electronic device according to various embodiments of the present disclosure.
  • FIG. 5A is a first user interface 321 of the first application program 351 displayed through the display 320 of the electronic device 300 (eg, the home ( A user interface (UI) of 251) may be displayed.
  • FIG. 5B is a second user interface 322 of the second application program 357 displayed through the display 320 of the electronic device 300 (eg, the user interface of the voice recognition 267 in FIG. 2 ). (UI)).
  • FIG. 5C illustrates a first user interface 321 of a first application program 351 displayed through the display 320 of the electronic device 300 and a second user interface of the second application program 357 ( A screen 501 in which 322 is simultaneously provided may be displayed.
  • the first user interface 321 of the first application program 351 is activated on the display 320 (eg, a foreground environment) to receive update information or to open the first user interface 321.
  • the life cycle manager 355 may stop the operation of the second application program 357 and operate to be deactivated (eg, a background environment) to reduce the amount of use of the memory 310.
  • the second application program 351 is a life cycle manager ( Through 355, status information of the first application program 351 may be received, and, for example, update information of the first application program 351 may be shared.
  • the electronic device 300 displays the first user interface 321 of the first application program 351 and the second application program 357 through the display 320.
  • a screen 501 in which the user interface 322 can be used at the same time may be displayed.
  • the first application program 351 may be a fitness-related program
  • the second application program 357 may be a sports product-related program.
  • the second application program 357 shares the state information transmitted from the first application program 351 using the life cycle manager 355, so that the second application program 357 The update information of the first application program 351 can be shared and used just by executing 351 ).
  • FIG. 6 is a flowchart illustrating a method of managing life cycles of a plurality of applications executed in an electronic device according to various embodiments of the present disclosure.
  • FIG. 6 may be performed, for example, by the electronic device 300 of FIG. 3.
  • operations 610 to 640 disclosed in FIG. 6 may be performed by the processor 330 in the electronic device 300.
  • the framework 340 may transmit state information (eg, first life cycle event information and/or first additional information) about the first application program 351 to the first application program 351. .
  • state information eg, first life cycle event information and/or first additional information
  • the life cycle manager 355 may request the first application program 351 for status information on the first application program 351.
  • the life cycle manager 355 may receive status information on the first application program 351 from the first application program 351.
  • the processor 330 displays a second user interface 322 of the second application program 357 including content generated based at least in part on the received state information on the first application program 351. It can be displayed on the display 320.
  • the second application program 357 shares the state information on the first application program 351 transmitted through the framework 340, so that the first application program 351 and the A plurality of application programs including the second application program 357 may be linked to each other and operate simultaneously.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • User Interface Of Digital Computer (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

본 발명의 다양한 실시예들은, 전자 장치 및 상기 전자 장치에서 실행되는 복수의 어플리케이션의 라이프 사이클을 관리하는 방법으로서, 상기 전자 장치는, 디스플레이; 상기 디스플레이와 작동적으로 연결된 적어도 하나의 프로세서; 및 상기 프로세서에 작동적으로 연결된 메모리를 포함하며, 상기 메모리는, 사용자 인터페이스를 포함하는 제 1 어플리케이션 프로그램 및 제 2 어플리케이션 프로그램을 저장하고, 상기 메모리는, 실행 시에, 상기 프로세서가, 상기 제 1 어플리케이션 프로그램에 관한 상태(status) 정보를 요청하고, 상기 제 1 어플리케이션 프로그램에 관한 상기 상태 정보를 수신하고, 상기 수신된 상태 정보에 적어도 일부 기초하여 생성된 컨텐츠를 포함하는, 상기 제 2 어플리케이션 프로그램의 사용자 인터페이스를 상기 디스플레이에 표시하도록 하는 인스트럭션들을 저장함으로써, 상기 제 1 어플리케이션 프로그램 및 상기 제 2 어플리케이션 프로그램이 서로 연계되어 동작되도록 할 수 있다. 다른 다양한 실시예가 가능하다.

Description

전자 장치 및 상기 전자 장치에서 실행되는 복수의 어플리케이션의 라이프 사이클을 관리하는 방법
본 발명의 다양한 실시예들은, 전자 장치 및 상기 전자 장치에서 실행되는 복수의 어플리케이션의 라이프 사이클을 관리하는 방법에 관한 것이다.
스마트 폰 및 태블릿 PC와 같은 전자 장치의 기술이 발전함에 따라, 전자 장치에서 실행 가능한 어플리케이션의 종류가 다양해지고 있다.
상기 전자 장치는 어플리케이션을 실행하고, 사용자에게 다양한 기능을 제공할 수 있다. 전자 장치는 복수의 어플리케이션을 동시에 실행시키는 멀티 태스킹이 가능하다.
상기 멀티 태스킹 수행 중, 어플리케이션의 전환은 포어 그라운드(foreground) 및 백 그라운드(background) 간에 이루어질 수 있다.
전자 장치에서 실행되는 복수의 어플리케이션은 화면에 표시되어 실행되는 포어 그라운드 상태와, 화면에 표시되지 않고 실행되는 백 그라운드 상태를 포함할 수 있다.
상기 전자 장치는 어플리케이션의 생명 주기와 관련된 라이프 사이클 이벤트를 각각의 어플리케이션에 전달하기 때문에, 복수의 어플리케이션이 서로 연계되지 않고 독립적으로 동작할 수 있다.
이 경우, 포어 그라운드에서 실행중인 어플리케이션과, 백 그라운드에서 실행중인 어플리케이션을 동시에 사용하지 못할 수 있다. 또한, 복수의 어플리케이션의 전환 과정에서 불필요한 오버헤드 및 시간 소비가 발생될 수 있다.
본 발명의 다양한 실시예에 따르면, 프레임워크를 통해 전달되는 하나의 어플리케이션에 관한 상태 정보(예: 라이프 사이클 이벤트 정보 및 추가 정보)를 복수의 어플리케이션이 공유할 수 있는 전자 장치 및 전자 장치에서 실행되는 복수의 어플리케이션의 라이프 사이클을 관리하는 방법을 제공할 수 있다.
본 발명의 다양한 실시예에 따른 전자 장치는, 디스플레이; 상기 디스플레이와 작동적으로 연결된 적어도 하나의 프로세서; 및 상기 프로세서에 작동적으로 연결된 메모리를 포함하며, 상기 메모리는, 사용자 인터페이스를 포함하는 제 1 어플리케이션 프로그램 및 제 2 어플리케이션 프로그램을 저장하고, 상기 메모리는, 실행 시에, 상기 프로세서가, 상기 제 1 어플리케이션 프로그램에 관한 상태(status) 정보를 요청하고, 상기 제 1 어플리케이션 프로그램에 관한 상기 상태 정보를 수신하고, 상기 수신된 상태 정보에 적어도 일부 기초하여 생성된 컨텐츠를 포함하는, 상기 제 2 어플리케이션 프로그램의 사용자 인터페이스를 상기 디스플레이에 표시하도록 하는 인스트럭션들을 저장할 수 있다.
본 발명의 다양한 실시예에 따른 전자 장치에서 실행되는 제 1 어플리케이션 프로그램 및 제 2 어플리케이션 프로그램의 라이프 사이클을 관리하는 방법은, 프로세서의 제어에 따라, 프레임워크가 상기 제 1 어플리케이션 프로그램에 관한 상태 정보를 상기 제 1 어플리케이션 프로그램에 전달하는 동작; 라이프 사이클 매니저가 상기 전달된 상태 정보를 상기 제 1 어플리케이션 프로그램에 요청하는 동작; 상기 라이프 사이클 매니저가 상기 제 1 어플리케이션 프로그램에 관한 상태 정보를 수신하는 동작; 및 상기 수신된 상태 정보에 적어도 일부 기초하여 생성된 컨텐츠를 포함하는 상기 제 2 어플리케이션 프로그램의 사용자 인터페이스를 디스플레이에 표시하는 동작을 포함할 수 있다.
본 발명의 다양한 실시예에 따른 전자 장치에서 실행되는 제 1 어플리케이션 프로그램 및 제 2 어플리케이션 프로그램의 라이프 사이클을 관리하는 방법을 수행하는 프로그램이 저장된 컴퓨터 판독 가능한 저장매체는, 프로세서의 제어에 따라, 프레임워크가 상기 제 1 어플리케이션 프로그램에 관한 상태 정보를 상기 제 1 어플리케이션 프로그램에 전달하는 동작; 라이프 사이클 매니저가 상기 전달된 상태 정보를 상기 제 1 어플리케이션 프로그램에 요청하는 동작; 상기 라이프 사이클 매니저가 상기 제 1 어플리케이션 프로그램에 관한 상태 정보를 수신하는 동작; 및 상기 수신된 상태 정보에 적어도 일부 기초하여 생성된 컨텐츠를 포함하는 상기 제 2 어플리케이션 프로그램의 사용자 인터페이스를 디스플레이에 표시하는 동작을 포함하는 방법을 수행할 수 있다.
본 발명의 다양한 실시예들에 따르면, 프레임워크를 통해 전달되는 하나의 어플리케이션에 관한 상태 정보를 복수의 어플리케이션이 공유함으로써, 복수의 어플리케이션이 서로 연계되어 동작할 수 있다. 이로 인해, 복수의 어플리케이션이 서로 독립적이지 않고 동시에 동작할 수 있다.
본 발명의 다양한 실시예들에 따르면, 프레임워크를 통해 전달되는 하나의 어플리케이션에 관한 상태 정보를 복수의 어플리케이션이 공유함으로써, 복수의 어플리케이션이 포어 그라운드 상태 및 백 그라운드 상태 간의 전환 과정에서 발생되는 불필요한 오버헤드 및 시간 소비를 줄일 수 있다.
도 1은 본 발명의 다양한 실시예들에 따른 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는 본 발명의 다양한 실시예에 따른 프로그램을 예시하는 블록도이다.
도 3은 본 발명의 다양한 실시예에 따른 전자 장치의 구성을 나타내는 도면이다.
도 4는 본 발명의 다양한 실시예에 따른 전자 장치에 적용되는 라이프 사이클 매니저의 구성을 나타내는 블록도이다.
도 5는 본 발명의 다양한 실시예에 따른 전자 장치에서 실행되는 복수의 어플리케이션의 라이프 사이클을 관리하는 예를 나타내는 도면이다.
도 6은 본 발명의 다양한 실시예에 따른 전자 장치에서 실행되는 복수의 어플리케이션의 라이프 사이클을 관리하는 방법을 나타내는 흐름도이다.
도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다. 도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108)와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 장치(150), 음향 출력 장치(155), 표시 장치(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 표시 장치(160) 또는 카메라 모듈(180))이 생략되거나, 하나 이상의 다른 구성 요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들은 하나의 통합된 회로로 구현될 수 있다. 예를 들면, 센서 모듈(176)(예: 지문 센서, 홍채 센서, 또는 조도 센서)은 표시 장치(160)(예: 디스플레이)에 임베디드된 채 구현될 수 있다.
프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 로드하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일 실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서), 및 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 추가적으로 또는 대체적으로, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 또는 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.
보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 표시 장치(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일 실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성 요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다.
메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다.
프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다.
입력 장치(150)는, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 장치(150)는, 예를 들면, 마이크, 마우스, 키보드, 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다.
음향 출력 장치(155)는 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 장치(155)는, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있고, 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일 실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.
표시 장치(160)는 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 표시 장치(160)는, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일 실시예에 따르면, 표시 장치(160)는 터치를 감지하도록 설정된 터치 회로(touch circuitry), 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 센서 회로(예: 압력 센서)를 포함할 수 있다.
오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일 실시예에 따르면, 오디오 모듈(170)은, 입력 장치(150)를 통해 소리를 획득하거나, 음향 출력 장치(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102)) (예: 스피커 또는 헤드폰))를 통해 소리를 출력할 수 있다.
센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일 실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다.
인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일 실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.
연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일 실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.
햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일 실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.
카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일 실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.
전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일 실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.
배터리(189)는 전자 장치(101)의 적어도 하나의 구성 요소에 전력을 공급할 수 있다. 일 실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.
통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108))간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일 실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi direct 또는 IrDA(infrared data association) 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 셀룰러 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부 전자 장치와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성 요소(예: 단일 칩)으로 통합되거나, 또는 서로 별도의 복수의 구성 요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 및 인증할 수 있다.
안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일 실시예에 따르면, 안테나 모듈은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 하나의 안테나를 포함할 수 있다. 일 실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC)이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))를 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.
일 실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 전자 장치(102, 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일 실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부 전자 장치들(102, 104, or 108) 중 하나 이상의 외부 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다.. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다.
도 2는 다양한 실시예에 따른 프로그램(140)을 예시하는 블록도(200)이다. 일 실시예에 따르면, 프로그램(140)은 전자 장치(101)의 하나 이상의 리소스들을 제어하기 위한 운영 체제(142), 미들웨어(144), 또는 상기 운영 체제(142)에서 실행 가능한 어플리케이션(146)을 포함할 수 있다. 운영 체제(142)는, 예를 들면, AndroidTM, iOSTM, WindowsTM, SymbianTM, TizenTM, 또는 BadaTM를 포함할 수 있다. 프로그램(140) 중 적어도 일부 프로그램은, 예를 들면, 제조 시에 전자 장치(101)에 프리로드되거나, 또는 사용자에 의해 사용 시 외부 전자 장치(예: 전자 장치(102 또는 104), 또는 서버(108))로부터 다운로드되거나 갱신 될 수 있다.
운영 체제(142)는 전자 장치(101)의 하나 이상의 시스템 리소스들(예: 프로세스, 메모리, 또는 전원)의 관리(예: 할당 또는 회수)를 제어할 수 있다. 운영 체제(142)는, 추가적으로 또는 대체적으로, 전자 장치(101)의 다른 하드웨어 디바이스, 예를 들면, 입력 장치(150), 음향 출력 장치(155), 표시 장치(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 구동하기 위한 하나 이상의 드라이버 프로그램들을 포함할 수 있다.
미들웨어(144)는 전자 장치(101)의 하나 이상의 리소스들로부터 제공되는 기능 또는 정보가 어플리케이션(146)에 의해 사용될 수 있도록 다양한 기능들을 어플리케이션(146)으로 제공할 수 있다. 미들웨어(144)는, 예를 들면, 어플리케이션 매니저(201), 윈도우 매니저(203), 멀티미디어 매니저(205), 리소스 매니저(207), 파워 매니저(209), 데이터베이스 매니저(211), 패키지 매니저(213), 커넥티비티 매니저(215), 노티피케이션 매니저(217), 로케이션 매니저(219), 그래픽 매니저(221), 시큐리티 매니저(223), 통화 매니저(225), 또는 음성 인식 매니저(227)를 포함할 수 있다.
어플리케이션 매니저(201)는, 예를 들면, 어플리케이션(146)의 생명 주기를 관리할 수 있다. 윈도우 매니저(203)는, 예를 들면, 화면에서 사용되는 하나 이상의 GUI 자원들을 관리할 수 있다. 멀티미디어 매니저(205)는, 예를 들면, 미디어 파일들의 재생에 필요한 하나 이상의 포맷들을 파악하고, 그 중 선택된 해당하는 포맷에 맞는 코덱을 이용하여 상기 미디어 파일들 중 해당하는 미디어 파일의 인코딩 또는 디코딩을 수행할 수 있다. 리소스 매니저(207)는, 예를 들면, 어플리케이션(146)의 소스 코드 또는 메모리(130)의 공간을 관리할 수 있다. 파워 매니저(209)는, 예를 들면, 배터리(189)의 용량, 온도 또는 전원을 관리하고, 이 중 해당 정보를 이용하여 전자 장치(101)의 동작에 필요한 관련 정보를 결정 또는 제공할 수 있다. 일 실시예에 따르면, 파워 매니저(209)는 전자 장치(101)의 바이오스(BIOS: basic input/output system)(미도시)와 연동할 수 있다.
데이터베이스 매니저(211)는, 예를 들면, 어플리케이션(146)에 의해 사용될 데이터베이스를 생성, 검색, 또는 변경할 수 있다. 패키지 매니저(213)는, 예를 들면, 패키지 파일의 형태로 배포되는 어플리케이션의 설치 또는 갱신을 관리할 수 있다. 커넥티비티 매니저(215)는, 예를 들면, 전자 장치(101)와 외부 전자 장치 간의 무선 연결 또는 직접 연결을 관리할 수 있다. 노티피케이션 매니저(217)는, 예를 들면, 지정된 이벤트(예: 착신 통화, 메시지, 또는 알람)의 발생을 사용자에게 알리기 위한 기능을 제공할 수 있다. 로케이션 매니저(219)는, 예를 들면, 전자 장치(101)의 위치 정보를 관리할 수 있다. 그래픽 매니저(221)는, 예를 들면, 사용자에게 제공될 하나 이상의 그래픽 효과들 또는 이와 관련된 사용자 인터페이스를 관리할 수 있다.
시큐리티 매니저(223)는, 예를 들면, 시스템 보안 또는 사용자 인증을 제공할 수 있다. 통화(telephony) 매니저(225)는, 예를 들면, 전자 장치(101)에 의해 제공되는 음성 통화 기능 또는 영상 통화 기능을 관리할 수 있다. 음성 인식 매니저(227)는, 예를 들면, 사용자의 음성 데이터를 서버(108)로 전송하고, 그 음성 데이터에 적어도 일부 기반하여 전자 장치(101)에서 수행될 기능에 대응하는 명령어(command), 또는 그 음성 데이터에 적어도 일부 기반하여 변환된 문자 데이터를 서버(108)로부터 수신할 수 있다. 일 실시예에 따르면, 미들웨어(144)는 동적으로 기존의 구성요소를 일부 삭제하거나 새로운 구성요소들을 추가할 수 있다. 일 실시예에 따르면, 미들웨어(144)의 적어도 일부는 운영 체제(142)의 일부로 포함되거나, 또는 운영 체제(142)와는 다른 별도의 소프트웨어로 구현될 수 있다.
어플리케이션(146)은, 예를 들면, 홈(251), 다이얼러(253), SMS/MMS(255), IM(instant message)(257), 브라우저(259), 카메라(261), 알람(263), 컨택트(265), 음성 인식(267), 이메일(269), 달력(271), 미디어 플레이어(273), 앨범(275), 와치(277), 헬스(279)(예: 운동량 또는 혈당과 같은 생체 정보를 측정), 또는 환경 정보(281)(예: 기압, 습도, 또는 온도 정보 측정) 어플리케이션을 포함할 수 있다. 일 실시예에 따르면, 어플리케이션(146)은 전자 장치(101)와 외부 전자 장치 사이의 정보 교환을 지원할 수 있는 정보 교환 어플리케이션(미도시)을 더 포함할 수 있다. 정보 교환 어플리케이션은, 예를 들면, 외부 전자 장치로 지정된 정보 (예: 통화, 메시지, 또는 알람)를 전달하도록 설정된 노티피케이션 릴레이 어플리케이션, 또는 외부 전자 장치를 관리하도록 설정된 장치 관리 어플리케이션을 포함할 수 있다.
노티피케이션 릴레이 어플리케이션은, 예를 들면, 전자 장치(101)의 다른 어플리케이션(예: 이메일 어플리케이션(269))에서 발생된 지정된 이벤트(예: 메일 수신)에 대응하는 알림 정보를 외부 전자 장치로 전달할 수 있다. 추가적으로 또는 대체적으로, 노티피케이션 릴레이 어플리케이션은 외부 전자 장치로부터 알림 정보를 수신하여 전자 장치(101)의 사용자에게 제공할 수 있다.
장치 관리 어플리케이션은, 예를 들면, 전자 장치(101)와 통신하는 외부 전자 장치 또는 그 일부 구성 요소(예: 표시 장치(160) 또는 카메라 모듈(180))의 전원(예: 턴-온 또는 턴-오프) 또는 기능(예: 표시 장치(160) 또는 카메라 모듈(180)의 밝기, 해상도, 또는 포커스)을 제어할 수 있다. 장치 관리 어플리케이션은, 추가적으로 또는 대체적으로, 외부 전자 장치에서 동작하는 어플리케이션의 설치, 삭제, 또는 갱신을 지원할 수 있다.
본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트 폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.
본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나","A 또는 B 중 적어도 하나,""A, B 또는 C," "A, B 및 C 중 적어도 하나,"및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.
본 문서에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로 등의 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일 실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다.
본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장매체 는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.
일 실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory (CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.
다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.
도 3은 본 발명의 다양한 실시예에 따른 전자 장치의 구성을 도면이다.
도 3을 참조하면, 본 발명의 다양한 실시예에 따른 전자 장치(300)는, 메모리(310), 디스플레이(320) 및 프로세서(330)를 포함할 수 있다.
다양한 실시예에 따르면, 상기 전자 장치(300)(예; 도 1의 전자 장치(101))는, 예를 들어, 스마트 폰, 태블릿 PC, 데스크탑, 랩탑 또는 웨어러블 장치 중의 하나를 포함할 수 있다. 메모리(310)는 도 1의 메모리(130)를 포함할 수 있다. 디스플레이(320)는 도 1의 표시 장치(160)를 포함할 수 있다. 프로세서(330)는 도 1의 프로세서(120)를 포함할 수 있다. 상기 메모리(310), 디스플레이(320) 및 프로세서(330)는 작동적으로 연결될 수 있다.
일 실시예에 따르면, 상기 메모리(310)는 프레임워크(340) 및 어플리케이션 층(350)을 포함할 수 있다. 메모리(310)는 실행 시에 프로세서(330)가 프레임워크(340) 및 상기 프레임워크(340)와 인터페이스하는 어플리케이션 층(350)을 제공하도록 하는 인스트럭션들을 저장할 수 있다. 메모리(310)는 어플리케이션 층(350)에 포함된 제 1 어플리케이션 프로그램(351) 및 제 2 어플리케이션 프로그램(357)을 저장할 수 있다. 제 1 어플리케이션 프로그램(351)은 제 1 사용자 인터페이스(321)를 포함할 수 있다. 제 2 어플리케이션 프로그램(357)은 제 2 사용자 인터페이스(322)를 포함할 수 있다.
다양한 실시예에 따르면, 상기 메모리(310)는 전자 장치(300)의 전반적인 동작을 제어하는 프로그램(예: 도 1 및 도 2의 프로그램(140)) 및 다양한 데이터를 저장할 수 있다. 메모리(310)는 전자 장치(300)에서 디스플레이(320)를 통해 제공되는 사용자 인터페이스(예: 제 1 사용자 인터페이스(312) 및 제 2 사용자 인터페이스(322)) 및 전자 장치(300)에서 기능 처리 시 필요한 다양한 설정 정보를 저장할 수 있다. 메모리(310)는 실행 시에 프로세서(330)가 동작시키는 인스트럭션들을 저장할 수 있다.
일 실시예에 따르면, 상기 프레임워크(340)는 어플리케이션 층(350)에 포함된 제 1 어플리케이션 프로그램(351) 및/또는 제 2 어플리케이션 프로그램(357)에 관한 상태 정보((예: 라이프 사이클 이벤트 정보 및 추가 정보))를 어플리케이션 층(350)에 제공할 수 있다. 프레임워크(340)는 어플리케이션 층(350)에 포함된 제 1 어플리케이션 프로그램(351) 및/또는 제 2 어플리케이션 프로그램(357)에 관한 상태 정보((예: 라이프 사이클 이벤트 정보 및 추가 정보))를 어플리케이션 층(350)으로부터 제공받을 수 있다.
다양한 실시예에 따르면, 상기 프레임워크(340)는 전자 장치(300)의 하나 이상의 시스템 리소스들(예: 프로세스, 메모리 또는 전원)의 관리(예: 할당 또는 회수)를 제어할 수 있다. 프레임워크(340)는 전자 장치(300)의 다른 하드웨어 디바이스(예: 디스플레이(320))를 구동하기 위한 하나 이상의 드라이버 프로그램을 포함할 수 있다. 프레임워크(340)는 프로세서(330)에 의해 구현되는 소프트웨어(예: 도 1 및 도 2의 프로그램(140))일 수 있다. 프레임워크(340)의 구현을 위한 명령어들은 메모리(310)에 저장될 수 있다. 프레임워크(340)는 도 1 및 도 2의 운영 체제(142)를 포함할 수 있다.
일 실시예에 따르면, 상기 어플리케이션 층(350)은 제 1 어플리케이션 프로그램(351), 라이프 사이클 매니저(355) 및 제 2 어플리케이션 프로그램(357)을 포함할 수 있다. 제 1 어플리케이션 프로그램(351)은, 예를 들어, 도 2의 홈(251) 또는 론처(launcher)를 포함할 수 있다. 제 2 어플리케이션 프로그램(357)은, 예를 들어, 도 2의 음성 인식(267) 또는 음성 기반 어시스턴트 프로그램을 포함할 수 있다.
다양한 실시예에 따르면, 도 3에서는 어플리케이션 층(350)이 제 1 어플리케이션 프로그램(351) 및 제 2 어플리케이션 프로그램(357)을 포함하는 것으로 설명하고 있지만, 이외의 다른 복수의 어플리케이션 프로그램(예: 도 2의 어플리케이션(146))을 포함할 수 있다.
일 실시예에 따르면, 상기 어플리케이션 층(350)은 프레임워크(340)로부터 전달되는 제 1 어플리케이션 프로그램(351) 및/또는 제 2 어플리케이션 프로그램(357)에 관한 상태 정보(예: 라이프 사이클 이벤트 정보 및 추가 정보)를 수신할 수 있다. 제 1 어플리케이션 프로그램(351)은 포어 그라운드에서 실행될 수 있다. 제 2 어플리케이션 프로그램(357)은 백 그라운드에서 실행될 수 있다. 제 1 어플리케이션 프로그램(351)은 백 그라운드에서 실행될 수 있다. 제 2 어플리케이션 프로그램(357)은 포어 그라운드에서 실행될 수 있다.
일 실시예에 따르면, 상기 상태 정보는 제 1 라이프 사이클 이벤트 정보 또는 제 2 라이프 사이클 정보를 포함할 수 있다. 예를 들어, 상기 제 1 라이프 사이클 이벤트 정보는 제 1 어플리케이션 프로그램(351)에 전달될 수 있다. 상기 제 2 라이프 사이클 정보는 라이프 사이클 매니저(355) 또는 제 2 어플리케이션 프로그램(357)에 전달될 수 있다. 제 1 라이프 사이클 이벤트 정보 및 제 2 라이프 사이클 정보는 각각 제 1 어플리케이션 프로그램(351) 및 제 2 어플리케이션 프로그램(357)에 자원을 할당하거나, 제거하거나, 소정의 동작을 시작하거나 정지시키는 정보를 포함할 수 있다.
일 실시예에 따르면, 상기 포어 그라운드에서 실행되는 제 1 어플리케이션 프로그램(351)에 관한 상태 정보(예: 제 1 라이프 사이클 이벤트 정보)는 아래의 [표 1]에 개시된 정보를 포함할 수 있다.
onCreated 처음으로 생성됨
onStarted 화면에 일부가 보이기 시작함
onResumed 화면 전체에 보임
onPaused 화면에 일부만 보이기 시작함
onStopped 화면에 보이지 않음
onDestroyed 완전히 종료됨
onWindowFocusChanged 화면에 보이는 상태에서 입력 포커스를 가져옴
onConfigurationChanged 화면 전체에 변경사항이 생겨 화면을 업데이트해야 함
[표 1] 제 1 라이프 사이클 이벤트 정보
일 실시예에 따르면, 상기 백 그라운드에서 실행되는 제 2 어플리케이션 프로그램(357)에 관한 상태 정보(예: 제 2 라이프 사이클 이벤트 정보)는 아래의 [표 2]에 개시된 정보를 포함할 수 있다.
onCreated 처음으로 생성됨
onStartCommand 동작을 위한 커맨드가 전달됨
onBind 다른 어플리케이션 프로그램과 연결됨
nUnBind 다른 어플리케이션 프로그램과 연결이 해제됨
onDestroyed 완전히 종료됨
[표 2] 제 2 라이프 사이클 이벤트 정보
다양한 실시예에 따르면, 상기 제 1 어플리케이션 프로그램(351)에 관한 상태 정보(예: 제 1 라이프 사이클 이벤트 정보)는 라이프 사이클 매니저(355)에 전달될 수 있다. 제 1 어플리케이션 프로그램(351)은 상기 제 1 라이프 사이클 이벤트 정보와는 다른 제 1 추가 정보를 라이프 사이클 매니저(355)에 전달할 수 있다.
일 실시예에 따르면, 상기 제 1 추가 정보는 디스플레이(320)를 이용하여 입력되는 제 1 어플리케이션 프로그램(351)의 터치 정보, 입력 장치(예: 도 1의 입력 장치(150))를 이용하여 입력되는 제 1 어플리케이션 프로그램(351)에 관한 키 및 보이스 정보를 포함할 수 있다. 제 1 추가 정보는 전자 장치(300)에서 자체적으로 획득되는 정보(예: 전자 장치(300)의 구성, 디스플레이(320)의 로테이션, 전자 장치(300)의 GPS 로케이션)를 포함할 수 있다. 제 1 추가 정보는 제 1 어플리케이션 프로그램(351)이 디스플레이(320)에 표시되는 영역, 위치 및 좌표 정보를 포함할 수 있다. 제 1 추가 정보는 제 1 어플리케이션 프로그램(351)의 비즈니스 로직(business logic)에 따라 제 2 어플리케이션 프로그램(357)을 명시적으로 조작하기 위한 커맨드 정보를 포함할 수 있다. 제 1 추가 정보는 제 1 어플리케이션 프로그램(351) 및 제 2 어플리케이션 프로그램(357)을 연동하기 위해 메모리(310)에 저장된 설정 정보를 포함할 수 있다.
일 실시예에 따르면, 상기 라이프 사이클 매니저(355)는 제 1 어플리케이션 프로그램(351)으로부터 수신된 상태 정보(예: 제 1 라이프 사이클 이벤트 정보 및/또는 제 1 추가 정보)를 제 2 어플리케이션 프로그램(357)에 전달할 수 있다. 상기 상태 정보는 제 1 어플리케이션 프로그램(351) 및 제 2 어플리케이션 프로그램(357) 사이에서 공유될 수 있다. 라이프 사이클 매니저(355)는 상기 상태 정보(예: 제 1 라이프 사이클 이벤트 정보 및/또는 제 1 추가 정보)를 이용하여 제 1 어플리케이션 프로그램(351)이 포어 그라운드에서 실행되는 상태인지, 또는 백 그라운드에서 실행되는 상태인지에 대한 상황을 파악할 수 있다. 라이프 사이클 매니저(355)는, 예를 들어, 포어 그라운드에서 실행 중인 제 1 어플리케이션 프로그램(351)에서 업데이트된 정보를 백 그라운드에서 실행 중인 제 2 어플리케이션 프로그램(357)과 공유하도록 설정될 수 있다. 이 경우, 전자 장치(300)는 프레임워크(340)가 업데이트되지 않더라도, 라이프 사이클 매니저(355)를 이용하여, 제 1 어플리케이션 프로그램(351) 및 제 2 어플리케이션 프로그램(357)을 동시에 동작시킬 수 있다.
일 실시예에 따르면, 상기 라이프 사이클 매니저(355)는 상태 정보(예: 제 1 라이프 사이클 이벤트 정보 및/또는 제 1 추가 정보)를 기초로 하여, 제 1 어플리케이션 프로그램(351) 또는 제 2 어플리케이션 프로그램(357)의 업데이트 시점을 결정할 수 있다. 예를 들어, 제 1 어플리케이션 프로그램(351) 및 제 2 어플리케이션 프로그램(357)이 모두 백 그라운드에서 실행되는 경우, 라이프 사이클 매니저(355)는 제 1 어플리케이션 프로그램(351) 또는 제 2 어플리케이션 프로그램(357) 중 어느 하나가 포어 그라운드에서 실행되는 시점에 업데이트 정보를 반영하도록 설정될 수 있다.
일 실시예에 따르면, 상기 라이프 사이클 매니저(355)는 상기 제 1 어플리케이션 프로그램(351)에 관한 상태 정보(예: 제 1 라이프 사이클 이벤트 정보 및/또는 제 1 추가 정보)를 프레임워크(340) 또는 제 1 어플리케이션 프로그램(351)에 요청할 수 있다. 상기 요청에 따라, 라이프 사이클 매니저(355)는 프레임워크(340) 또는 제 1 어플리케이션 프로그램(351)으로부터 상기 상태 정보를 수신할 수 있다.
다양한 실시예에 따르면, 상기 라이프 사이클 매니저(355)는 상기 수신된 상태 정보(예: 제 1 라이프 사이클 이벤트 정보 및/또는 제 1 추가 정보)를 이용하여, 예를 들어, 디스플레이(320)에 표시된 제 1 어플리케이션 프로그램(351)의 제 1 사용자 인터페이스(321)에 대한 터치 및 드래그의 진행 상황을 제 2 어플리케이션 프로그램(357)의 레거시 컴포넌트(359)에 전달할 수 있다. 라이프 사이클 매니저(355)는 상기 수신된 상태 정보를 이용하여, 예를 들어, 제 2 어플리케이션 프로그램(357)을 실행해야 하는 키 입력 이벤트가 전달되는지에 대한 상황을 제 2 어플리케이션 프로그램(357)의 레거시 컴포넌트(359)에 전달할 수 있다. 라이프 사이클 매니저(355)는 상기 수신된 상태 정보를 이용하여, 예를 들어, 제 1 어플리케이션 프로그램(351)이 제 2 어플리케이션 프로그램(357)을 이동 또는 업데이트해야 하는지에 대한 상황을 제 2 어플리케이션 프로그램(357)의 레거시 컴포넌트(359)에 전달할 수 있다.
일 실시예에 따르면, 상기 제 2 어플리케이션 프로그램(357)에 포함된 레거시 컴포넌트(359)는 라이프 사이클 매니저(355)를 통해 전달되는 상태 정보(예: 제 1 라이프 사이클 이벤트 정보 및/또는 제 1 추가 정보)를 이용하여, 제 2 어플리케이션 프로그램(357)에 관한 전반적인 제어 동작을 실행하는 커맨드를 포함할 수 있다.
다양한 실시예에 따르면, 상기 제 2 어플리케이션 프로그램(357)은 라이프 사이클 매니저(355)를 이용하여, 제 2 추가 정보를 제 1 어플리케이션 프로그램(351)에 전달할 수 있다. 상기 제 2 추가 정보는, 예를 들어, 제 1 어플리케이션 프로그램(351)으로부터 전달되는 상태 정보(예: 제 1 라이프 사이클 이벤트 정보 및/또는 제 1 추가 정보)에 대한 콜 백(call back) 정보를 포함할 수 있다. 제 2 추가 정보는, 예를 들어, 제 2 어플리케이션 프로그램(357)의 라이프 사이클 정보를 포함할 수 있다. 제 2 추가 정보는, 예를 들어, 제 2 어플리케이션 프로그램(357)의 좌표 정보 및 제 1 어플리케이션 프로그램(351)의 위치 설정 정보를 포함할 수 있다. 제 2 추가 정보는, 예를 들어, 제 2 어플리케이션 프로그램(357)의 비즈니스 로직(business logic)에 따라 제 1 어플리케이션 프로그램(351)을 명시적으로 조작하기 위한 커맨드 정보를 포함할 수 있다.
일 실시예에 따르면, 상기 디스플레이(320)는 어플리케이션 층(350)으로부터 제공되는 제 1 어플리케이션 프로그램(351)에 관한 제 1 사용자 인터페이스(321)를 표시할 수 있다. 디스플레이(320)는 어플리케이션 층(350)으로부터 제공되는 제 2 어플리케이션 프로그램(357)에 관한 제 2 사용자 인터페이스(322)를 표시할 수 있다. 디스플레이(320)는 외부로부터 입력되는 터치 및 드래그 신호를 수신할 수 있다. 디스플레이(320)는 입력 신호를 기초로 제 1 어플리케이션 프로그램(351) 및/또는 제 2 어플리케이션 프로그램(357)을 활성화(예: 포어 그라운드 환경)할 수 있다.
다양한 실시예에 따르면, 디스플레이(320)는 입력 기능 및 표시 기능을 수행할 수 있다. 디스플레이(320)는 터치 패널을 포함할 수 있다. 터치 패널은 정전용량 방식(capacitive overlay), 압력식 저항막 방식(resistive overlay), 적외선 감지 방식(infrared beam) 등의 터치 감지 센서로 구성되거나, 압력 감지 센서(pressure sensor)로 구성될 수 있다. 상기 센서들 이외에도 물체의 접촉 또는 압력을 감지할 수 있는 모든 종류의 센서 기기가 본 실시예의 터치 패널로 구성될 수 있다. 상기 터치 패널은 사용자의 터치 입력을 감지하고, 감지 신호를 발생시켜 프로세서(330)로 전송할 수 있다. 상기 감지 신호에는 사용자가 터치를 입력한 좌표 데이터가 포함될 수 있다.
일 실시예에 따르면, 상기 프로세서(330)는 메모리(310) 및 디스플레이(320)와 작동적으로 연결될 수 있다. 프로세서(330)는 전자 장치(300)에서 실행되는 제 1 어플리케이션 프로그램(351) 및 제 2 어플리케이션 프로그램(357)의 라이프 사이클을 관리하는 동작을 실행하도록 설정될 수 있다. 프로세서(330)는 메모리(310)에 저장된 인스트럭션들을 실행하도록 설정될 수 있다. 프로세서(330)는 메모리(310)가 실행됨에 따라 프레임워크(340) 및 어플리케이션 층(350)을 인터페이스하도록 설정될 수 있다.
일 실시예에 따르면, 프로세서(330)는 어플리케이션 층(350)에 포함된 제 1 어플리케이션 프로그램(351) 및/또는 제 2 어플리케이션 프로그램(357)에 관한 상태 정보((예: 라이프 사이클 이벤트 정보 및 추가 정보))를 프레임워크(340)가 어플리케이션 층(350)에 제공하도록 설정될 수 있다. 프로세서(330)는 어플리케이션 층(350)에 포함된 제 1 어플리케이션 프로그램(351) 및/또는 제 2 어플리케이션 프로그램(357)에 관한 상태 정보를 프레임워크(340)가 어플리케이션 층(350)으로부터 제공받을 수 있도록 설정될 수 있다.
일 실시예에 따르면, 프로세서(330)는 디스플레이(320)가 제 1 어플리케이션 프로그램(351)의 제 1 사용자 인터페이스(321) 및/또는 제 2 어플리케이션 프로그램(357)의 제 2 사용자 인터페이스(322)를 표시하도록 설정될 수 있다. 프로세서(330)는 라이프 사이클 매니저(355)가 제 1 어플리케이션 프로그램(351)에 관한 상태 정보(예: 제 1 라이프 사이클 이벤트 정보 및/또는 제 1 추가 정보)를 제 1 어플리케이션 프로그램(351)에 요청하도록 설정될 수 있다. 상기 요청에 따라, 프로세서(330)는 라이프 사이클 매니저(355)가 제 1 어플리케이션 프로그램(351)에 관한 상태 정보(예: 제 1 라이프 사이클 이벤트 정보 및/또는 제 1 추가 정보)를 제 1 어플리케이션 프로그램(351)으로부터 수신하도록 설정될 수 있다. 프로세서(330)는 상기 수신된 상태 정보(예: 제 1 라이프 사이클 이벤트 정보 및/또는 제 1 추가 정보)에 적어도 일부 기초하여 생성된 컨텐츠를 포함하는 제 2 어플리케이션 프로그램(357)의 제 2 사용자 인터페이스(322)를 디스플레이(320)에 표시하도록 설정될 수 있다.
다양한 실시예에 따르면, 상기 프로세서(330)는 전자 장치(300)의 전반적인 동작 및 내부 구성요소들 간의 신호 흐름을 제어하고, 데이터를 처리하는 기능을 수행할 수 있다. 프로세서(330)는, 예를 들어, 중앙 처리 장치(Central Processing Unit; CPU), 어플리케이션 프로세서(Application Processor) 및 통신 프로세서(Communication Processor) 등으로 구성될 수 있다. 프로세서(330)는 싱글 코어 프로세서(single core processor) 또는 멀티 코어 프로세서(multi-core processor)로 구성될 수 있으며, 적어도 하나 이상의 프로세서로 구성될 수 있다.
도 4는 본 발명의 다양한 실시예에 따른 전자 장치에 적용되는 라이프 사이클 매니저의 구성을 나타내는 블록도이다.
도 4를 참조하면, 본 발명의 다양한 실시예에 따른 라이프 사이클 매니저(355)는 이밸류에이터(evaluator, 352) 및 에미터(emitter, 354)를 포함할 수 있다.
다양한 실시예에 따르면, 라이프 사이클 매니저(355)는 제 1 어플리케이션 프로그램(351)으로부터 수신된 상태 정보(예: 제 1 라이프 사이클 이벤트 정보 및/또는 제 1 추가 정보)를 중복 없이 미리 정해진 순서대로 제 2 어플리케이션 프로그램(357)의 레거시 컴포넌트(359)에 전달할 수 있다.
일 실시예에 따르면, 상기 이밸류에이터(352)는 제 2 어플리케이션 프로그램(357)이 제 1 어플리케이션 프로그램(351)으로부터 전달되는 상태 정보(예: 제 1 라이프 사이클 이벤트 정보 및/또는 제 1 추가 정보)를 받아들일 수 있는 상태라고 판단되는 경우에, 상기 제 1 어플리케이션 프로그램(351)으로부터 수신된 상태 정보를 제 2 어플리케이션 프로그램(357)에 전달할 수 있다.
다양한 실시예에 따르면, 제 1 어플리케이션 프로그램(351)은 제 2 어플리케이션 프로그램(357)의 상황을 고려하지 않고, 라이프 사이클 매니저(355)를 이용하여, 상태 정보(예: 제 1 라이프 사이클 이벤트 정보 및/또는 제 1 추가 정보)를 제 2 어플리케이션 프로그램(357)에 전달하고 공유할 수 있다. 이 경우, 제 2 어플리케이션 프로그램(357)은 라이프 사이클 매니저(355)를 이용하여 전달되는 제 1 어플리케이션 프로그램(351)의 상태 정보 중에서, 받아들일 수 있는 상황의 상태 정보만을 수신하여야 하고, 받아들일 수 없는 상황의 상태 정보는 무시하거나, 메모리(310)에 저장 후, 상태 정보를 받아들일 수 있는 상황이 되면 받아들일 수 있다.
다양한 실시예에 따르면, 상기 제 2 어플리케이션 프로그램(357)이 라이프 사이클 매니저(355)를 이용하여, 제 1 어플리케이션 프로그램(351)으로부터 전달되는 상태 정보 중, 예를 들어, onWindowFocusChanged, onConfigurationChanged와 같은 제 1 라이프 사이클 이벤트 정보를 수신할 수 있다. 이 경우, 제 2 어플리케이션 프로그램(357)이 제 2 사용자 인터페이스(322)를 표시할 준비가 되지 않은 상황에서, 상기 onWindowFocusChanged, onConfigurationChanged와 같은 제 1 라이프 사이클 이벤트 정보를 수신하여 제 2 어플리케이션 프로그램(357)의 레거시 컴포넌트(359)에 전달할 수 있다. 이 경우, 제 2 어플리케이션 프로그램(357)은 제 1 어플리케이션 프로그램(351)으로부터 전달되는 상태 정보(예: 제 1 라이프 사이클 이벤트 정보)를 수신하지 못하게 되어, 제 2 어플리케이션 프로그램(357)에 오동작이 발생할 수 있다. 이밸류에이터(352)는 위와 같은 경우를 판단하여 대비할 수 있다.
일 실시예에 따르면, 상기 에미터(354)는 제 1 어플리케이션 프로그램(351)으로부터 전달되는 상태 정보(예: 제 1 라이프 사이클 이벤트 정보 및/또는 제 1 추가 정보)가 발생되는 순서에 따라 제 2 어플리케이션 프로그램(357)에 전달할 수 있다. 에미터(354)는 제 2 어플리케이션 프로그램(357)이 활성화(예: 포어 그라운드 환경) 상태가 되어야 하는 것으로 판단되면, 제 1 어플리케이션 프로그램(351)의 상태 정보(예: 제 1 라이프 사이클 이벤트 정보 및/또는 제 1 추가 정보)를 제 2 어플리케이션 프로그램(357)과 공유 및 동기화하여, 제 1 어플리케이션 프로그램(351) 및 제 2 어플리케이션 프로그램(357)을 동시에 사용하도록 할 수 있다. 예를 들어, 제 2 어플리케이션 프로그램(357)의 상태가 onCreated(처음으로 생성됨)인데, 제 1 어플리케이션 프로그램(351)으로부터 전달되는 상태 정보가 onResumed(화면 전체에 보임)이면, onStarted(화면에 일부 보이기 시작함)가 발생하지 않으므로, 레거시 컴포넌트(359)가 정상적으로 동작하지 않을 수 있다. 이 경우, 에미터(354)는 제 1 어플리케이션 프로그램(351)으로부터 전달되는 상태 정보를, 예를 들어, onCreated(처음으로 생성됨), onStarted(화면에 일부 보이기 시작함) 및 onResumed(화면 전체에 보임)와 같은 순서로 제 2 어플리케이션프로그램(357)의 레거시 컴포넌트(359)에 전달할 수 있다.
도 5는 본 발명의 다양한 실시예에 따른 전자 장치에서 실행되는 복수의 어플리케이션의 라이프 사이클을 관리하는 예를 나타내는 도면이다.
다양한 실시예에 따르면, 도 5의 (A)는 전자 장치(300)의 디스플레이(320)를 통해 표시되는 제 1 어플리케이션 프로그램(351)의 제 1 사용자 인터페이스(321)(예: 도 2의 홈(251)의 사용자 인터페이스(UI))를 나타낼 수 있다. 도 5의 (B)는 전자 장치(300)의 디스플레이(320)를 통해 표시되는 제 2 어플리케이션 프로그램(357)의 제 2 사용자 인터페이스(322)(예: 도 2의 음성 인식(267)의 사용자 인터페이스(UI))를 나타낼 수 있다. 도 5의 (C)는 전자 장치(300)의 디스플레이(320)를 통해 표시되는 제 1 어플리케이션 프로그램(351)의 제 1 사용자 인터페이스(321) 및 제 2 어플리케이션 프로그램(357)의 제 2 사용자 인터페이스(322)가 동시에 제공되는 화면(501)을 나타낼 수 있다.
일 실시예에 따르면, 제 1 어플리케이션 프로그램(351)의 제 1 사용자 인터페이스(321)가 디스플레이(320)에 활성화(예: 포어 그라운드 환경)되어, 업데이트 정보를 수신하거나 제 1 사용자 인터페이스(321)를 표시하지 않는 경우, 라이프 사이클 매니저(355)는 제 2 어플리케이션 프로그램(357)의 동작을 정지시키고 비활성화(예: 백 그라운드 환경)되게 동작시켜 메모리(310)의 사용량을 줄일 수 있다. 다양한 실시예에 따르면, 제 1 어플리케이션 프로그램(351)의 제 1 사용자 인터페이스(321)가 디스플레이(320)에 활성화(예: 포어 그라운드 환경)된 경우, 제 2 어플리케이션 프로그램(351)은 라이프 사이클 매니저(355)를 통해, 제 1 어플리케이션 프로그램(351)의 상태 정보를 수신하고, 예를 들어, 제 1 어플리케이션 프로그램(351)의 업데이트 정보를 공유할 수 있다. 이 경우, 도 5의 (C)와 같이, 전자 장치(300)는 디스플레이(320)를 통해 제 1 어플리케이션 프로그램(351)의 제 1 사용자 인터페이스(321) 및 제 2 어플리케이션 프로그램(357)의 제 2 사용자 인터페이스(322)를 동시에 사용할 수 있는 화면(501)을 표시할 수 있다.
다양한 실시예에 따르면, 상기 제 1 어플리케이션 프로그램(351)이 헬스 관련 프로그램이고, 제 2 어플리케이션 프로그램(357)이 스포츠 용품 관련 프로그램인 경우를 포함할 수 있다. 이 경우, 제 2 어플리케이션 프로그램(357)이 라이프 사이클 매니저(355)를 이용하여, 제 1 어플리케이션 프로그램(351)으로부터 전달되는 상태 정보를 공유함으로써, 제 2 어플리케이션 프로그램(357)은 제 1 어플리케이션 프로그램(351)을 실행하는 것만으로도 제 1 어플리케이션 프로그램(351)의 업데이트 정보를 공유 및 사용할 수 있다.
도 6은 본 발명의 다양한 실시예에 따른 전자 장치에서 실행되는 복수의 어플리케이션의 라이프 사이클을 관리하는 방법을 나타내는 흐름도이다.
도 6의 동작들은, 예를 들어, 도 3의 전자 장치(300)에 의해 수행될 수 있다. 예를 들어, 도 6에 개시된 610 동작 내지 640 동작들은 전자 장치(300) 내의 프로세서(330)에 의해 수행될 수 있다.
동작 610에서, 프레임워크(340)는 제 1 어플리케이션 프로그램(351)에 관한 상태 정보(예: 제 1 라이프 사이클 이벤트 정보 및/또는 제 1 추가 정보)를 제 1 어플리케이션 프로그램(351)에 전달할 수 있다.
동작 620에서, 라이프 사이클 매니저(355)는 상기 제 1 어플리케이션 프로그램(351)에 관한 상태 정보를 제 1 어플리케이션 프로그램(351)에 요청할 수 있다.
동작 630에서, 라이프 사이클 매니저(355)는 상기 제 1 어플리케이션 프로그램(351)에 관한 상태 정보를 제 1 어플리케이션 프로그램(351)으로부터 수신할 수 있다.
동작 640에서, 프로세서(330)는 상기 수신된 제 1 어플리케이션 프로그램(351)에 관한 상태 정보에 적어도 일부 기초하여 생성된 컨텐츠를 포함하는 제 2 어플리케이션 프로그램(357)의 제 2 사용자 인터페이스(322)를 디스플레이(320)에 표시할 수 있다.
본 발명의 다양한 실시예들에 따르면, 프레임워크(340)를 통해 전달되는 제 1 어플리케이션 프로그램(351)에 관한 상태 정보를 제 2 어플리케이션 프로그램(357)이 공유함으로써, 제 1 어플리케이션 프로그램(351) 및 제 2 어플리케이션 프로그램(357)을 포함하는 복수의 어플리케이션 프로그램이 서로 연계되어 동시에 동작할 수 있다.
이상에서는 본 발명의 다양한 실시예에 따라 본 발명을 설명하였지만, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자가 본 발명의 기술적 사상을 벗어나지 않는 범위 내에서 변경 및 변형한 것도 본 발명에 속함은 당연하다.

Claims (15)

  1. 전자 장치에 있어서,
    디스플레이;
    상기 디스플레이와 작동적으로 연결된 적어도 하나의 프로세서; 및
    상기 프로세서에 작동적으로 연결된 메모리를 포함하며,
    상기 메모리는, 사용자 인터페이스를 포함하는 제 1 어플리케이션 프로그램 및 제 2 어플리케이션 프로그램을 저장하고,
    상기 메모리는, 실행 시에, 상기 프로세서가,
    상기 제 1 어플리케이션 프로그램에 관한 상태(status) 정보를 요청하고,
    상기 제 1 어플리케이션 프로그램에 관한 상기 상태 정보를 수신하고,
    상기 수신된 상태 정보에 적어도 일부 기초하여 생성된 컨텐츠를 포함하는, 상기 제 2 어플리케이션 프로그램의 사용자 인터페이스를 상기 디스플레이에 표시하도록 하는 인스트럭션들을 저장하는 전자 장치.
  2. 제 1항에 있어서,
    상기 인스트럭션들은, 상기 프로세서가,
    프레임워크 및 상기 프레임워크와 인터페이스하는 어플리케이션 층을 제공하고,
    상기 상태 정보를 상기 어플리케이션 층으로부터 요청하도록 하는 전자 장치.
  3. 제 1항에 있어서,
    상기 인스트럭션들은, 상기 프로세서가,
    프레임워크 및 상기 프레임워크와 인터페이스하는 어플리케이션 층을 제공하고,
    상기 상태 정보를 상기 프레임워크로부터 요청하도록 하는 전자 장치.
  4. 제 1항에 있어서,
    상기 제 2 어플리케이션 프로그램은 음성 기반 어시스턴트 프로그램과 연관된 전자 장치.
  5. 제 1항에 있어서,
    상기 제 1 어플리케이션 프로그램은 포어 그라운드 또는 백 그라운드에서 실행되고, 상기 제 2 어플리케이션 프로그램은 백 그라운드 또는 포어 그라운드에서 실행되되,
    상기 제 1 어플리케이션 프로그램이 상기 백 그라운드에서 실행되고, 상기 제 2 어플리케이션 프로그램이 상기 백 그라운드에서 실행되고, 상기 수신된 상태 정보에 업데이트 정보가 있는 경우, 상기 제 1 어플리케이션 프로그램 또는 상기 제 2 어플리케이션 프로그램 중의 하나가 상기 포어 그라운드로 전환되는 시점에 상기 업데이트 정보를 반영하도록 설정된 전자 장치.
  6. 제 1항에 있어서,
    상기 상태 정보는, 상기 제 1 어플리케이션 프로그램에 자원을 할당 또는 제거하거나, 상기 제 1 어플리케이션 프로그램이 소정의 동작을 시작 또는 정지시키는 정보 중 적어도 하나를 포함하는 제 1 라이프 사이클 이벤트 정보를 포함하는 전자 장치.
  7. 제 1항에 있어서,
    상기 메모리는 라이프 사이클 매니저를 저장하고,
    상기 제 1 어플리케이션 프로그램에 관한 상태 정보의 요청 및 수신을 상기 라이프 사이클 매니저가 수행하도록 설정된 전자 장치.
  8. 제 7항에 있어서,
    상기 라이프 사이클 매니저는, 상기 수신된 상태 정보를 상기 제 2 어플리케이션 프로그램에 전달하여 공유하거나, 상기 수신된 상태 정보를 미리 정해진 순서대로 상기 제 2 어플리케이션 프로그램에 전달하도록 설정된 전자 장치.
  9. 전자 장치에서 실행되는 제 1 어플리케이션 프로그램 및 제 2 어플리케이션 프로그램의 라이프 사이클을 관리하는 방법으로서,
    프로세서의 제어에 따라, 프레임워크가 상기 제 1 어플리케이션 프로그램에 관한 상태 정보를 상기 제 1 어플리케이션 프로그램에 전달하는 동작;
    라이프 사이클 매니저가 상기 전달된 상태 정보를 상기 제 1 어플리케이션 프로그램에 요청하는 동작;
    상기 라이프 사이클 매니저가 상기 제 1 어플리케이션 프로그램에 관한 상태 정보를 수신하는 동작; 및
    상기 수신된 상태 정보에 적어도 일부 기초하여 생성된 컨텐츠를 포함하는 상기 제 2 어플리케이션 프로그램의 사용자 인터페이스를 디스플레이에 표시하는 동작을 포함하는 방법.
  10. 제 9항에 있어서,
    상기 프로세서가,
    상기 프레임워크 및 상기 프레임워크와 인터페이스하는 어플리케이션 층을 제공하고,
    상기 상태 정보를 상기 어플리케이션 층으로부터 요청하는 동작을 포함하는 방법.
  11. 제 9항에 있어서,
    상기 프로세서가,
    상기 프레임워크 및 상기 프레임워크와 인터페이스하는 어플리케이션 층을 제공하고,
    상기 상태 정보를 상기 프레임워크로부터 요청하는 동작을 포함하는 방법.
  12. 제 9항에 있어서,
    상기 제 2 어플리케이션 프로그램은 음성 기반 어시스턴트 프로그램과 연관된 방법.
  13. 제 9항에 있어서,
    상기 제 1 어플리케이션 프로그램은 포어 그라운드 또는 백 그라운드에서 실행되고, 상기 제 2 어플리케이션 프로그램은 백 그라운드 또는 포어 그라운드에서 실행되되,
    상기 제 1 어플리케이션 프로그램이 상기 백 그라운드에서 실행되고, 상기 제 2 어플리케이션 프로그램이 상기 백 그라운드에서 실행되고, 상기 수신된 상태 정보에 업데이트 정보가 있는 경우, 상기 제 1 어플리케이션 프로그램 또는 상기 제 2 어플리케이션 프로그램 중의 하나가 상기 포어 그라운드로 전환되는 시점에 상기 업데이트 정보를 반영하는 방법.
  14. 제 9항에 있어서,
    상기 라이프 사이클 매니저는, 상기 수신된 상태 정보를 상기 제 2 어플리케이션 프로그램에 전달하여 공유하거나, 상기 수신된 상태 정보를 미리 정해진 순서대로 상기 제 2 어플리케이션 프로그램에 전달하는 방법.
  15. 전자 장치에서 실행되는 제 1 어플리케이션 프로그램 및 제 2 어플리케이션 프로그램의 라이프 사이클을 관리하는 방법을 수행하는 프로그램이 저장된 컴퓨터 판독 가능한 저장매체로서,
    프로세서의 제어에 따라, 프레임워크가 상기 제 1 어플리케이션 프로그램에 관한 상태 정보를 상기 제 1 어플리케이션 프로그램에 전달하는 동작;
    라이프 사이클 매니저가 상기 전달된 상태 정보를 상기 제 1 어플리케이션 프로그램에 요청하는 동작;
    상기 라이프 사이클 매니저가 상기 제 1 어플리케이션 프로그램에 관한 상태 정보를 수신하는 동작; 및
    상기 수신된 상태 정보에 적어도 일부 기초하여 생성된 컨텐츠를 포함하는 상기 제 2 어플리케이션 프로그램의 사용자 인터페이스를 디스플레이에 표시하는 동작을 포함하는 방법을 수행하는 프로그램이 저장된 컴퓨터 판독 가능한 저장매체.
PCT/KR2019/012628 2019-02-14 2019-09-27 전자 장치 및 상기 전자 장치에서 실행되는 복수의 어플리케이션의 라이프 사이클을 관리하는 방법 WO2020166780A1 (ko)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/427,338 US20220100556A1 (en) 2019-02-14 2019-09-27 Electronic device, and method for managing life cycle of plurality of applications executed in electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR10-2019-0017105 2019-02-14
KR1020190017105A KR20200099306A (ko) 2019-02-14 2019-02-14 전자 장치 및 상기 전자 장치에서 실행되는 복수의 어플리케이션의 라이프 사이클을 관리하는 방법

Publications (1)

Publication Number Publication Date
WO2020166780A1 true WO2020166780A1 (ko) 2020-08-20

Family

ID=72044385

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2019/012628 WO2020166780A1 (ko) 2019-02-14 2019-09-27 전자 장치 및 상기 전자 장치에서 실행되는 복수의 어플리케이션의 라이프 사이클을 관리하는 방법

Country Status (3)

Country Link
US (1) US20220100556A1 (ko)
KR (1) KR20200099306A (ko)
WO (1) WO2020166780A1 (ko)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100714712B1 (ko) * 2006-02-21 2007-05-04 삼성전자주식회사 컨테인먼트 프레임워크 환경에서 자원을 관리하는 장치 및방법
US7257812B1 (en) * 1999-12-16 2007-08-14 Sun Microsystems, Inc. Methods and apparatus for managing an application
US20150319144A1 (en) * 2014-05-05 2015-11-05 Citrix Systems, Inc. Facilitating Communication Between Mobile Applications
US20160335286A1 (en) * 2015-05-13 2016-11-17 Quixey, Inc. State Deduplication for Automated and Semi-Automated Crawling Architecture
JP2017532678A (ja) * 2014-09-25 2017-11-02 オラクル・インターナショナル・コーポレイション マルチテナントアプリケーションサーバ環境においてエンドツーエンドライフサイクルを提供するためのシステムおよび方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7735081B2 (en) * 2004-12-17 2010-06-08 Intel Corporation Method, apparatus and system for transparent unification of virtual machines
KR101506683B1 (ko) * 2008-08-06 2015-03-30 삼성전자 주식회사 다수개의 운영 시스템을 지원하는 장치 및 방법
US20140089430A1 (en) * 2012-09-21 2014-03-27 Tencent Technology (Shenzhen) Company Limited Data-sharing method, terminal, server, and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7257812B1 (en) * 1999-12-16 2007-08-14 Sun Microsystems, Inc. Methods and apparatus for managing an application
KR100714712B1 (ko) * 2006-02-21 2007-05-04 삼성전자주식회사 컨테인먼트 프레임워크 환경에서 자원을 관리하는 장치 및방법
US20150319144A1 (en) * 2014-05-05 2015-11-05 Citrix Systems, Inc. Facilitating Communication Between Mobile Applications
JP2017532678A (ja) * 2014-09-25 2017-11-02 オラクル・インターナショナル・コーポレイション マルチテナントアプリケーションサーバ環境においてエンドツーエンドライフサイクルを提供するためのシステムおよび方法
US20160335286A1 (en) * 2015-05-13 2016-11-17 Quixey, Inc. State Deduplication for Automated and Semi-Automated Crawling Architecture

Also Published As

Publication number Publication date
US20220100556A1 (en) 2022-03-31
KR20200099306A (ko) 2020-08-24

Similar Documents

Publication Publication Date Title
WO2020085636A1 (en) Electronic device for displaying list of executable applications on split screen and operating method thereof
WO2015030529A1 (ko) 곡면 바닥을 가지는 전자 장치 및 그 동작 방법
WO2015069021A1 (en) Method for executing function in response to touch input and electronic device implementing the same
WO2017191889A1 (ko) 전자 장치 및 그 제어 방법
WO2021060836A1 (ko) 어플리케이션 실행 방법 및 장치
WO2018128509A1 (en) Electronic device and method for sensing fingerprints
WO2019225861A1 (en) Method for sharing content based on account group and electronic device for performing same
WO2019164098A1 (en) Apparatus and method for providing function associated with keyboard layout
WO2022030893A1 (ko) 오디오 공유를 지원하는 전자 장치
WO2019045255A1 (ko) 어플리케이션 시작 방법 및 이를 구현하는 전자 장치
WO2015034246A1 (en) Electronic device and method of processing user input by electronic device
WO2015093731A1 (en) Electronic device and operating method thereof
AU2018321518B2 (en) Method for determining input detection region corresponding to user interface and electronic device thereof
WO2016036124A1 (en) Electronic device and method for configuring message, and wearable electronic device and method for receiving and executing the message
WO2018128320A1 (ko) 전자 장치 및 그의 음성을 이용한 통신 연결 방법
WO2019039706A1 (ko) 전자 장치 및 그의 데이터 운용 방법
WO2017030372A1 (en) Electronic device and control method thereof
WO2019164204A1 (ko) 전자 장치 및 그의 동작 방법
WO2019160323A1 (ko) 어플리케이션과 관련된 데이터를 관리하기 위한 방법 및 그 전자 장치
EP3362877A1 (en) Method for recording execution screen and electronic device for processing the same
WO2019083283A1 (en) ELECTRONIC IMAGE DISPLAY DEVICE AND ITS CONTROL METHOD
WO2021162388A1 (ko) 스토리지를 포함하는 전자 장치 및 이를 이용한 스토리지로 파일 시스템의 디스카드 커맨드 전달 방법
WO2020204401A1 (ko) 전자 장치 및 전자 장치에서의 스트리밍 어플리케이션 처리 방법
WO2020166780A1 (ko) 전자 장치 및 상기 전자 장치에서 실행되는 복수의 어플리케이션의 라이프 사이클을 관리하는 방법
WO2021025424A1 (en) Electronic device controlling luminance and method for controlling luminance thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19915179

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19915179

Country of ref document: EP

Kind code of ref document: A1