Method and apparatus for controlling plurality of devices
An electronic device transmits a target mode entry notification of the electronic device to a target device, so that each of the target device and the electronic device may execute an application corresponding to the target mode. Also, the electronic device transmits a target mode release notification of the electronic device to the target device, so that each of the target device and electronic device may resume an application in execution before entering the target mode.
1 . A method performed by an electronic device, the method comprising:
setting a first application to be executed by a first target device corresponding to a target mode, wherein the target mode is one of a plurality of modes available to the electronic device, wherein the first target device is selected from among a plurality of external devices associated with the same user as a user of the electronic device;
determining that the electronic device enters the target mode;
in response to the electronic device entering the target mode, executing a second application;
transmitting, to the first target device, a target mode entry notification of the electronic device that triggers an operation of executing the first application on the first target device;
determining that the electronic device is to release the target mode;
in response to the electronic device releasing the target mode, resuming a third application that was in execution on the electronic device before entering the target mode; and
transmitting, to the first target device, a target mode release notification of the electronic device that triggers an operation of resuming a fourth application that was in execution on the first target device before entering the target mode.
2 . The method of claim 1 , wherein the executing of the first application corresponding to the target mode by the first target device comprises pausing the fourth application that was in execution before entering the target mode.
3 . The method of claim 1 , wherein the setting of the first application to be executed comprises setting a plurality of first applications to be executed when the first target device enters the target mode and setting execution priority of each of the first applications.
4 . The method of claim 1 , further comprising:
displaying, on a display of the electronic device, a screen that includes a plurality of interfaces respectively corresponding to the plurality of modes available to the electronic device;
in response to receiving a user input selecting an interface corresponding to the target mode, entering the target mode; and
in response to receiving a user input, selecting an interface corresponding to a first mode different from the target mode, releasing the target mode and entering the first mode.
5 . The method of claim 1 , further comprising:
setting a schedule of the target mode, the schedule comprising a scheduled entry point in time at which entry into the target mode is scheduled and a scheduled release point in time at which release of the target mode is scheduled;
at the scheduled entry point in time, generating and displaying a mode entry message corresponding to the target mode and, in response to receiving a user input selecting the mode entry, entering the target mode; and
at the scheduled release point in time, generating and displaying a mode release message corresponding to the target mode and, in response to receiving a user input selecting the mode release, releasing the target mode.
6 . The method of claim 1 , further comprising:
selecting, from among the external devices, a second target device corresponding to a second mode different from the target mode; and
in response to the electronic device releasing the target mode and entering the second mode, terminating interaction with the first target device and performing interaction with the second target device.
7 . The method of claim 1 , further comprising:
in response to receiving a notification message, determining that the notification message is related to the target mode; and
in response to the notification message being related to the target mode, transmitting the notification message to a primary device selected from among the electronic device and the first set-of-target devices.
8 . The method of claim 7 , wherein the primary device is determined based on at least one of log information, activity information, and operation information of a sensor included in the electronic device and the first target devices.
9 . The method of claim 7 , further comprising:
providing, after releasing the target mode, a notification for one or more suppressed notification messages that were not related to the target mode and received while operating in the target mode.
10 . The method of claim 1 , wherein the setting of the first application to be executed comprises receiving, from a server, information on at least one candidate device for the target mode based on a type of occupation mapped to a user account of the electronic device connected to the server, and receiving from the server a candidate application for each of the at least one candidate device.
11 . An electronic device comprising:
a processor configured to:
set a first application to be executed by a first target device corresponding to a target mode, wherein the target mode is one of a plurality of modes available to the electronic device, wherein the first target device is selected from among a plurality of external devices associated with the same user as a user of the electronic device;
determining that the electronic device enters the target mode;
in response to the electronic device entering the target mode, execute a second application;
transmit, to the first target device, a target mode entry notification of the electronic device that triggers an operation of executing the first application on the first target device;
determining that the electronic device is to release the target mode;
in response to the electronic device releasing the target mode, resume a third application that was in execution on the electronic device before entering the target mode; and
transmit, to the first target device, a target mode release notification of the electronic device that triggers an operation of resuming a fourth application that was in execution on the first target device before entering the target mode.
12 . The electronic device of claim 11 , wherein the processor is configured to pause the fourth application's execution before entering the target mode.
13 . The electronic device of claim 11 , wherein the first application comprises a plurality of applications, and the processor is configured to set execution priority of each of the applications.
14 . The electronic device of claim 11 , wherein the processor is configured to display, on a display of the electronic device, a screen that includes a plurality of interfaces respectively corresponding to the plurality of modes of the electronic device,
in response to receiving a user input for selecting an interface corresponding to the target mode, enter the target mode, and
in response to receiving a user input for selecting an interface corresponding to a first mode different from the target mode, release the target mode and enter the first mode.
15 . The electronic device of claim 11 , wherein the processor is configured to:
set a schedule of the target mode, the schedule comprising a scheduled entry point in time at which entry into the target mode is scheduled and a scheduled release point in time at which release of the target mode is scheduled;
at the scheduled entry point in time, generate and display a mode entry message corresponding to the target mode and, in response to receiving a user input selecting the mode entry, entering the target mode; and
at the scheduled release point in time, generate and display a mode release message corresponding to the target mode and, in response to receiving a user input selecting the mode release, releasing the target mode.
16 . The electronic device of claim 11 , wherein the processor is configured to select, from among the external devices, a second target device corresponding to a second mode different from the target mode, and in response to the electronic device releasing the target mode and entering the second mode, terminating interaction with the first target device and performing interaction with the second target device.
17 . The electronic device of claim 11 , wherein the processor is configured to, in response to receiving a notification message, determine that the notification message is related to the target mode, and in response to the notification message being related to the target mode, transmit the notification message to a primary device selected from among the electronic device and the first set of target devices.
18 . The electronic device of claim 17 , wherein the primary device is determined based on at least one of log information, activity information, and operation information of a sensor included in the electronic device and the first target devices.
19 . The electronic device of claim 17 , wherein the processor is configured to provide, after releasing the target mode, a notification for one or more suppressed notification messages that were not related to the target mode and received while operating in the target mode.
20 . The electronic device of claim 11 , wherein the processor is configured to receive, from a server, information on at least one candidate device for the target mode based on a type of occupation mapped to a user account of the electronic device connected to the server, and receiving from the server a candidate application for each of the at least one candidate device.