CN107193522B - Switching method and first electronic equipment - Google Patents

Switching method and first electronic equipment Download PDF

Info

Publication number
CN107193522B
CN107193522B CN201710464439.3A CN201710464439A CN107193522B CN 107193522 B CN107193522 B CN 107193522B CN 201710464439 A CN201710464439 A CN 201710464439A CN 107193522 B CN107193522 B CN 107193522B
Authority
CN
China
Prior art keywords
electronic device
mode
electronic equipment
state
electronic
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201710464439.3A
Other languages
Chinese (zh)
Other versions
CN107193522A (en
Inventor
赵静滨
张雪元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710464439.3A priority Critical patent/CN107193522B/en
Publication of CN107193522A publication Critical patent/CN107193522A/en
Application granted granted Critical
Publication of CN107193522B publication Critical patent/CN107193522B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • 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/54Interprogram communication
    • G06F9/541Interprogram communication via adapters, e.g. between incompatible applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/545Gui

Abstract

The embodiment of the invention provides a switching method and first electronic equipment, and a first parameter is obtained; detecting whether the first electronic equipment is concerned by a user, and if the first electronic equipment is concerned by the user, delaying the execution of switching between the first mode and the second mode; and if the user does not pay attention to the first electronic equipment and the first parameter indicates that the first electronic equipment and the electronic equipment are in the connection state, switching between the first mode and the second mode is executed. Because the switching between the first mode and the second mode is not immediately executed, but the first electronic device is executed after being no longer in the first state, the phenomenon that data of the running application program is lost due to the switching of the operating system in the process that the user pays attention to the first electronic device does not occur. The user pays attention to the first electronic equipment, and the content displayed by the first electronic equipment is important to the user. I.e. the user does not miss out his attention or important information.

Description

Switching method and first electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a handover method and a first electronic device.
Background
With the development of electronic devices, more and more functions are provided in the existing electronic devices. For example, screen projection display is performed, that is, content displayed in one electronic device is displayed in another electronic device, for example, a smart phone is connected to a tablet computer, and a User Interface (UI) of the smart phone is displayed on the tablet computer, or the smart phone is connected to a computer, and the UI of the smart phone is displayed on the computer.
In the process of displaying the content of the electronic device on another electronic device, the electronic device needs to switch the mode, that is, the mode of displaying the content by the display of the electronic device is switched to the mode of displaying by the display of the other electronic device.
In the process of switching the modes, data of the running application program is lost, so that the user misses information corresponding to the lost data.
Disclosure of Invention
In view of the fact that the electronic device involves the conversion of operating systems during the mode switching process, and the processing parameters of different operating systems for the same content are different, data of the running application program is lost, the present invention provides a switching method and a first electronic device, so as to overcome the problem that in the prior art, during the mode switching process, data of the running application program is lost, and information corresponding to the lost data is missed by a user.
In order to achieve the purpose, the invention provides the following technical scheme:
a switching method is applied to first electronic equipment and comprises the following steps:
acquiring a first parameter, wherein the first parameter is used for representing the connection relation between the first electronic equipment and the second electronic equipment;
detecting whether the first electronic equipment is in a first state, wherein the first state is used for representing that a user focuses on the first electronic equipment;
delaying execution of a switch between a first mode and a second mode when the first electronic device is in the first state, the first mode being associated with the first electronic device and the second mode being associated with the second electronic device;
performing switching between the first mode and the second mode when the first electronic device is no longer in the first state and the first parameter indicates that the first electronic device and the electronic device are already in a connected state.
Wherein the detecting whether the first electronic device is in a first state comprises:
detecting whether a display screen of the first electronic equipment displays a user interface of at least one application program in a full screen mode;
or the like, or, alternatively,
detecting whether a target application program in the first electronic equipment is in a running state;
or the like, or, alternatively,
detecting whether the user is viewing the first electronic device.
Wherein the obtaining of the first parameter comprises:
when the first electronic device and the second electronic device are detected to be successfully established with communication connection, generating a first parameter indicating that the first electronic device and the second electronic device are already in a connection state;
and/or the presence of a gas in the gas,
when the first electronic device is detected to be disconnected from the second electronic device, generating a first parameter indicating that the first electronic device and the second electronic device are in an unconnected state.
The first mode refers to displaying a user interface of an application program running in the first electronic equipment;
the second mode is that a user interface of an application program running in the first electronic equipment is displayed in the second electronic equipment; the performing the switching between the first mode and the second mode comprises:
generating data of an application program running on the first electronic equipment and suitable for being displayed by the second electronic equipment;
and sending the data to the second electronic equipment through communication connection so that the second electronic equipment can display the user interface.
Wherein detecting whether the first electronic device and the second electronic device establish a communication connection comprises:
the method comprises the steps of detecting whether a hardware interface of the first electronic device is connected with a hardware interface of the second electronic device.
A first electronic device, comprising:
a memory for storing a program;
a processor configured to execute the program, the program specifically configured to:
acquiring a first parameter, wherein the first parameter is used for representing the connection relation between the first electronic equipment and the second electronic equipment;
detecting whether the first electronic equipment is in a first state, wherein the first state is used for representing that a user focuses on the first electronic equipment;
delaying execution of a switch between a first mode and a second mode when the first electronic device is in the first state, the first mode being associated with the first electronic device and the second mode being associated with the second electronic device;
performing switching between the first mode and the second mode when the first electronic device is no longer in the first state and the first parameter indicates that the first electronic device and the electronic device are already in a connected state.
When the processor performs detection to determine whether the first electronic device is in the first state, the processor is specifically configured to:
detecting whether a display screen of the first electronic equipment displays a user interface of at least one application program in a full screen mode;
or the like, or, alternatively,
detecting whether a target application program in the first electronic equipment is in a running state;
or the like, or, alternatively,
detecting whether the user is viewing the first electronic device.
When executing the acquiring of the first parameter, the processor is specifically configured to:
when the first electronic device and the second electronic device are detected to be successfully established with communication connection, generating a first parameter indicating that the first electronic device and the second electronic device are already in a connection state;
and/or the presence of a gas in the gas,
when the first electronic device is detected to be disconnected from the second electronic device, generating a first parameter indicating that the first electronic device and the second electronic device are in an unconnected state.
The first mode refers to displaying a user interface of an application program running in the first electronic equipment; the second mode is that a user interface of an application program running in the first electronic equipment is displayed in the second electronic equipment; when the processor performs the switching between the first mode and the second mode, the processor is specifically configured to:
generating data of an application program running on the first electronic equipment and suitable for being displayed by the second electronic equipment;
and sending the data to the second electronic equipment through communication connection so that the second electronic equipment can display the user interface.
The processor, when detecting whether the first electronic device and the second electronic device establish a communication connection, is specifically configured to:
the method comprises the steps of detecting whether a hardware interface of the first electronic device is connected with a hardware interface of the second electronic device.
As can be seen from the foregoing technical solutions, compared with the prior art, the embodiment of the present invention provides a handover method, which obtains a first parameter; detecting whether the first electronic equipment is concerned by a user, and if the first electronic equipment is concerned by the user, delaying the execution of switching between the first mode and the second mode; and if the user does not pay attention to the first electronic equipment and the first parameter indicates that the first electronic equipment and the electronic equipment are in the connection state, switching between the first mode and the second mode is executed. Because the switching between the first mode and the second mode is not immediately executed, but the first electronic device is executed after being no longer in the first state, the phenomenon that data of the running application program is lost due to the switching of the operating system in the process that the user pays attention to the first electronic device does not occur. The user pays attention to the first electronic equipment, and the content displayed by the first electronic equipment is important to the user. I.e. the user does not miss out his attention or important information.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic view of a projection screen according to an embodiment of the present invention;
fig. 2 is a flowchart of a handover method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a first electronic device according to an embodiment of the present disclosure;
fig. 4 is a hardware structure diagram of a first electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The screen-projection display between the electronic devices means that an application program running in one electronic device is displayed on a display screen of another electronic device, as shown in fig. 1, which is a screen-projection display diagram provided in an embodiment of the present invention.
Fig. 1 shows a first electronic device 11 and a second electronic device 12, and the first electronic device 11 and the second electronic device 12 may be connected through a wireless connection or a hardware interface.
If the first electronic device 11 and the second electronic device 12 are connected through a hardware interface, the specific manner may be as follows: the first electronic device 11 may be placed on a base (e.g., a docking station) 13, the base 13 having a hardware interface therein for connection to the second electronic device 12, the base 13 being connected to the second electronic device by a cable 14.
The shape of the base 13 in fig. 1 may also be any shape of base, and the shape of the base 13 in the embodiment of the present application is not limited to be the same as that in fig. 1, as long as the first electronic device 11 can perform data transmission with the second electronic device through the base. Optionally, the first electronic device 11 may further include an expansion housing 15, where the expansion housing includes a chip having a function of performing data transmission with the base in a wireless communication manner, and the first electronic device 11 may perform data transmission with the second electronic device through the expansion housing and the base.
It is assumed that it is now desirable to display the user interface displayed in the first electronic device 11 in the second electronic device 12. The user interface displayed in the first electronic device 11 has the following two application scenarios: firstly, an application interface of an application program belonging to the first electronic device 11 is displayed in the first electronic device 11; second, the first electronic device 11 displays an application interface of an application program belonging to the second electronic device 12.
If the application scene is the first application scene, the user interface of the first electronic device 11 is projected to the second electronic device 12; if the application scenario is the second application scenario, in the case that the user interface of the second electronic device 12 has been projected to the first electronic device 11, the second electronic device 12 resumes displaying the user interface, that is, stops projecting the user interface to the first electronic device 11.
In any application scenario, if the user immediately performs mode switching in a scenario where the user pays attention to (it is described that this part of data is important for the user) the first electronic device, the data of the application program is lost, and the user may miss information corresponding to the lost data; therefore, the method adopts a mode of switching the delay mode; if the user is not paying attention to the first electronic device, the mode switching is performed again, even if the data of the application program is still lost, the user is not paying attention to the first electronic device (the lost data has no influence or little influence on the user), and therefore, the user is not influenced even if the data of the application program is lost.
With reference to the screen projection manner of the first electronic device 11 and the second electronic device, a switching method provided in the embodiment of the present application is described, and as shown in fig. 2, is a flowchart of a switching method provided in the embodiment of the present application, where the method includes:
step S201: and acquiring a first parameter, wherein the first parameter is used for representing the connection relation between the first electronic equipment and the second electronic equipment.
The connection relation includes: the first electronic equipment and the second electronic equipment are in a connected state; and the first electronic device and the second electronic device are in an unconnected state.
Step S202: detecting whether the first electronic equipment is in a first state, wherein the first state is used for representing that a user focuses on the first electronic equipment.
The user is focusing on the first electronic device including a number of situations: first, a user is using a first electronic device (e.g., a user's hand or an operator is touching a display screen of the first electronic device, or the first electronic device is displaying a user interface of an application in full screen); second, the user's attention is focused on the first electronic device (e.g., the distance between the user and the first electronic device is less than a preset distance, and the distance between the first electronic device and the user can be detected by a distance sensor in the first electronic device).
Step S203: delaying execution of switching between a first mode and a second mode when the first electronic device is in the first state.
The first mode is associated with the first electronic device and the second mode is associated with the second electronic device.
The first mode may correspond to two application scenarios, and the first mode is that an application interface of an application program belonging to the first electronic device 11 is displayed in the first electronic device 11; second, the first electronic device 11 displays an application interface of an application program belonging to the second electronic device 12.
The second mode corresponds to two application scenarios, and in the first mode, the second electronic device 12 displays an application interface of an application program belonging to the second electronic device 12; second, the second electronic device 12 displays an application interface of an application program belonging to the first electronic device 11.
Switching between the first mode and the second mode refers to switching a user interface of an application program displayed in the first electronic equipment to the second electronic equipment for display; the switching between the first mode and the second mode corresponds to two application scenarios, wherein in the first mode, the first electronic device 11 displays a user interface belonging to its own application program, and the user interface of the first electronic device 11 is projected to the second electronic device 12; second, the first electronic device 11 displays the user interface of the application program belonging to the second electronic device 12, and stops the screen projection of the user interface of the second electronic device 12 to the first electronic device 11.
Step S204: performing switching between the first mode and the second mode when the first electronic device is no longer in the first state and the first parameter indicates that the first electronic device and the electronic device are already in a connected state.
Whether mode switching intention exists between the first electronic equipment and the second electronic equipment can be judged through the connection relation between the first electronic equipment and the second electronic equipment; in general, a mode switching request may be generated when a first electronic device and a second electronic device are in a connected state, i.e., have an intention to switch modes.
In the switching method provided by the embodiment of the invention, a first parameter is obtained; detecting whether the first electronic equipment is concerned by a user, and if the first electronic equipment is concerned by the user, delaying the execution of switching between the first mode and the second mode; and if the user does not pay attention to the first electronic equipment and the first parameter indicates that the first electronic equipment and the electronic equipment are in the connection state, switching between the first mode and the second mode is executed. Because the switching between the first mode and the second mode is not immediately executed, but the first electronic device is executed after being no longer in the first state, the phenomenon that data of the running application program is lost due to the switching of the operating system in the process that the user pays attention to the first electronic device does not occur. The user pays attention to the first electronic equipment, and the content displayed by the first electronic equipment is important to the user. I.e. the user does not miss out his attention or important information.
In the embodiment of the present invention, there are various methods for detecting whether the first electronic device is in the first state, and the embodiment of the present invention provides, but is not limited to, the following cases:
firstly, whether a display screen of the first electronic equipment displays a user interface of at least one application program in a full screen mode is detected.
If the user is using the first electronic device to view the video or the document or the picture in full screen, in general, full screen viewing indicates that the user is engaged comparatively, and if the first mode and the second mode are switched at this time, the first electronic device may not display the video or the document or the picture any more, the user may not view the video or the document or the picture in the first electronic device, information important to the user is lost, and user experience is reduced.
And secondly, detecting whether the target application program in the first electronic equipment is in a running state.
The target application program can belong to the first electronic equipment and also belong to the second electronic equipment; the target application may refer to an application that the user attaches to, or a function in the application.
For example, if the user places more importance on the stock application, the target application may be the stock application; for another example, if the user attaches importance to the video call function in the wechat, the user delays performing the mode switching during the video call (e.g., video conference) through the wechat, and at this time, the target application includes the video call function of the wechat.
The number of target applications may be one or more for the same electronic device.
Third, it is detected whether the user is viewing the first electronic device.
It may be detected whether the user is viewing the first electronic device by: firstly, a user holds a first electronic device; a second type; the time interval of the user touching the first electronic device is less than or equal to a preset time threshold.
There are various methods for "acquiring the first parameter" in the embodiment of the present invention, and the embodiment of the present invention provides, but is not limited to, the following methods.
When the first electronic device and the second electronic device are detected to be successfully established with communication connection, generating a first parameter indicating that the first electronic device and the second electronic device are already in a connection state;
and/or the presence of a gas in the gas,
when the first electronic device is detected to be disconnected from the second electronic device, generating a first parameter indicating that the first electronic device and the second electronic device are in an unconnected state.
It is understood that if the first mode refers to displaying, in the first electronic device, a user interface of an application running in the first electronic device; the second mode is a mode in which a user interface of an application program running in the first electronic device is displayed in the second electronic device. When the first mode is switched to the second mode, data of the application program run by the first electronic device needs to be sent to the second electronic device, so that the second electronic device can display a user interface of the corresponding application program. Since the display data of the second electronic device, such as the display parameters (e.g., size, resolution) of the display screen, the layout of the user interface of the application program, etc., may be different, the following steps need to be performed in the process of switching between the first mode and the second mode:
generating data of an application program running on the first electronic device 11 suitable for displaying by the second electronic device 12;
sending the data to the second electronic device 12 via a communication connection such that the second electronic device 12 displays the user interface.
Alternatively, the first and second electrodes may be,
in performing switching between the first mode and the second mode, the method includes the steps of:
sending data of an application program run by the first electronic device 11 to the second electronic device 12 through the communication connection; so that the second electronic device 12 converts the data into data suitable for display by itself.
In the embodiment of the present invention, if the user interface of the application running in the first electronic device 11 is projected to the second electronic device, it is equivalent to using the first electronic device as a host of the second electronic device, and using the second electronic device as a display screen of the first electronic device.
In a preferred embodiment, the first electronic device may be connected to the second electronic device through a hardware interface, for example, the first electronic device needs an extended rear shell, and a chip having a function of transmitting data of an application program in a wireless manner may be built in the extended rear shell; the extended rear shell can contain first electronic equipment, such as a mobile phone shell of a mobile phone; the first electronic device with the expansion back shell installed is placed on a base (such as a docking station), the base is provided with a USB 2.0 Interface, an HDMI (High Definition Multimedia Interface), a power Interface and the like, and a user can connect a second electronic device through the base by wire. Therefore, the first electronic equipment can transmit the data of the application program operated by the first electronic equipment to the second electronic equipment through the extended back shell and the base.
The embodiment of the present invention further provides a virtual device included in the first electronic device corresponding to the switching method, where functions of each module and unit in the virtual device included in the first electronic device are the same as those of corresponding steps of the switching method, and for detailed description, reference may be made to the corresponding steps of the switching method, which is not described herein again.
As shown in fig. 3, a schematic structural diagram of a first electronic device provided in an embodiment of the present application is shown, where the first electronic device includes:
an obtaining module 31, configured to obtain a first parameter, where the first parameter is used to represent a connection relationship between the first electronic device and the second electronic device;
a detecting module 32, configured to detect whether the first electronic device is in a first state, where the first state is used to represent that a user is paying attention to the first electronic device;
a delay module 33, configured to delay performing switching between a first mode and a second mode when the first electronic device is in the first state, the first mode being associated with the first electronic device, the second mode being associated with the second electronic device;
an executing module 34, configured to execute switching between the first mode and the second mode when the first electronic device is no longer in the first state and the first parameter indicates that the first electronic device and the electronic device are already in a connected state.
Optionally, the detection module includes:
the first detection unit is used for detecting whether a display screen of the first electronic equipment displays a user interface of at least one application program in a full screen mode;
or the like, or, alternatively,
the second detection unit is used for detecting whether a target application program in the first electronic equipment is in a running state or not;
or the like, or, alternatively,
a third detecting unit, configured to detect whether the user is viewing the first electronic device.
Optionally, the obtaining module includes:
the first generating unit is used for generating a first parameter indicating that the first electronic device and the second electronic device are already in a connected state when detecting that the first electronic device and the second electronic device are successfully established in communication connection;
and/or the presence of a gas in the gas,
the second generating unit is used for generating a first parameter indicating that the first electronic device and the second electronic device are in an unconnected state when the first electronic device and the second electronic device are detected to be disconnected from communication.
Optionally, the first mode is that a user interface of an application program running in the first electronic device is displayed in the first electronic device;
the second mode is that a user interface of an application program running in the first electronic equipment is displayed in the second electronic equipment;
the execution module comprises: the method comprises the following steps:
a third generating unit, configured to generate data of an application program running on the first electronic device suitable for display by the second electronic device;
and the sending unit is used for sending the data to the second electronic equipment through communication connection so that the second electronic equipment can display the user interface.
Optionally, the detecting, by the first generating unit, whether the communication connection between the first electronic device and the second electronic device is established specifically includes:
the method comprises the steps of detecting whether a hardware interface of the first electronic device is connected with a hardware interface of the second electronic device.
An embodiment of the present invention further provides a hardware structure diagram of a first electronic device, as shown in fig. 4, which is the hardware structure diagram of the first electronic device provided in the embodiment of the present invention, and the first electronic device includes:
a memory 41 for storing a program;
the program may include program code including computer operating instructions.
The memory 41 may comprise a high-speed RAM memory, and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory.
A processor 42 configured to execute the program, the program being specifically configured to:
acquiring a first parameter, wherein the first parameter is used for representing the connection relation between the first electronic equipment and the second electronic equipment;
detecting whether the first electronic equipment is in a first state, wherein the first state is used for representing that a user focuses on the first electronic equipment;
delaying execution of a switch between a first mode and a second mode when the first electronic device is in the first state, the first mode being associated with the first electronic device and the second mode being associated with the second electronic device;
performing switching between the first mode and the second mode when the first electronic device is no longer in the first state and the first parameter indicates that the first electronic device and the electronic device are already in a connected state.
The processor 42 may be a central processing unit CPU or an ASIC specific integrated circuit
(Application Specific Integrated Circuit) or one or more Integrated circuits configured to implement embodiments of the invention.
The first electronic device may further include a communication interface 43 and a communication bus 44, wherein the memory 41, the processor 42 and the communication interface 43 are all in communication with each other through the communication bus 44.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A switching method applied to a first electronic device includes:
acquiring a first parameter, wherein the first parameter is used for representing the connection relation between the first electronic equipment and the second electronic equipment; when the first electronic equipment and the second electronic equipment are in a connection state, representing that the first electronic equipment and the second electronic equipment have mode switching intention, and generating a mode switching request;
detecting whether the first electronic equipment is in a first state, wherein the first state is used for representing that a user focuses on the first electronic equipment;
delaying execution of a switch between a first mode and a second mode when the first electronic device is in the first state, the first mode being associated with the first electronic device and the second mode being associated with the second electronic device;
performing switching between the first mode and the second mode when the first electronic device is no longer in the first state and the first parameter indicates that the first electronic device and the second electronic device are already in a connected state.
2. The handover method according to claim 1, wherein the detecting whether the first electronic device is in the first state comprises:
detecting whether a display screen of the first electronic equipment displays a user interface of at least one application program in a full screen mode;
or the like, or, alternatively,
detecting whether a target application program in the first electronic equipment is in a running state;
or the like, or, alternatively,
detecting whether the user is viewing the first electronic device.
3. The handover method according to claim 1, wherein the obtaining the first parameter comprises:
when the first electronic device and the second electronic device are detected to be successfully established with communication connection, generating a first parameter indicating that the first electronic device and the second electronic device are already in a connection state;
and/or the presence of a gas in the gas,
when the first electronic device is detected to be disconnected from the second electronic device, generating a first parameter indicating that the first electronic device and the second electronic device are in an unconnected state.
4. The switching method according to claim 3, wherein the first mode is a user interface of an application program running in the first electronic device is displayed in the first electronic device;
the second mode is that a user interface of an application program running in the first electronic equipment is displayed in the second electronic equipment; the performing the switching between the first mode and the second mode comprises:
generating data of an application program running on the first electronic equipment and suitable for being displayed by the second electronic equipment;
and sending the data to the second electronic equipment through communication connection so that the second electronic equipment can display the user interface.
5. The handover method according to claim 3, wherein detecting whether the first electronic device and the second electronic device establish a communication connection comprises:
the method comprises the steps of detecting whether a hardware interface of the first electronic device is connected with a hardware interface of the second electronic device.
6. A first electronic device, comprising:
a memory for storing a program;
a processor configured to execute the program, the program specifically configured to:
acquiring a first parameter, wherein the first parameter is used for representing the connection relation between the first electronic equipment and the second electronic equipment; when the first electronic equipment and the second electronic equipment are in a connection state, representing that the first electronic equipment and the second electronic equipment have mode switching intention, and generating a mode switching request;
detecting whether the first electronic equipment is in a first state, wherein the first state is used for representing that a user focuses on the first electronic equipment;
delaying execution of a switch between a first mode and a second mode when the first electronic device is in the first state, the first mode being associated with the first electronic device and the second mode being associated with the second electronic device;
performing switching between the first mode and the second mode when the first electronic device is no longer in the first state and the first parameter indicates that the first electronic device and the second electronic device are already in a connected state.
7. The first electronic device of claim 6, wherein the processor, when performing the detection of whether the first electronic device is in the first state, is specifically configured to:
detecting whether a display screen of the first electronic equipment displays a user interface of at least one application program in a full screen mode;
or the like, or, alternatively,
detecting whether a target application program in the first electronic equipment is in a running state;
or the like, or, alternatively,
detecting whether the user is viewing the first electronic device.
8. The first electronic device of claim 6, wherein the processor, when executing obtaining the first parameter, is specifically configured to:
when the first electronic device and the second electronic device are detected to be successfully established with communication connection, generating a first parameter indicating that the first electronic device and the second electronic device are already in a connection state;
and/or the presence of a gas in the gas,
when the first electronic device is detected to be disconnected from the second electronic device, generating a first parameter indicating that the first electronic device and the second electronic device are in an unconnected state.
9. The first electronic device of claim 8, wherein the first mode is a user interface of an application program running in the first electronic device being displayed in the first electronic device; the second mode is that a user interface of an application program running in the first electronic equipment is displayed in the second electronic equipment; when the processor performs the switching between the first mode and the second mode, the processor is specifically configured to:
generating data of an application program running on the first electronic equipment and suitable for being displayed by the second electronic equipment;
and sending the data to the second electronic equipment through communication connection so that the second electronic equipment can display the user interface.
10. The first electronic device according to claim 8, wherein the processor, when detecting whether the first electronic device and the second electronic device establish a communication connection, is specifically configured to:
the method comprises the steps of detecting whether a hardware interface of the first electronic device is connected with a hardware interface of the second electronic device.
CN201710464439.3A 2017-06-19 2017-06-19 Switching method and first electronic equipment Active CN107193522B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710464439.3A CN107193522B (en) 2017-06-19 2017-06-19 Switching method and first electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710464439.3A CN107193522B (en) 2017-06-19 2017-06-19 Switching method and first electronic equipment

Publications (2)

Publication Number Publication Date
CN107193522A CN107193522A (en) 2017-09-22
CN107193522B true CN107193522B (en) 2020-02-21

Family

ID=59879725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710464439.3A Active CN107193522B (en) 2017-06-19 2017-06-19 Switching method and first electronic equipment

Country Status (1)

Country Link
CN (1) CN107193522B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546584A (en) * 2010-11-01 2012-07-04 微软公司 Calling of accessory-specific user experience
CN103379221A (en) * 2012-04-23 2013-10-30 Lg电子株式会社 Mobile terminal and controling method thereof
CN103546310A (en) * 2012-07-09 2014-01-29 佳能株式会社 Communication apparatus, method for controlling the same
CN104035550A (en) * 2013-03-07 2014-09-10 腾讯科技(深圳)有限公司 Information providing mode switching method and device
CN106354242A (en) * 2016-08-22 2017-01-25 北京小米移动软件有限公司 Mode switching method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546584A (en) * 2010-11-01 2012-07-04 微软公司 Calling of accessory-specific user experience
CN103379221A (en) * 2012-04-23 2013-10-30 Lg电子株式会社 Mobile terminal and controling method thereof
CN103546310A (en) * 2012-07-09 2014-01-29 佳能株式会社 Communication apparatus, method for controlling the same
CN104035550A (en) * 2013-03-07 2014-09-10 腾讯科技(深圳)有限公司 Information providing mode switching method and device
CN106354242A (en) * 2016-08-22 2017-01-25 北京小米移动软件有限公司 Mode switching method and device

Also Published As

Publication number Publication date
CN107193522A (en) 2017-09-22

Similar Documents

Publication Publication Date Title
EP2385689A1 (en) Mobile terminal and controlling method thereof
CN108710515B (en) Application preloading method and device, storage medium and terminal
CN115525383B (en) Wallpaper display method and device, mobile terminal and storage medium
US11132123B2 (en) Key display method, terminal, and non-transitory computer-readable medium
US10999501B2 (en) Electronic device and method for controlling display of panorama image
CN113792278A (en) Method and device for displaying application and picture and electronic equipment
CN104978180B (en) Unprocessed event prompting method and device and mobile terminal
CN109120683B (en) Data transmission method and related product
CN108512997B (en) Display method, display device, mobile terminal and storage medium
CN106980442B (en) Icon management method and electronic equipment
WO2019228370A1 (en) Data processing method and device, mobile terminal and storage medium
EP3174244A1 (en) Video communication ending method and apparatus, computer program and recording medium
CN104503674A (en) Screenshot picture generating method
CN106604363B (en) A kind of Wireless Fidelity Wi-Fi scan method, mobile terminal and storage medium
EP3757831A1 (en) Fingerprint event processing method, apparatus, and terminal
US8922491B2 (en) Method and apparatus enabling keystroke acceleration
CN112506460A (en) Screen control authority sharing method and device, terminal and storage medium
CN107193522B (en) Switching method and first electronic equipment
CN112235412A (en) Message processing method and device
CN111258683A (en) Detection method, detection device, computer equipment and storage medium
CN107800720B (en) Hijacking reporting method, device, storage medium and equipment
CN113726905B (en) Data acquisition method, device and equipment based on home terminal equipment
CN108536407A (en) Text display method, device and mobile terminal
CN109151160B (en) Communication method, communication device, mobile terminal and storage medium
CN107509195B (en) Data transmission method and device, terminal and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant