CN107395871B - Method and device for opening application, storage medium and terminal - Google Patents

Method and device for opening application, storage medium and terminal Download PDF

Info

Publication number
CN107395871B
CN107395871B CN201710526269.7A CN201710526269A CN107395871B CN 107395871 B CN107395871 B CN 107395871B CN 201710526269 A CN201710526269 A CN 201710526269A CN 107395871 B CN107395871 B CN 107395871B
Authority
CN
China
Prior art keywords
terminal
angle
application
preset
determining
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
CN201710526269.7A
Other languages
Chinese (zh)
Other versions
CN107395871A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710526269.7A priority Critical patent/CN107395871B/en
Publication of CN107395871A publication Critical patent/CN107395871A/en
Application granted granted Critical
Publication of CN107395871B publication Critical patent/CN107395871B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/66Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
    • H04M1/667Preventing unauthorised calls from a telephone set
    • H04M1/67Preventing unauthorised calls from a telephone set by electronic means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method for starting an application, which comprises the following steps: receiving an unlocking instruction, wherein the unlocking instruction instructs to unlock the terminal; acquiring an angle value of the terminal according to the unlocking instruction, wherein the angle value is an included angle formed between a plane where a display screen of the terminal is located and a horizontal plane; determining a target application according to the angle value; and unlocking the terminal and opening the target application. According to the method and the device, when the unlocking instruction is received, the size of the included angle formed between the plane where the display screen of the terminal is located and the horizontal plane is obtained, the target application corresponding to the size of the included angle is determined, the terminal is unlocked, and the target application is opened, so that the problems that the process of opening the application is complicated and the opening efficiency is low after the terminal is unlocked are solved. The invention also relates to a device for starting the application, a storage medium and a terminal.

Description

Method and device for opening application, storage medium and terminal
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method and an apparatus for opening an application, a storage medium, and a terminal.
Background
With the rapid development and popularization of terminals, the functions of the terminals are also more and more powerful, the mobile phone in the full touch screen mode has gradually replaced the mobile phone in the original keyboard mode, and in order to prevent the user from mistakenly touching and save electricity for endurance, the mobile phone can enter a screen locking state when the user does not use the mobile phone. When used again, the handset may be unlocked for use.
However, when the mobile phone is in the screen locking state, if a user needs to open a specific mobile phone application, the user needs to unlock the mobile phone first, such as fingerprint unlocking, sliding unlocking and nine-square unlocking, and then search and open the corresponding required mobile phone application, which is tedious in opening process, wastes time of the user, and is low in opening efficiency.
Disclosure of Invention
The embodiment of the invention provides a method and a device for opening an application, a storage medium and a terminal, which can improve the efficiency of opening the application.
In a first aspect, an embodiment of the present invention provides a method for starting an application, including:
receiving an unlocking instruction, wherein the unlocking instruction indicates to unlock the terminal;
acquiring an angle value of the terminal according to the unlocking instruction, wherein the angle value is an included angle formed between a plane where a display screen of the terminal is located and a horizontal plane;
determining a target application according to the angle value;
and unlocking the terminal and starting the target application.
In a second aspect, an embodiment of the present invention provides an apparatus for opening an application, including:
the terminal comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving an unlocking instruction which indicates to unlock the terminal;
the obtaining module is used for obtaining an angle value of the terminal according to the unlocking instruction, wherein the angle value is an included angle formed by a plane where a display screen of the terminal is located and a horizontal plane;
the determining module is used for determining the target application according to the angle value;
and the starting module is used for unlocking the terminal and starting the target application.
In a third aspect, an embodiment of the present invention provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any one of the methods for starting an application provided by the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention provides a terminal, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute any method for starting the application provided by the embodiment of the invention.
According to the method, the device, the storage medium and the terminal for starting the application, when an unlocking instruction is received, the size of an included angle formed between a plane where a display screen of the terminal is located and a horizontal plane is obtained, the target application corresponding to the size of the included angle is determined, the terminal is unlocked, and the target application is opened, so that the problems that the process of starting the application is complicated and the starting efficiency is low after the terminal is unlocked are solved.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Fig. 1 is a scene schematic diagram of terminal unlocking according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a method for starting an application according to an embodiment of the present invention.
Fig. 3 is another flowchart of a method for starting an application according to an embodiment of the present invention.
Fig. 4 is a schematic view of another scenario of terminal unlocking according to the embodiment of the present invention.
Fig. 5 is a schematic view of another scenario of terminal unlocking according to an embodiment of the present invention.
Fig. 6 is a block diagram of an apparatus for starting an application according to an embodiment of the present invention.
Fig. 7 is a schematic block diagram of an apparatus for starting an application according to an embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present invention are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be taken as limiting the invention with regard to other embodiments that are not detailed herein.
The term "module" as used herein may be considered a software object executing on the computing system. The various components, modules, engines, and services described herein may be viewed as objects implemented on the computing system. The apparatus and method described herein are preferably implemented in software, but may also be implemented in hardware, and are within the scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic view of a scenario of unlocking a terminal according to an embodiment of the present invention. When the terminal is in a screen locking state, a user cannot open an application in the terminal, when the user unlocks the fingerprint, the terminal receives an unlocking instruction and obtains a current angle value of the terminal according to the unlocking instruction, wherein the angle value is an included angle formed by a plane where a display screen of the terminal is located and a horizontal plane. And after determining the corresponding target application according to the angle value, unlocking the terminal and starting the target application.
The following is a detailed description of the analysis.
In this embodiment, the application starting apparatus will be described in terms of an application starting apparatus, which may be specifically integrated in a terminal, such as a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), and the like.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for starting an application according to an embodiment of the present invention. Specifically, the method comprises the following steps:
in step S101, an unlock instruction is received.
And the unlocking instruction indicates unlocking the terminal.
It should be noted that, in order to prevent the user from touching the terminal by mistake and save power, the terminal may enter the screen locking state when the user does not use the terminal. When used again, the terminal may be unlocked for use.
Based on the method, the user unlocking terminal can comprise fingerprint unlocking, sliding unlocking and Sudoku unlocking, and when the user unlocking terminal passes verification, the terminal can receive an unlocking instruction.
In a possible implementation manner, before receiving the unlocking instruction, the method may further include receiving a plurality of preset angle intervals input by the user and a target application corresponding to each preset angle interval, and generating a preset mapping relationship according to the preset angle intervals and the target application, where the preset mapping relationship is a corresponding relationship between an angle interval and a target application.
In step S102, an angle value of the terminal is obtained according to the unlock instruction.
It should be noted that, in general, when the terminal is in a screen-locked state, if a user needs to open a specific mobile phone application, the terminal needs to be unlocked first, such as fingerprint unlocking, sliding unlocking, and squared figure unlocking, and then the corresponding required target application is searched and opened, which is tedious in opening process and wastes time for the user.
The angle value is an included angle formed by a plane where a display screen of the terminal is located and a horizontal plane.
Specifically, the obtaining of the angle value of the terminal according to the unlocking instruction may include:
(1) and generating an acquisition instruction according to the unlocking instruction.
Wherein the acquisition instruction is used for calling detection data of the angular velocity sensor.
Based on this, the angular velocity sensor is based on the principle of conservation of angular momentum, i.e., an object (gyro) rotating at high speed, and the orientation of the rotating shaft is not changed when the rotating shaft is not affected by an external force. The size of an included angle formed by a plane where a display screen of the terminal is located and a horizontal plane is detected.
(2) And acquiring the detection data of the angular velocity sensor according to the acquisition instruction so as to acquire the angle value of the terminal.
The angle value may be 0 degree to 360 degrees, and the specific angle value is based on how the user is placed.
In a possible implementation manner, in order to obtain a more accurate angle value of the terminal, the detection data of the angular velocity sensor may be obtained according to the obtaining instruction, a plurality of angle values between the display screen of the terminal and the horizontal plane within a preset time period may be continuously obtained, an average value of the plurality of angle values is obtained, and the average value is determined as the angle value of the terminal. Therefore, the situation that the terminal shakes and the obtained angle value is inaccurate under a specific environment or other reasons can be avoided.
In step S103, a target application is determined according to the angle value.
In a possible implementation, determining the target application according to the angle value may include determining an angle interval in which the angle value is located according to a plurality of preset angle intervals. And determining the target application according to the angle interval and a preset mapping relation, wherein the preset mapping relation is a corresponding relation between the angle interval and the target application.
The preset angle interval is an angle range interval preset by a user, such as between 30 degrees and 50 degrees. And mapping one target application to each preset angle interval correspondingly.
In step S104, the terminal is unlocked and the target application is opened.
And after determining the target application corresponding to the angle value according to the preset mapping relation, unlocking the terminal and starting the determined target application.
Based on this, because the target application is preset by the user, after the user unlocks the terminal at a specific angle, the corresponding target application can be opened, for example, the target application which is correspondingly mapped and has a preset angle interval of 100 degrees to 120 degrees set by the user is the camera application, when the user unlocks the terminal, and the angle of the terminal is 110 degrees, the terminal is unlocked and the camera application is opened, and after the user unlocks the terminal, the camera application is manually searched and opened, so that the time of the user is saved, and the opening efficiency is improved.
Therefore, according to the method for opening the application provided by the embodiment, when the unlocking instruction is received, the size of the included angle formed between the plane where the display screen of the terminal is located and the horizontal plane is obtained, the target application corresponding to the size of the included angle is determined, the terminal is unlocked, and the target application is opened, so that the problems that the process of opening the application is complicated and the opening efficiency is low after the terminal is unlocked are solved.
The method described in the above embodiments is further illustrated in detail by way of example.
Referring to fig. 3, fig. 3 is another schematic flow chart of a method for starting an application according to an embodiment of the present invention.
Specifically, the method comprises the following steps:
in step S201, a plurality of preset angle intervals input by a user and a target application corresponding to each preset angle interval are received.
The user can set a plurality of preset angle intervals according to the input of the requirement, such as 30 degrees to 50 degrees, 70 degrees to 90 degrees, 130 degrees to 150 degrees and the like, and select the target applications mapped corresponding to the plurality of preset angle intervals, such as social applications, payment applications, photographing applications and the like.
For example, the user may input a mapping between 30 degrees to 50 degrees for social applications, 70 degrees to 90 degrees for payment applications, and 130 degrees to 150 degrees for photo applications.
In a possible implementation manner, the terminal may further automatically record an angle value of the terminal when the user unlocks within a period of time and a starting habit of the first application started at the angle value, analyze and learn the recorded starting habit of the first application opened by the user when the user unlocks within a specific angle interval by using a learning algorithm, and determine the application with the largest number of times of starting the application as the target application correspondingly mapped within the preset angle interval when the user unlocks within the specific angle interval. If the angle interval of the terminal and the application corresponding to the first time opened when the terminal is unlocked by the user in the past two weeks are recorded, the opening preference of the user is analyzed, for example, when the terminal is unlocked between 30 degrees and 50 degrees, the application tendency of the first time opened by the user is a social application, and the target application corresponding to the angle interval between 30 degrees and 50 degrees is determined as the social application.
In step S202, a preset mapping relationship is generated according to a plurality of preset angle intervals and a plurality of target applications.
The association table can be generated by a plurality of preset angle intervals input by a user and the corresponding mapped target application, and is stored in the terminal. Table 1 lists the association table.
Preset angle interval Target application
30 to 50 degrees Social applications
70 to 90 degrees Payment application
130 to 150 degrees Photographing application
TABLE 1 Association Table
Based on the method, the user can add, delete, search and change the preset angle interval and the target application in the association table.
In step S203, an unlock instruction is received.
The user unlocking terminal can comprise fingerprint unlocking, sliding unlocking and Sudoku unlocking, and when the user unlocking terminal passes verification, the terminal receives an unlocking instruction which indicates that the terminal is unlocked. And when the verification of the user unlocking terminal is not passed, prompting the user to re-verify.
For example, when the user inputs a fingerprint unlocking verification on the mobile phone, the mobile phone receives an unlocking instruction, and when the user inputs a fingerprint unlocking verification on the mobile phone, the user is prompted to input the fingerprint again.
In step S204, an acquisition instruction is generated based on the unlock instruction.
Wherein the acquisition instruction is used for calling detection data of the angular velocity sensor.
Based on this, the angular velocity sensor is based on the principle of conservation of angular momentum, i.e., an object (gyro) rotating at high speed, and the orientation of the rotating shaft is not changed when the rotating shaft is not affected by an external force. The size of an included angle formed by a plane where a display screen of the terminal is located and a horizontal plane is detected, the size of the included angle can be 0-360 degrees, and the specific angle value is based on how the current terminal is placed.
In step S205, the detection data of the angular velocity sensor is acquired according to the acquisition instruction to acquire the angle value of the terminal.
It should be noted that in a specific environment or for other reasons, such as the user being on a bus, the terminal may slightly shake, which results in an inaccurate angle value of the terminal being obtained.
Based on this, in order to obtain a more accurate angle value of the terminal, in an embodiment, a plurality of angle values between the display screen of the terminal and the horizontal plane within a preset time period may be continuously obtained according to the obtaining instruction, an average value of the plurality of angle values may be obtained, and the average value may be determined as the angle value of the terminal. Therefore, the situation that the terminal shakes and the obtained angle value is inaccurate under a specific environment or other reasons can be avoided.
For example, 3 angular values of 40 degrees, 44 degrees and 48 degrees are continuously obtained in a very short time, for example, 0.2 seconds. And averaging the 3 angle values to obtain an average value of 44 degrees, and determining the 44 degrees as the angle value of the terminal.
In step S206, an angle interval in which the angle value is located is determined according to a plurality of preset angle intervals.
And when the unlocking instruction is received, the corresponding preset angle interval can be determined according to the angle value.
For example, when the current angle value of the mobile phone is 44 degrees obtained by the angular velocity sensor on the mobile phone, it is determined that 44 degrees belongs to the preset angle range of 30 degrees to 50 degrees.
In step S207, the target application is determined according to the angle interval and the preset mapping relationship.
The mapping relation can be checked according to the determined preset angle interval, and the corresponding target application is determined, wherein the preset mapping relation is the corresponding relation between the angle interval and the target application.
For example, when the current angle value of the mobile phone is 44 degrees obtained by the angular velocity sensor on the mobile phone, it is determined that 44 degrees belongs to the preset angle range of 30 degrees to 50 degrees, and the mobile phone application corresponding to the preset angle range of 30 degrees to 50 degrees can be determined to be the social application corresponding to the association table.
In step S208, the terminal is unlocked and the target application is opened.
And after the target application corresponding to the angle value is determined, unlocking the terminal and starting the determined target application.
For example, when the angle value of the mobile phone is determined to be 44 degrees and the corresponding mobile phone application is the social application, the mobile phone is unlocked and the social application is opened, and the user does not need to manually find and open the corresponding social application after unlocking the mobile phone, so that the time and the efficiency of the user are saved.
In a possible implementation manner, when the unlocking instruction is received and the angle value of the terminal is judged not to be in the preset angle interval, the step of unlocking the terminal is directly executed.
For example, when the angle value of the mobile phone is determined to be 10 degrees, the step of unlocking the mobile phone is directly executed if the 10 degrees do not belong to the preset angle interval.
For better describing the embodiment of the present invention, another scenario diagram of terminal unlocking shown in fig. 4 and another scenario diagram of terminal unlocking shown in fig. 5 are used to describe in detail: in general, when a mobile phone is in a screen locking state, if a user needs to open a specific mobile phone application, the user needs to unlock the mobile phone first, such as fingerprint unlocking, sliding unlocking and squared figure unlocking, and then search and open a corresponding required target application, so that the opening process is complex and time of the user is wasted.
Based on the method, the user can input a plurality of preset angle intervals and the mobile phone applications mapped correspondingly in advance, and a preset mapping relation or an association table is generated according to the input preset angle intervals and the mobile phone applications mapped correspondingly. For example, the mobile phone application corresponding to the preset angle interval of 70 degrees to 90 degrees is the payment application, and the mobile phone application corresponding to the preset angle interval of 130 degrees to 150 degrees is the camera application.
As shown in fig. 4, when the mobile phone receives an unlocking instruction, an obtaining instruction is generated according to the unlocking instruction, and the obtaining instruction is used for obtaining detection data of the angular velocity sensor so as to obtain an included angle formed by a plane where a mobile phone screen is located with respect to a horizontal plane. In an embodiment, the mobile phone may continuously acquire more than 3 angles within 0.2 second, average the angles, and determine the average as an angle value of the mobile phone, such as 75 degrees. And judging whether the 75 degrees are in a preset angle interval, and when the 75 degrees are judged to be in the preset angle interval of 70 degrees to 90 degrees, obtaining the mobile phone application corresponding to the preset angle range of 70 degrees to 90 degrees as the payment application based on a preset mapping relation or an association table. And unlocking the mobile phone and directly starting the payment application.
As shown in fig. 5, when the mobile phone receives an unlocking instruction, an obtaining instruction is generated according to the unlocking instruction, and the obtaining instruction is used for obtaining detection data of the angular velocity sensor so as to obtain an included angle formed by a plane where a mobile phone screen is located with respect to a horizontal plane. In an embodiment, the mobile phone may continuously acquire more than 3 angles within 0.2 second, average the angles, and determine the average as an angle value of the mobile phone, such as 135 degrees. And judging whether the 135 degrees are in a preset angle interval, and when the 135 degrees are judged to be in the preset angle interval of 130 degrees to 150 degrees, obtaining that the mobile phone application corresponding to the preset angle range of 130 degrees to 150 degrees is a camera application based on a preset mapping relation or an association table. And unlocking the mobile phone and directly starting the camera application.
As can be seen from the above, according to the method for starting an application provided in this embodiment, a preset mapping relationship is generated by presetting a plurality of preset angle intervals and corresponding mapped target applications, when an unlocking instruction is received, the size of an included angle formed between a plane where a screen of a terminal is located and a horizontal plane is obtained through an angular velocity sensor, when the size of the included angle is within a preset angle range, the target application corresponding to the size of the included angle is determined according to the preset mapping relationship, the terminal is unlocked, and the target application is opened, so that the problems that an application starting process is complicated and starting efficiency is low after the terminal is unlocked are solved.
In order to better implement the method for starting the application provided by the embodiment of the invention, the embodiment of the invention also provides a device based on the method for starting the application. The terms are the same as those in the method for starting the application, and the specific implementation details can refer to the description in the method embodiment.
Referring to fig. 6, fig. 6 is a block diagram of an apparatus for starting an application according to an embodiment of the present invention. Specifically, the apparatus 300 for starting an application includes: a receiving module 31, an obtaining module 32, a determining module 33, and an opening module 34.
The receiving module 31 is configured to receive an unlocking instruction, where the unlocking instruction instructs to unlock the terminal.
The user unlocking terminal may include fingerprint unlocking, sliding unlocking, and nine-square unlocking, and when the user unlocking terminal passes verification, the receiving module 31 receives an unlocking instruction.
In a possible implementation manner, before receiving the unlocking instruction, the receiving module 31 may further include a plurality of preset angle intervals input by the user and a target application corresponding to each of the preset angle intervals, and generate a preset mapping relationship according to the preset angle intervals and the target applications, where the preset mapping relationship is a corresponding relationship between an angle interval and a target application.
The obtaining module 32 is configured to obtain an angle value of the terminal according to the unlocking instruction, where the angle value is an included angle formed between a plane where a display screen of the terminal is located and a horizontal plane.
The obtaining module 32 may generate an obtaining instruction according to the unlocking instruction, so as to obtain the detection data of the angular velocity sensor according to the obtaining instruction, so as to obtain the angle value of the terminal.
The determining module 33 is configured to determine the target application according to the angle value.
In a possible implementation, the determining module 33 determines the target application according to the angle value, and may include determining an angle interval in which the angle value is located according to a plurality of preset angle intervals. And determining the target application according to the angle interval and a preset mapping relation, wherein the preset mapping relation is a corresponding relation between the angle interval and the target application.
The preset angle interval is an angle range interval preset by a user, such as between 30 degrees and 50 degrees. And mapping one target application to each preset angle interval correspondingly.
The opening module 34 is configured to unlock the terminal and open the target application.
After the determining module 33 determines the target application corresponding to the angle value according to the preset mapping relationship, the starting module 34 unlocks the terminal and starts the determined target application.
Referring to fig. 7, fig. 7 is a schematic block diagram of an apparatus for opening an application according to an embodiment of the present invention, where the apparatus 300 for opening an application further includes:
the obtaining module 32 may further include a generating sub-module 321 and a obtaining sub-module 322.
Specifically, the generating submodule 321 is configured to generate an obtaining instruction according to the unlocking instruction. The obtaining submodule 322 is configured to obtain the detection data of the angular velocity sensor according to the obtaining instruction, so as to obtain an angle value of the terminal.
In a possible implementation manner, in order to obtain a more accurate angle value of the terminal, the obtaining module 32 may further obtain a plurality of angle values between the display screen of the terminal and the horizontal plane within a preset time period continuously according to the obtaining instruction, average the plurality of angle values, and determine the average as the angle value of the terminal. Therefore, the situation that the terminal shakes and the obtained angle value is inaccurate under a specific environment or other reasons can be avoided.
The determining module 33 may further include an angle determining sub-module 331 and an application determining sub-module 332.
Specifically, the angle determining submodule 331 is configured to determine an angle interval in which the angle value is located according to a plurality of preset angle intervals. The application determining submodule 332 is configured to determine the target application according to the angle interval and a preset mapping relationship, where the preset mapping relationship is a corresponding relationship between the angle interval and the target application.
Therefore, according to the device for starting the application, the preset mapping relation is generated by presetting a plurality of preset angle intervals and corresponding mapped target applications, when an unlocking instruction is received, the size of an included angle formed between the plane where the screen of the terminal is located and the horizontal plane is obtained through the angular velocity sensor, when the size of the included angle is within the preset angle range, the target application corresponding to the size of the included angle is determined according to the preset mapping relation, the terminal is unlocked, and the target application is opened, so that the problems that the application starting process is complicated and the starting efficiency is low after the terminal is unlocked are solved.
An embodiment of the present invention further provides a terminal, as shown in fig. 8, the terminal 400 may include a memory 401 having one or more computer-readable storage media, a sensor 402, an input unit 403, a display 404, a processor 405 having one or more processing cores, and other components. Those skilled in the art will appreciate that the terminal structure shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The memory 401 may be used to store applications and data. The memory 401 stores applications containing executable code. The application programs may constitute various functional modules. The processor 405 executes various functional applications and data processing by running the application programs stored in the memory 401. Further, the memory 401 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 401 may also include a memory controller to provide the processor 405 and the input unit 403 with access to the memory 401.
The terminal may also include at least one sensor 402, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
The input unit 403 may be used to receive input numbers, character information, or user characteristic information, such as a fingerprint, and generate a keyboard, mouse, joystick, optical, or trackball signal input related to user setting and function control. In particular, in a particular embodiment, the input unit 403 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 405, and can receive and execute commands sent by the processor 405. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 403 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a fingerprint recognition module, a trackball, a mouse, a joystick, and the like.
The display screen 404 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the terminal, which may be composed of graphics, text, icons, video, and any combination thereof. The display screen 404 may include a display panel. Alternatively, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 405 to determine the type of touch event, and then the processor 405 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 8 the touch sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement input and output functions.
The processor 405 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing an application program stored in the memory 401 and calling data stored in the memory 401, thereby performing overall monitoring of the terminal. Optionally, processor 405 may include one or more processing cores; preferably, the processor 405 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like.
Although not shown in fig. 8, the terminal may further include a camera, a bluetooth module, a power supply, and the like, which are not described in detail herein.
Specifically, in this embodiment, the processor 405 in the terminal loads the executable code corresponding to the process of one or more application programs into the memory 401 according to the following instructions, and the processor 405 runs the application program stored in the memory 401, thereby implementing various functions:
an unlocking instruction, which instructs unlocking the terminal, is received through the input unit 403.
The processor 405 obtains an angle value of the terminal according to the unlocking instruction, where the angle value is an included angle formed between a plane where the display screen of the terminal is located and a horizontal plane.
The target application is determined by the processor 405 based on the angle value.
The terminal is unlocked and the target application is opened by the processor 405.
The processor 405, when executing the determining the target application according to the angle value, may include: determining an angle interval in which the angle value is positioned according to a plurality of preset angle intervals; and determining the target application according to the angle interval and a preset mapping relation, wherein the preset mapping relation is a corresponding relation between the angle interval and the target application.
The processor 405, when executing the obtaining of the angle value of the terminal according to the unlocking instruction, may include: generating an acquisition instruction according to the unlocking instruction; and acquiring the detection data of the angular velocity sensor according to the acquisition instruction so as to acquire the angle value of the terminal.
The processor 405, when executing the acquiring of the detection data of the angular velocity sensor according to the acquiring instruction to acquire the angle value, may include: continuously acquiring a plurality of angle values between a plane where a display screen of the terminal is positioned and a horizontal plane within a preset time period according to the acquisition instruction; the plurality of angle values are averaged, and the average is determined as the angle value of the terminal.
The processor 405, before executing the receiving the unlocking instruction, may further include: receiving a plurality of preset angle intervals input by a user and a target application corresponding to each preset angle interval; and generating a preset mapping relation according to the preset angle intervals and the target applications, wherein the preset mapping relation is a corresponding relation between the angle intervals and the target applications.
Since the terminal can execute any method for starting an application provided in the embodiment of the present invention, the beneficial effects that can be achieved by any method for starting an application provided in the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the method for starting the application, and are not described herein again.
The method, the apparatus, the storage medium, and the terminal for opening an application provided in the embodiments of the present invention are, for example, a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), and the like, and the terminal, the apparatus for opening an application, and the method for opening an application belong to the same concept, and any method provided in the method embodiment for opening an application may be run on the apparatus for opening an application, and a specific implementation process thereof is described in the method embodiment for opening an application in detail, and will not be described herein again.
It should be noted that, for the method for starting an application of the present invention, a person skilled in the art may understand that all or part of the process of the method for starting an application of the present invention may be implemented by controlling related hardware through a computer program, where the computer program may be stored in a computer-readable storage medium, such as a memory of a terminal, and executed by at least one processor in the terminal, and during the execution, the process may include, for example, the process of the embodiment of the method for starting an application. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
For the apparatus for starting an application according to the embodiment of the present invention, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented as a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium such as a read-only memory, a magnetic or optical disk, or the like.
The method, the apparatus, the storage medium, and the terminal for starting an application according to the embodiments of the present invention are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in view of the above, the content of the present specification should not be construed as a limitation to the present invention.

Claims (6)

1. A method for opening an application, comprising:
acquiring historical starting data of a first application started when a user unlocks a terminal when the terminal is in a preset angle interval in a historical time period;
determining the starting times corresponding to each application according to the historical starting data, and determining the application with the largest starting times as a target application corresponding to the preset angle interval;
determining target applications corresponding to a plurality of preset angle intervals according to historical starting data corresponding to each preset angle interval;
generating a preset mapping relation according to the preset angle intervals and the target applications, wherein the preset mapping relation is a corresponding relation between the preset angle intervals and the target applications;
receiving an unlocking instruction, wherein the unlocking instruction indicates to unlock the terminal;
continuously acquiring a plurality of angle values between a plane where a display screen of the terminal is located and a horizontal plane within a preset time period;
averaging the plurality of angle values, and determining the average value as an angle value of the terminal, wherein the angle value is an included angle formed by a plane where a display screen of the terminal is located and a horizontal plane;
determining an angle interval in which the angle value is located according to a plurality of preset angle intervals;
determining a target application according to the angle interval and a preset mapping relation;
and unlocking the terminal and starting the target application.
2. The method for starting application according to claim 1, wherein the terminal comprises an angular velocity sensor, and the obtaining of the angular value of the terminal according to the unlocking instruction comprises:
generating an acquisition instruction according to the unlocking instruction;
and acquiring the detection data of the angular velocity sensor according to the acquisition instruction so as to acquire the angle value of the terminal.
3. An apparatus for opening an application, comprising:
the terminal comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving an unlocking instruction which indicates to unlock the terminal;
the receiving module, before receiving the unlocking instruction, is further configured to: acquiring historical starting data of a first application started when a user unlocks a terminal when the terminal is in a preset angle interval in a historical time period;
determining the starting times corresponding to each application according to the historical starting data, and determining the application with the largest starting times as a target application corresponding to the preset angle interval;
determining target applications corresponding to a plurality of preset angle intervals according to historical starting data corresponding to each preset angle interval;
generating a preset mapping relation according to the preset angle intervals and the target applications, wherein the preset mapping relation is a corresponding relation between the preset angle intervals and the target applications;
the obtaining module is used for obtaining an angle value of the terminal according to the unlocking instruction, wherein the angle value is an included angle formed by a plane where a display screen of the terminal is located and a horizontal plane;
the acquisition module is specifically used for continuously acquiring a plurality of angle values between a plane where a display screen of the terminal is located and a horizontal plane within a preset time period; averaging the plurality of angle values, and determining the average value as the angle value of the terminal;
the determining module is used for determining the target application according to the angle value;
the determining module includes:
the angle determining submodule is used for determining an angle interval where the angle value is located according to a plurality of preset angle intervals;
the application determining submodule is used for determining a target application according to the angle interval and a preset mapping relation, wherein the preset mapping relation is a corresponding relation between the angle interval and the target application;
and the starting module is used for unlocking the terminal and starting the target application.
4. The apparatus for starting application according to claim 3, wherein the terminal comprises an angular velocity sensor, and the acquiring module comprises:
the generating submodule is used for generating an obtaining instruction according to the unlocking instruction;
and the acquisition submodule is used for acquiring the detection data of the angular velocity sensor according to the acquisition instruction so as to acquire the angle value of the terminal.
5. A storage medium having stored thereon a computer program, characterized in that the program, when being executed by a processor, carries out the steps of the method of opening an application according to any one of claims 1 to 2.
6. A terminal, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the method for opening an application according to any one of claims 1 to 2.
CN201710526269.7A 2017-06-30 2017-06-30 Method and device for opening application, storage medium and terminal Active CN107395871B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710526269.7A CN107395871B (en) 2017-06-30 2017-06-30 Method and device for opening application, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710526269.7A CN107395871B (en) 2017-06-30 2017-06-30 Method and device for opening application, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN107395871A CN107395871A (en) 2017-11-24
CN107395871B true CN107395871B (en) 2020-06-02

Family

ID=60334887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710526269.7A Active CN107395871B (en) 2017-06-30 2017-06-30 Method and device for opening application, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN107395871B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110196973B (en) * 2019-05-27 2021-07-13 珠海格力电器股份有限公司 Remark display method and device
CN110457943A (en) * 2019-07-31 2019-11-15 维沃移动通信有限公司 A kind of application permission setting method and mobile terminal
CN110620833B (en) * 2019-08-16 2021-05-11 华为技术有限公司 Display method of foldable electronic equipment and electronic equipment
CN110516473A (en) * 2019-08-23 2019-11-29 努比亚技术有限公司 Starting method, terminal and the computer readable storage medium of application program
CN111258485B (en) * 2020-01-17 2021-09-03 惠州Tcl移动通信有限公司 Application program starting method and device, storage medium and terminal
CN111526250B (en) * 2020-05-07 2021-06-22 北京网梯科技发展有限公司 Method and device for automatically starting book point reading function
CN112596600A (en) * 2020-12-16 2021-04-02 惠州Tcl移动通信有限公司 Screen unlocking method and device, storage medium and mobile terminal
CN113157229A (en) * 2021-03-25 2021-07-23 联想(北京)有限公司 Display control method, electronic equipment and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009289039A (en) * 2008-05-29 2009-12-10 Sharp Corp Portable terminal, application selection method, program, and recording medium
CN104202476A (en) * 2014-08-28 2014-12-10 惠州Tcl移动通信有限公司 Mobile phone and automatic application opening method for same
CN104516495A (en) * 2013-09-30 2015-04-15 中兴通讯股份有限公司 Method and terminal for quickly entering terminal application
CN104615245A (en) * 2015-01-29 2015-05-13 深圳市金立通信设备有限公司 Method for starting application through terminal
WO2016123842A1 (en) * 2015-02-03 2016-08-11 中兴通讯股份有限公司 Method and device for starting application program of terminal
CN106231086A (en) * 2016-07-27 2016-12-14 惠州Tcl移动通信有限公司 The method and system of mobile terminal application are opened based on rotation of mobile terminal angle
CN106778131A (en) * 2016-11-30 2017-05-31 广东欧珀移动通信有限公司 A kind of display methods of hiding information, device and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014115186A1 (en) * 2013-01-24 2014-07-31 富士通株式会社 Portable information terminal, control method, and control program
KR20150081062A (en) * 2014-01-03 2015-07-13 엘지전자 주식회사 Convertible device and method of controlling thereof
CN104331231A (en) * 2014-11-27 2015-02-04 广东欧珀移动通信有限公司 Screen unlocking method and screen unlocking device of mobile terminal
CN106354494B (en) * 2016-08-23 2020-02-28 宇龙计算机通信科技(深圳)有限公司 Method and system for quickly starting application program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009289039A (en) * 2008-05-29 2009-12-10 Sharp Corp Portable terminal, application selection method, program, and recording medium
CN104516495A (en) * 2013-09-30 2015-04-15 中兴通讯股份有限公司 Method and terminal for quickly entering terminal application
CN104202476A (en) * 2014-08-28 2014-12-10 惠州Tcl移动通信有限公司 Mobile phone and automatic application opening method for same
CN104615245A (en) * 2015-01-29 2015-05-13 深圳市金立通信设备有限公司 Method for starting application through terminal
WO2016123842A1 (en) * 2015-02-03 2016-08-11 中兴通讯股份有限公司 Method and device for starting application program of terminal
CN106231086A (en) * 2016-07-27 2016-12-14 惠州Tcl移动通信有限公司 The method and system of mobile terminal application are opened based on rotation of mobile terminal angle
CN106778131A (en) * 2016-11-30 2017-05-31 广东欧珀移动通信有限公司 A kind of display methods of hiding information, device and terminal

Also Published As

Publication number Publication date
CN107395871A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
CN107395871B (en) Method and device for opening application, storage medium and terminal
US11868459B2 (en) Operation method with fingerprint recognition, apparatus, and mobile terminal
US10585490B2 (en) Controlling inadvertent inputs to a mobile device
CN106599716B (en) Message content protection method and device and mobile terminal
EP2603844B1 (en) Finger identification on a touchscreen
US9916514B2 (en) Text recognition driven functionality
KR101941963B1 (en) Method, storage media and system, in particular relating to a touch gesture offset
WO2018214885A1 (en) Radio frequency interference processing method and electronic device
CN107330859B (en) Image processing method and device, storage medium and terminal
US9692871B2 (en) Information processing method and electronic device
CN106778131B (en) Display method and device of hidden information and terminal
CN106886351B (en) Display method and device of terminal time information and computer equipment
US9235338B1 (en) Pan and zoom gesture detection in a multiple touch display
CN106791170B (en) Network processing method, device and terminal
US9710080B2 (en) Portable electronic device including contact sensors, and method for controlling same
CN106933576B (en) Terminal unlocking method and device and computer equipment
CN108062199B (en) Touch information processing method and device, storage medium and terminal
CN111027406A (en) Picture identification method and device, storage medium and electronic equipment
CN111796980A (en) Data processing method and device, electronic equipment and storage medium
CN116708662A (en) Electronic equipment state prompting method and device and electronic equipment
WO2018049811A1 (en) Method for operating mobile terminal, and mobile terminal
CN114415929A (en) Control method and device of electronic equipment, electronic equipment 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

GR01 Patent grant
GR01 Patent grant