CN107395886B - Control method of double-screen mobile terminal, double-screen mobile terminal and storage medium - Google Patents
Control method of double-screen mobile terminal, double-screen mobile terminal and storage medium Download PDFInfo
- Publication number
- CN107395886B CN107395886B CN201710602219.2A CN201710602219A CN107395886B CN 107395886 B CN107395886 B CN 107395886B CN 201710602219 A CN201710602219 A CN 201710602219A CN 107395886 B CN107395886 B CN 107395886B
- Authority
- CN
- China
- Prior art keywords
- display screen
- target
- distance
- sensor
- data
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
- H04M1/026—Details of the structure or mounting of specific components
- H04M1/0266—Details of the structure or mounting of specific components for a display module assembly
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Telephone Function (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention discloses a control method of a double-screen mobile terminal, the double-screen mobile terminal and a storage medium, and belongs to the field of terminal equipment. The method comprises the steps that target distance data of a first distance sensor and a second distance sensor are collected, the double-screen mobile terminal comprises a front display screen and a back display screen, the first distance sensor is arranged on the front display screen, and the second distance sensor is arranged on the back display screen; determining a target display screen currently used by a user, wherein the target display screen is any one of the front display screen and the back display screen; acquiring the acquired target distance data of the distance sensor on the surface of the target display screen; and executing the operation aiming at the target display screen according to the acquired target distance data, solving the problem that the function of the double-screen mobile terminal in the related technology is single, realizing the effect of enriching the functions of the double-screen mobile terminal, and being used for the double-screen mobile terminal.
Description
Technical Field
The invention relates to the field of terminal equipment, in particular to a control method of a double-screen mobile terminal, the double-screen mobile terminal and a storage medium.
Background
With the development of technology, mobile terminals (such as mobile phones) are increasing, and in the mobile terminals, a distance sensor is an important component. The mobile terminal can perform many functions based on the distance sensor, such as turning on or off the display screen during a call.
For a dual-screen mobile terminal, a display screen is respectively arranged on the front side and the back side of the dual-screen mobile terminal, and the front display screen can be used for realizing communication functions, such as making a call, sending information and the like. Currently, a distance sensor is generally disposed on the front surface of a dual screen mobile terminal. For example, in the process of communication, when the double-screen mobile terminal acquires the approach data of the distance sensor, the front display screen is turned off; and when the double-screen mobile terminal acquires the far data of the distance sensor, the front display screen is lightened. The approach data is used for reflecting that the distance between the double-screen mobile terminal and the face of the user is smaller than a preset threshold value, and the far data is used for reflecting that the distance between the double-screen mobile terminal and the face of the user is not smaller than the preset threshold value.
The double-screen mobile terminal has a single function.
Disclosure of Invention
In order to solve the problem that the functions of the dual-screen mobile terminal are single in the related art, the invention provides a control method of the dual-screen mobile terminal, the dual-screen mobile terminal and a storage medium. The technical scheme is as follows:
in a first aspect, a method for controlling a dual-screen mobile terminal is provided, where the method includes:
the method comprises the steps that target distance data of a first distance sensor and a second distance sensor are collected, the double-screen mobile terminal comprises a front display screen and a back display screen, the first distance sensor is arranged on the front display screen, and the second distance sensor is arranged on the back display screen;
determining a target display screen currently used by a user, wherein the target display screen is any one of the front display screen and the back display screen;
acquiring the acquired target distance data of the distance sensor on the surface of the target display screen;
and executing operation aiming at the target display screen according to the acquired target distance data.
Optionally, before the acquiring target distance data of the first distance sensor and the second distance sensor, the method further includes:
defining a first sensor type interface associated with the first distance sensor for transmitting target distance data for the first distance sensor and a second sensor type interface associated with the second distance sensor for transmitting target distance data for the second distance sensor;
the collecting target distance data of the first distance sensor and the second distance sensor comprises:
when the first sensor type interface and the second sensor type interface are enabled, acquiring target distance data of the first distance sensor and the second distance sensor, wherein the target distance data of the first distance sensor is stored to a driving layer through the first sensor type interface, and the target distance data of the second distance sensor is stored to the driving layer through the second sensor type interface.
Optionally, the acquiring the acquired target distance data of the distance sensor on the surface where the target display screen is located includes:
and indicating the driving layer to report the target distance data of the distance sensor on the surface of the target display screen to the application layer.
Optionally, the determining a target display screen currently used by the user includes:
acquiring the screen posture of the front display screen or the screen posture of the back display screen, wherein the screen posture of the front display screen is used for indicating the included angle between the front display screen and the horizontal plane, and the screen posture of the back display screen is used for indicating the included angle between the back display screen and the horizontal plane;
and determining the target display screen currently used by the user according to the screen posture of the front display screen or the screen posture of the back display screen.
Optionally, the target distance data is proximity data or distance data, the proximity data is used to reflect that a distance from the user to a distance sensor on the surface of the target display screen is smaller than a distance threshold, and the distance data is used to reflect that a distance from the user to the distance sensor on the surface of the target display screen is greater than the distance threshold;
the executing operation aiming at the target display screen according to the acquired target distance data comprises the following steps:
when the acquired target distance data is proximity data, turning off the target display screen according to the target distance data;
and when the acquired target distance data is far data, lightening the target display screen according to the target distance data.
In a second aspect, a dual-screen mobile terminal is provided, which includes:
the double-screen mobile terminal comprises a front display screen and a back display screen, wherein the first distance sensor is arranged on the front display screen, and the second distance sensor is arranged on the back display screen;
the determining module is used for determining a target display screen currently used by a user, wherein the target display screen is any one of the front display screen and the back display screen;
the acquisition module is used for acquiring the acquired target distance data of the distance sensor on the surface of the target display screen;
and the execution module is used for executing the operation aiming at the target display screen according to the acquired target distance data.
Optionally, the dual-screen mobile terminal further includes:
a definition module to define a first sensor type interface associated with the first distance sensor and a second sensor type interface to transmit target distance data of the first distance sensor, the second sensor type interface associated with the second distance sensor, the second sensor type interface to transmit target distance data of the second distance sensor;
the acquisition module is used for:
when the first sensor type interface and the second sensor type interface are detected to be enabled, target distance data of the first distance sensor and the second distance sensor are collected, the target distance data of the first distance sensor are stored to a driving layer through the first sensor type interface, and the target distance data of the second distance sensor are stored to the driving layer through the second sensor type interface.
Optionally, the obtaining module is configured to:
and indicating the driving layer to report the target distance data of the distance sensor on the surface of the target display screen to the application layer.
In a third aspect, a dual-screen mobile terminal is provided, where the dual-screen mobile terminal includes:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
the method comprises the steps that target distance data of a first distance sensor and a second distance sensor are collected, the double-screen mobile terminal comprises a front display screen and a back display screen, the first distance sensor is arranged on the front display screen, and the second distance sensor is arranged on the back display screen;
determining a target display screen currently used by a user, wherein the target display screen is any one of the front display screen and the back display screen;
acquiring the acquired target distance data of the distance sensor on the surface of the target display screen;
and executing operation aiming at the target display screen according to the acquired target distance data.
In a fourth aspect, a storage medium is provided, where instructions are executed by a processor of a dual-screen mobile terminal, so that the dual-screen mobile terminal can execute the control method of the dual-screen mobile terminal according to any one of the first aspect.
In a fifth aspect, there is provided a computer program product containing instructions for causing a computer to perform the method for controlling a dual-screen mobile terminal according to any one of the above first aspects when the computer program product runs on the computer.
The embodiment of the invention provides a control method of a double-screen mobile terminal, the double-screen mobile terminal and a storage medium, which can collect target distance data of a first distance sensor on the surface of a front display screen and a second distance sensor on the surface of a back display screen, determine a target display screen currently used by a user, then obtain the collected target distance data of the distance sensor on the surface of the target display screen, and then execute operation aiming at the target display screen according to the obtained target distance data.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a control method of a dual-screen mobile terminal according to an embodiment of the present invention;
fig. 2-1 is a flowchart of another control method of a dual-screen mobile terminal according to an embodiment of the present invention;
2-2 is a flow chart of determining a target display screen currently used by a user according to an embodiment of the present invention;
2-3 are flow diagrams of operations performed with respect to a target display screen according to embodiments of the present invention;
fig. 3-1 is a schematic structural diagram of a dual-screen mobile terminal according to an embodiment of the present invention;
fig. 3-2 is a schematic structural diagram of another dual-screen mobile terminal according to an embodiment of the present invention.
With the above figures, certain embodiments of the invention have been illustrated and described in more detail below. The drawings and the description are not intended to limit the scope of the inventive concept in any way, but rather to illustrate it by those skilled in the art with reference to specific embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
In the related art, a display screen is respectively provided on the front side and the back side of a dual-screen mobile terminal, and a distance sensor is generally provided on the front side of the dual-screen mobile terminal, and the mobile terminal can realize a plurality of functions through the distance sensor. For example, the display screen is turned on or off during the call. Illustratively, in the call process, when the double-screen mobile terminal acquires the approach data of the distance sensor, the front display screen is turned off; and when the double-screen mobile terminal acquires the far data of the distance sensor, the front display screen is lightened.
An embodiment of the present invention provides a method for controlling a dual-screen mobile terminal, as shown in fig. 1, the method includes:
And 102, determining a target display screen currently used by a user, wherein the target display screen is any one of a front display screen and a back display screen.
And 103, acquiring the acquired target distance data of the distance sensor on the surface of the target display screen.
And 104, executing operation aiming at the target display screen according to the acquired target distance data.
In summary, the control method of the dual-screen mobile terminal provided in the embodiment of the present invention can collect the target distance data of the first distance sensor on the front side of the front-side display screen and the second distance sensor on the back side of the back-side display screen, determine the target display screen currently used by the user, then obtain the collected target distance data of the distance sensor on the back side of the target display screen, and then execute the operation on the target display screen according to the obtained target distance data.
An embodiment of the present invention provides another method for controlling a dual-screen mobile terminal, as shown in fig. 2-1, the method includes:
The control method of the double-screen mobile terminal provided by the embodiment of the invention is applied to the double-screen mobile terminal, and the double-screen mobile terminal can be a mobile phone, a tablet computer and the like.
The double-screen mobile terminal comprises a front display screen and a back display screen, wherein a first distance sensor is arranged on the surface of the front display screen, and a second distance sensor is arranged on the surface of the back display screen. The first distance sensor is arranged at the top end of the double-screen mobile terminal and is located on the periphery of the front display screen, for example, the first distance sensor is arranged on two sides of a receiver on the front or in a receiver groove. Similarly, the second distance sensor is also arranged at the top end of the double-screen mobile terminal and is positioned at the periphery of the display screen on the back side, for example, the second distance sensor is arranged on two sides of the receiver on the back side or in the receiver groove. The first and second distance sensors in the embodiment of the present invention may be of the same type as those in the related art, and may be, for example, a proximity sensor that measures a distance by infrared rays. For example, when a user answers or makes a call, the mobile phone can determine that the mobile phone is close to the face of the user through the proximity sensor, then turn off the display screen, and turn off the touch function of the display screen, so that the function of preventing mistaken touch is achieved. When a user puts the mobile phone into the pocket, the mobile phone can determine that the mobile phone is close to clothes through the proximity sensor to close the touch function of the display screen, and the function of preventing mistaken touch is achieved.
The embodiment of the present invention is described by taking a dual-screen mobile terminal whose operating system is an Android (english: Android) operating system as an example. In order to collect target distance data of the first distance sensor and the second distance sensor, a driving layer of the dual-screen mobile terminal needs to load functions of the first distance sensor and the second distance sensor, that is, two new sensor type interfaces need to be defined based on an android operating system, and the two new sensor type interfaces are the first sensor type interface and the second sensor type interface. Wherein the first sensor type interface is associated with the first distance sensor, the first sensor type interface for transmitting target distance data of the first distance sensor. The second sensor type interface is associated with a second range sensor, the second sensor type interface for transmitting target range data of the second range sensor.
Before defining the first sensor type interface and the second sensor type interface, a new type interface can be defined, or the type interface defined by the android operating system can be reconstructed to be associated with the first sensor type interface and the second sensor type interface. Reconstruction refers to keeping the type interface defined by the android operating system, and reconstructing the internal implementation mode of the type, such as adding some preprocessing operations related to data. The embodiment of the invention records the defined new type interface or the reconstructed type interface as Proximaty. The first sensor type interface is denoted as Proximity _ front and the second sensor type interface is denoted as Proximity _ back. When the application layer of the dual-screen mobile terminal enables the proxy, the first sensor type interface proxy _ front and the second sensor type interface proxy _ back are both enabled. Enabling refers to allowing the sensor type interface to transmit target distance data.
Specifically, step 202 includes: target range data for the first and second range sensors is collected when it is detected that the first and second sensor type interfaces are enabled. The target distance data of the first distance sensor is saved to the driver layer through the first sensor type interface. The target distance data of the second distance sensor is saved to the driver layer through the second sensor type interface.
Wherein the target distance data is close data or far data. The proximity data may be used to reflect that the distance of the user from the distance sensor on the side of the display screen is less than a distance threshold. The proximity data may also be used to reflect that the distance of the user from the distance sensor on the side of the display screen equals the distance threshold. The distance data may be used to reflect that the distance of the user from the distance sensor on the side of the display screen is greater than a distance threshold.
When the dual-screen mobile terminal detects that the first sensor type interface Proximaty _ front and the second sensor type interface Proximaty _ back are enabled, the dual-screen mobile terminal collects target distance data of the first distance sensor and the second distance sensor. The target distance data of the first distance sensor is saved to the driver layer via the first sensor type interface Proximity _ front. And the target distance data of the second distance sensor is saved to the driving layer through a second sensor type interface Proximaty _ back. In this way, after the display screen currently used by the user is determined, the target distance data of the distance sensor on the surface where the display screen is located can be acquired, and the operation on the display screen can be executed according to the acquired target distance data.
The target display screen is any one of a front display screen and a back display screen.
Specifically, as shown in fig. 2-2, step 203 includes:
The screen posture of the front display screen is used for indicating the included angle between the front display screen and the horizontal plane. The screen posture of the back side display screen is used for indicating the included angle between the back side display screen and the horizontal plane.
In order to determine whether the display screen currently used by the user is a front display screen or a back display screen, for example, the dual-screen mobile terminal may obtain an included angle between the front display screen and a horizontal plane, and then determine the display screen currently used by the user according to the included angle between the front display screen and the horizontal plane. For example, when the included angle between the front display screen and the horizontal plane is less than or equal to 90 °, the dual-screen mobile terminal may determine that the front display screen is currently used by the user. When the included angle between the front display screen and the horizontal plane is larger than 90 degrees, the dual-screen mobile terminal can determine that the back display screen is currently used by the user. Or, the dual-screen mobile terminal may obtain an included angle between the back-side display screen and the horizontal plane, and then determine the display screen currently used by the user according to the included angle between the back-side display screen and the horizontal plane.
And 204, acquiring the acquired target distance data of the distance sensor on the surface of the target display screen.
Specifically, step 204 includes: and the indication driving layer reports the target distance data of the distance sensor on the surface of the target display screen to the application layer.
When the target display screen is a front display screen, that is, the display screen currently used by the user is a front display screen, the dual-screen mobile terminal acquires the target distance data of the first distance sensor acquired in step 202. Specifically, the dual-screen mobile terminal indicates the driver layer to report the target distance data of the first distance sensor to the application layer.
When the target display screen is a reverse display screen, that is, the display screen currently used by the user is a reverse display screen, the dual-screen mobile terminal acquires the target distance data of the second distance sensor acquired in step 202. Specifically, the dual-screen mobile terminal instructs the driver layer to report the target distance data of the second distance sensor to the application layer.
And step 205, executing the operation aiming at the target display screen according to the acquired target distance data.
The target distance data is either close data or far data, as described in step 202. The proximity data may be used to reflect that the user's distance to the distance sensor on the face of the target display screen is less than a distance threshold. The distance data may be used to reflect that the distance of the user from the distance sensor on the face of the target display screen is greater than a distance threshold. Specifically, as shown in fig. 2-3, step 205 includes:
and step 2051, when the acquired target distance data is the proximity data, turning off the target display screen according to the target distance data.
And step 2052, when the acquired target distance data is far data, lighting the target display screen according to the target distance data.
Assuming that the target display screen is a front display screen, when the acquired target distance data of the first distance sensor is proximity data, the fact that the distance from the face of the user to the front display screen is short is indicated, and in order to play a role of preventing false touch, the double-screen mobile terminal extinguishes the front display screen and closes a touch function of the front display screen. In addition, the aim of saving electric quantity can be achieved by extinguishing the front display screen. When the acquired target distance data of the first distance sensor is far data, the distance from the face of the user to the front display screen is far, and at the moment, the front display screen is lightened by the double-screen mobile terminal.
The control method of the double-screen mobile terminal can realize the function of turning on or off the display screen in the conversation process, and can also realize other functions of using target distance data, such as a screen locking anti-false touch function and an incoming call anti-false touch function. The screen locking and false touch preventing function refers to that when the dual-screen mobile terminal is close to other objects (for example, a mobile phone is put into a pocket and the mobile phone is close to the pocket), the dual-screen mobile terminal can automatically lock the screen and close the touch function of the display screen. During the screen locking period, when an object blocks the distance sensor, the unlocking operation cannot be carried out. The function of preventing the incoming call from being touched by mistake refers to preventing other close objects from being picked up by mistake when a call comes in (for example, the mobile phone is picked up by mistake in the process of taking out the mobile phone from a pocket when the call comes in).
For example, when the screen locking and false touch prevention function is implemented, step 205 may include: when the acquired target distance data is the proximity data, closing an unlocking function aiming at the target display screen according to the target distance data; and when the acquired target distance data is far data, starting an unlocking function aiming at the target display screen according to the target distance data.
For example, when the incoming call anti-false-touch function is implemented, step 205 may include: when the acquired target distance data is the proximity data, closing the function of answering the call aiming at the target display screen according to the target distance data; and when the acquired target distance data is far data, starting a function of answering a call for the target display screen according to the target distance data.
Further, after step 205, the method for controlling a dual-screen mobile terminal may further include: and executing operation aiming at another display screen according to the acquired target distance data, wherein the another display screen is a display screen except for the target display screen. The operation for the other display screen is an operation opposite to the operation for the target display screen, and the operation for the other display screen may be set by the user. For example, in the call process, the target display screen is a front display screen, and when the acquired target distance data of the first distance sensor is the proximity data, the double-screen mobile terminal extinguishes the front display screen, and further, the double-screen mobile terminal can control the back display screen to flash, display a photo of a caller, display a preset photo or display the call duration, and the like. When the acquired target distance data of the first distance sensor is far away data, the double-screen mobile terminal lights the front display screen, and further, the back display screen can be controlled to flicker.
It should be noted that, the order of the steps of the control method of the dual-screen mobile terminal provided in the embodiment of the present invention may be appropriately adjusted, and the steps may also be increased or decreased according to the situation, and any method that can be easily changed by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention, and therefore, no further description is given.
In summary, the control method of the dual-screen mobile terminal provided in the embodiment of the present invention can collect the target distance data of the first distance sensor on the front side of the front-side display screen and the second distance sensor on the back side of the back-side display screen, determine the target display screen currently used by the user, then obtain the collected target distance data of the distance sensor on the back side of the target display screen, and then execute the operation on the target display screen according to the obtained target distance data.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
An embodiment of the present invention provides a dual-screen mobile terminal, as shown in fig. 3-1, the dual-screen mobile terminal 300 includes:
the acquisition module 310 is used for acquiring target distance data of the first distance sensor and the second distance sensor, the double-screen mobile terminal comprises a front display screen and a back display screen, the front display screen is provided with the first distance sensor, and the back display screen is provided with the second distance sensor.
The determining module 320 is configured to determine a target display screen currently used by a user, where the target display screen is any one of a front display screen and a back display screen.
The obtaining module 330 is configured to obtain the acquired target distance data of the distance sensor on the surface where the target display screen is located.
And the executing module 340 is configured to execute an operation for the target display screen according to the acquired target distance data.
Further, as shown in fig. 3-2, the dual-screen mobile terminal 300 may further include:
a definition module 350 for defining a first sensor type interface and a second sensor type interface. A first sensor type interface is associated with the first distance sensor, the first sensor type interface for transmitting target distance data of the first distance sensor. The second sensor type interface is associated with a second range sensor, the second sensor type interface for transmitting target range data of the second range sensor.
An acquisition module 310 configured to:
target range data for the first and second range sensors is collected upon detecting that the first and second sensor type interfaces are enabled. The target distance data of the first distance sensor is stored to the driving layer through the first sensor type interface, and the target distance data of the second distance sensor is stored to the driving layer through the second sensor type interface.
An obtaining module 330, configured to:
and the indication driving layer reports the target distance data of the distance sensor on the surface of the target display screen to the application layer.
A determining module 320 configured to:
and acquiring the screen posture of the front display screen or the screen posture of the back display screen. The screen posture of the front display screen is used for indicating the included angle between the front display screen and the horizontal plane, and the screen posture of the back display screen is used for indicating the included angle between the back display screen and the horizontal plane;
and determining a target display screen currently used by the user according to the screen posture of the front display screen or the screen posture of the back display screen.
Optionally, the target distance data is proximity data or distance data, and the proximity data may be used to reflect that the distance from the user to the distance sensor on the surface of the target display screen is less than a distance threshold. The distance data may be used to reflect that the user is greater than a distance threshold from a distance sensor on the side of the target display screen. Accordingly, the execution module 340 is configured to:
when the acquired target distance data is the proximity data, extinguishing the target display screen according to the target distance data;
and when the acquired target distance data is far data, lightening the target display screen according to the target distance data.
Other reference meanings in FIG. 3-2 can be referred to in FIG. 3-1.
In summary, the dual-screen mobile terminal provided in the embodiment of the present invention can acquire target distance data of the first distance sensor on the front side of the front-side display screen and the second distance sensor on the back side of the back-side display screen, determine the target display screen currently used by the user, then acquire the acquired target distance data of the distance sensor on the back side of the target display screen, and then execute an operation on the target display screen according to the acquired target distance data.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiment of the invention provides a double-screen mobile terminal, which comprises:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
the method comprises the steps that target distance data of a first distance sensor and a second distance sensor are collected, the double-screen mobile terminal comprises a front display screen and a back display screen, the first distance sensor is arranged on the front display screen, and the second distance sensor is arranged on the back display screen;
determining a target display screen currently used by a user, wherein the target display screen is any one of the front display screen and the back display screen;
acquiring the acquired target distance data of the distance sensor on the surface of the target display screen;
and executing operation aiming at the target display screen according to the acquired target distance data.
An embodiment of the present invention further provides a storage medium, and when an instruction in the storage medium is executed by a processor of a dual-screen mobile terminal, the dual-screen mobile terminal is enabled to execute the control method of the dual-screen mobile terminal shown in fig. 1 or fig. 2-1.
An embodiment of the present invention further provides a computer program product including instructions, which, when running on a computer, causes the computer to execute the control method of the dual-screen mobile terminal shown in fig. 1 or fig. 2-1.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (5)
1. A control method of a dual-screen mobile terminal, the method comprising:
reconstructing a type interface defined in the double-screen mobile terminal to associate the type interface with a first sensor type interface and a second sensor type interface, wherein the double-screen mobile terminal comprises a front display screen and a back display screen, a first distance sensor is arranged on the front display screen, and a second distance sensor is arranged on the back display screen;
defining the first sensor type interface associated with the first distance sensor and the second sensor type interface associated with the second distance sensor, the first sensor type interface for transmitting target distance data for the first distance sensor, the second sensor type interface for transmitting target distance data for the second distance sensor;
when the type interface is enabled, determining that the first sensor type interface and the second sensor type interface are both enabled, and collecting target distance data of the first distance sensor and the second distance sensor, wherein the target distance data of the first distance sensor is stored to a driving layer through the first sensor type interface, the target distance data of the second distance sensor is stored to the driving layer through the second sensor type interface, and the enabling refers to allowing the first sensor type interface and the second sensor type interface to transmit the target distance data;
determining a target display screen currently used by a user, wherein the target display screen is any one of the front display screen and the back display screen;
acquiring the acquired target distance data of the distance sensor on the surface of the target display screen;
respectively executing operation aiming at the target display screen and operation aiming at another display screen according to the acquired target distance data, wherein the another display screen is a display screen except the target display screen, the operation aiming at the another display screen is opposite to the operation aiming at the target display screen, and the operation aiming at the another display screen is set by a user;
the acquiring of the acquired target distance data of the distance sensor on the surface where the target display screen is located includes:
the driving layer is instructed to report target distance data of the distance sensor on the surface of the target display screen to the application layer;
the target distance data is approaching data or far data, the approaching data is used for reflecting that the distance from the user to a distance sensor on the surface where the target display screen is located is smaller than a distance threshold, and the far data is used for reflecting that the distance from the user to the distance sensor on the surface where the target display screen is located is larger than the distance threshold;
executing operation aiming at the target display screen according to the acquired target distance data, wherein the operation comprises the following steps:
when the acquired target distance data is proximity data, turning off the target display screen according to the target distance data;
and when the acquired target distance data is far data, lightening the target display screen according to the target distance data.
2. The method of claim 1, wherein determining a target display screen currently used by a user comprises:
acquiring the screen posture of the front display screen or the screen posture of the back display screen, wherein the screen posture of the front display screen is used for indicating the included angle between the front display screen and the horizontal plane, and the screen posture of the back display screen is used for indicating the included angle between the back display screen and the horizontal plane;
and determining the target display screen currently used by the user according to the screen posture of the front display screen or the screen posture of the back display screen.
3. A dual-screen mobile terminal, comprising:
the dual-screen mobile terminal comprises a front display screen and a back display screen, wherein the front display screen is provided with a first distance sensor on the surface, and the back display screen is provided with a second distance sensor on the surface;
a definition module to define a first sensor type interface associated with the first distance sensor and a second sensor type interface to transmit target distance data of the first distance sensor, the second sensor type interface associated with the second distance sensor, the second sensor type interface to transmit target distance data of the second distance sensor;
the acquisition module is used for determining that the first sensor type interface and the second sensor type interface are enabled when the type interfaces are enabled, acquiring target distance data of the first distance sensor and the second distance sensor, wherein the target distance data of the first distance sensor is stored to a driving layer through the first sensor type interface, the target distance data of the second distance sensor is stored to the driving layer through the second sensor type interface, and the enabling refers to allowing the first sensor type interface and the second sensor type interface to transmit the target distance data;
the determining module is used for determining a target display screen currently used by a user, wherein the target display screen is any one of the front display screen and the back display screen;
the acquisition module is used for acquiring the acquired target distance data of the distance sensor on the surface of the target display screen;
an execution module, configured to respectively execute an operation for the target display screen and an operation for another display screen according to the acquired target distance data, where the another display screen is a display screen other than the target display screen, the operation for the another display screen is an opposite operation to the operation for the target display screen, and the operation for the another display screen is set by a user;
the acquisition module is used for indicating the driving layer to report the target distance data of the distance sensor on the surface of the target display screen to the application layer;
the target distance data is approaching data or far data, the approaching data is used for reflecting that the distance from the user to a distance sensor on the surface where the target display screen is located is smaller than a distance threshold, and the far data is used for reflecting that the distance from the user to the distance sensor on the surface where the target display screen is located is larger than the distance threshold;
the execution module is configured to:
when the acquired target distance data is proximity data, turning off the target display screen according to the target distance data;
and when the acquired target distance data is far data, lightening the target display screen according to the target distance data.
4. A dual-screen mobile terminal, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
reconstructing a type interface defined in the double-screen mobile terminal to associate the type interface with a first sensor type interface and a second sensor type interface, wherein the double-screen mobile terminal comprises a front display screen and a back display screen, a first distance sensor is arranged on the front display screen, and a second distance sensor is arranged on the back display screen;
defining the first sensor type interface associated with the first distance sensor and the second sensor type interface associated with the second distance sensor, the first sensor type interface for transmitting target distance data for the first distance sensor, the second sensor type interface for transmitting target distance data for the second distance sensor;
when the type interface is enabled, determining that the first sensor type interface and the second sensor type interface are both enabled, and collecting target distance data of the first distance sensor and the second distance sensor, wherein the target distance data of the first distance sensor is stored to a driving layer through the first sensor type interface, the target distance data of the second distance sensor is stored to the driving layer through the second sensor type interface, and the enabling refers to allowing the first sensor type interface and the second sensor type interface to transmit the target distance data;
determining a target display screen currently used by a user, wherein the target display screen is any one of the front display screen and the back display screen;
acquiring the acquired target distance data of the distance sensor on the surface of the target display screen;
respectively executing operation aiming at the target display screen and operation aiming at another display screen according to the acquired target distance data, wherein the another display screen is a display screen except the target display screen, the operation aiming at the another display screen is opposite to the operation aiming at the target display screen, and the operation aiming at the another display screen is set by a user;
the acquiring of the acquired target distance data of the distance sensor on the surface where the target display screen is located includes:
the driving layer is instructed to report target distance data of the distance sensor on the surface of the target display screen to the application layer;
the target distance data is approaching data or far data, the approaching data is used for reflecting that the distance from the user to a distance sensor on the surface where the target display screen is located is smaller than a distance threshold, and the far data is used for reflecting that the distance from the user to the distance sensor on the surface where the target display screen is located is larger than the distance threshold;
executing operation aiming at the target display screen according to the acquired target distance data, wherein the operation comprises the following steps:
when the acquired target distance data is proximity data, turning off the target display screen according to the target distance data;
and when the acquired target distance data is far data, lightening the target display screen according to the target distance data.
5. A storage medium, wherein instructions in the storage medium, when executed by a processor of a dual-screen mobile terminal, enable the dual-screen mobile terminal to perform the control method of the dual-screen mobile terminal of claim 1 or 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710602219.2A CN107395886B (en) | 2017-07-21 | 2017-07-21 | Control method of double-screen mobile terminal, double-screen mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710602219.2A CN107395886B (en) | 2017-07-21 | 2017-07-21 | Control method of double-screen mobile terminal, double-screen mobile terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107395886A CN107395886A (en) | 2017-11-24 |
CN107395886B true CN107395886B (en) | 2021-03-16 |
Family
ID=60337201
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710602219.2A Active CN107395886B (en) | 2017-07-21 | 2017-07-21 | Control method of double-screen mobile terminal, double-screen mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107395886B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108063870B (en) * | 2017-12-18 | 2020-01-03 | 珠海格力电器股份有限公司 | Interface display method and device and mobile terminal |
CN108737659A (en) * | 2018-05-29 | 2018-11-02 | 努比亚技术有限公司 | A kind of display control method, mobile terminal and computer readable storage medium |
CN109062485B (en) * | 2018-07-31 | 2021-12-17 | 努比亚技术有限公司 | Double-sided screen display method, double-sided screen terminal and computer readable storage medium |
CN109379456B (en) * | 2018-09-28 | 2021-05-07 | 维沃移动通信有限公司 | Terminal and control method thereof |
CN111131600B (en) * | 2018-10-31 | 2022-07-15 | 中兴通讯股份有限公司 | User operation response method, terminal and computer-readable storage medium |
CN110365837A (en) * | 2019-06-11 | 2019-10-22 | 努比亚技术有限公司 | Working sensor condition control method, terminal and computer readable storage medium |
CN111163220B (en) * | 2019-12-20 | 2021-06-08 | 青岛海信移动通信技术股份有限公司 | Display method, communication terminal and computer storage medium |
CN113055533B (en) * | 2021-03-08 | 2022-08-12 | 北京小米移动软件有限公司 | Call processing method, call processing device, and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130023569A (en) * | 2011-08-29 | 2013-03-08 | 엘지전자 주식회사 | Mobile terminal and method for controlling the same |
CN203167012U (en) * | 2012-12-10 | 2013-08-28 | 郑永强 | Double-screen interactive mobile phone |
CN105653033B (en) * | 2015-12-29 | 2018-09-04 | 广东欧珀移动通信有限公司 | A kind of control method and device of the bright screen of terminal and the screen that goes out |
CN106020871A (en) * | 2016-05-11 | 2016-10-12 | 青岛海信移动通信技术股份有限公司 | Screen starting method and device for mobile equipment |
CN106254660A (en) * | 2016-08-12 | 2016-12-21 | 青岛海信移动通信技术股份有限公司 | The awakening method of display screen and device |
-
2017
- 2017-07-21 CN CN201710602219.2A patent/CN107395886B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107395886A (en) | 2017-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107395886B (en) | Control method of double-screen mobile terminal, double-screen mobile terminal and storage medium | |
US12039144B2 (en) | Display information interaction method and related apparatus | |
EP4131911A1 (en) | Application interface interaction method, electronic device, and computer readable storage medium | |
CN104503691B (en) | Apparatus control method, device and intelligent terminal | |
US11474664B2 (en) | Application icon moving method and electronic device | |
US11994918B2 (en) | Electronic device control method and electronic device | |
EP4016972A1 (en) | Touch-control method for device with folding screen, and folding-screen device | |
CN112740152B (en) | Handwriting pen detection method, handwriting pen detection system and related device | |
EP3082327B1 (en) | Method for controlling sound output and an electronic device thereof | |
EP4016274A1 (en) | Touch control method and electronic device | |
CN113115439B (en) | Positioning method and related equipment | |
WO2023284415A1 (en) | Power key mistouch detection method and electronic device | |
EP3958106B1 (en) | Interface display method and electronic device | |
CN110633043A (en) | Split screen processing method and terminal equipment | |
WO2021057699A1 (en) | Method for controlling electronic device with flexible screen, and electronic device | |
CN117873357A (en) | Application window management method, terminal device and computer readable storage medium | |
CN103095915A (en) | Method of preventing faulty operation based on touch screen mobile phone and mobile phone | |
CN113138560B (en) | Terminal control method, device, equipment and readable storage medium | |
CN113518150A (en) | Display method of terminal equipment and terminal equipment | |
CN115801943B (en) | Display method, electronic device and storage medium | |
CN110609650B (en) | Application state switching method and terminal equipment | |
CN109857536B (en) | Multi-task display method, system, mobile terminal and storage medium | |
CN113050864B (en) | Screen capturing method and related equipment | |
CN116339569A (en) | Split screen display method, folding screen device and computer readable storage medium | |
CN116661670B (en) | Method for managing gesture navigation window, electronic device and 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 | ||
CP01 | Change in the name or title of a patent holder |
Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd. Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |