CN111897472A - Key time-sharing management method, system, storage medium and mobile terminal - Google Patents

Key time-sharing management method, system, storage medium and mobile terminal Download PDF

Info

Publication number
CN111897472A
CN111897472A CN202010724812.6A CN202010724812A CN111897472A CN 111897472 A CN111897472 A CN 111897472A CN 202010724812 A CN202010724812 A CN 202010724812A CN 111897472 A CN111897472 A CN 111897472A
Authority
CN
China
Prior art keywords
key
function
click event
mobile terminal
preset time
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.)
Pending
Application number
CN202010724812.6A
Other languages
Chinese (zh)
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202010724812.6A priority Critical patent/CN111897472A/en
Publication of CN111897472A publication Critical patent/CN111897472A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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
    • G06F3/0488Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The application provides a key time-sharing management method, a key time-sharing management system, a storage medium and a mobile terminal. According to the method and the device, a plurality of preset time periods are set, each preset time period corresponds to one function, the set parameters are stored in the database, the set parameters comprise a first parameter and a second parameter, the first parameter is used for defining the preset time periods, the second parameter is used for defining the corresponding relation between the preset time periods and the corresponding functions, when a double-click event of the key is obtained, different functions can be realized according to the current time of the mobile terminal system, and therefore the requirement that a user autonomously sets different functions of the key in different time periods is met.

Description

Key time-sharing management method, system, storage medium and mobile terminal
Technical Field
The application relates to the technical field of mobile communication, in particular to a key time-sharing management method, a key time-sharing management system, a storage medium and a mobile terminal.
Background
With the popularity of smart phones, people's daily lives have been kept away from smart phones. The application of physical keys in the field of smart phone systems is very wide, the smart phones have more operating systems, such as an iOS system, an Android system and a Windows system, but different systems can use the physical keys. The commonly used functions of the physical keys may include several, such as a power key, a volume up-down key. The functions of the physical keys are set when the system is pre-installed, and the user cannot achieve the required effect through self-setting, for example, double-clicking one physical key can only start the camera to take a picture, but cannot execute other applications. However, the functional requirements of the physical keys are different in different periods of time.
Therefore, the present application provides a method, a system, a storage medium and a mobile terminal for key time sharing management to solve the above problems.
Disclosure of Invention
The embodiment of the application provides a key time-sharing management method, a key time-sharing management system, a storage medium and a mobile terminal, and solves the problem that a user cannot independently set corresponding functions due to different functional requirements on physical keys at different time intervals.
According to a first aspect of the present application, an embodiment of the present application provides a key time sharing management method, which is applied to a mobile terminal, and the key time sharing management method includes: acquiring a key click event; judging whether the key clicking event is a double-click event or not; when the key clicking event is judged to be a double-click event, acquiring the current time of a system of the mobile terminal; judging whether the current time is in one of a plurality of preset time periods, wherein the preset time periods at least comprise a first time period and a second time period; when the current time is judged to be in the first time period, starting a first function; and starting a second function when the current time is judged to be in the second time interval.
Further, before the step of acquiring a key click event, the method further includes: setting a plurality of preset time periods, wherein each preset time period corresponds to a function; and storing the set parameters into a database, wherein the set parameters comprise a first parameter and a second parameter, the first parameter is used for defining a plurality of preset time periods, and the second parameter is used for defining the corresponding relation between the preset time periods and the corresponding functions.
Further, after the step of determining whether the key click event is a double-click event, the method further includes: and starting a third function when the key clicking event is judged not to be a double-click event.
Further, the first function includes a photographing function, and the second function includes an illumination function.
According to a second aspect of the present application, an embodiment of the present application provides a key time sharing management system, which is applied to a mobile terminal, and the key time sharing management system includes: the first acquisition module is used for acquiring a key click event; the first judgment module is used for judging whether the key click event is a double-click event or not; the second acquisition module is used for acquiring the current system time of the mobile terminal when the key click event is judged to be a double click event; the second judging module is used for judging whether the current time is in one of a plurality of preset time periods, wherein the preset time periods at least comprise a first time period and a second time period; the first starting module is used for starting a first function when the current time is judged to be in the first time interval; and the second starting module is used for starting a second function when the current time is judged to be in the second time interval.
Further, the key-press time-sharing management system further includes: the setting module is used for setting a plurality of preset time periods, and each preset time period corresponds to a function; and the storage module is used for storing the set parameters into the database, wherein the set parameters comprise a first parameter and a second parameter, the first parameter defines a plurality of preset time periods, and the second parameter defines the corresponding relation between the preset time periods and the corresponding functions.
Further, the key-press time-sharing management system further includes: and the third starting module is used for starting a third function when the key clicking event is judged not to be a double-click event.
Further, the first function includes a photographing function, and the second function includes an illumination function.
According to a third aspect of the present application, an embodiment of the present application provides a storage medium having a plurality of instructions stored therein, where the instructions are suitable for being loaded by a processor to execute the above-mentioned key time sharing management method.
According to a fourth aspect of the present application, an embodiment of the present application provides a mobile terminal, which includes a processor and a memory, where the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used to execute the steps in the key time sharing management method.
The embodiment of the application provides a key time-sharing management method, a key time-sharing management system, a storage medium and a mobile terminal. The beneficial effect of this application lies in: by setting a plurality of preset time periods, each preset time period corresponds to a function and storing the set parameters into a database, wherein the set parameters comprise a first parameter and a second parameter, the first parameter is used for defining the plurality of preset time periods, the second parameter is used for defining the corresponding relation between the preset time periods and the corresponding functions, when a double-click event of the key is acquired, different functions can be realized according to the current time of the mobile terminal system, and therefore the requirement of a user for independently setting different functions of the key in different time periods is met.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart illustrating steps of a key time sharing management method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a key time sharing management system according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," and the like in the description and in the claims of the present application and in the above-described drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the objects so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
In particular embodiments, the drawings discussed below and the various embodiments used to describe the principles of the present disclosure are by way of illustration only and should not be construed to limit the scope of the present disclosure. Those skilled in the art will understand that the principles of the present application may be implemented in any suitably arranged system. Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. Further, a mobile terminal according to an exemplary embodiment will be described in detail with reference to the accompanying drawings. Like reference symbols in the various drawings indicate like elements.
The terminology used in the detailed description is for the purpose of describing particular embodiments only and is not intended to be limiting of the concepts of the present application. Unless the context clearly dictates otherwise, expressions used in the singular form encompass expressions in the plural form. In the present specification, it will be understood that terms such as "including," "having," and "containing" are intended to specify the presence of the features, integers, steps, acts, or combinations thereof disclosed in the specification, and are not intended to preclude the presence or addition of one or more other features, integers, steps, acts, or combinations thereof. Like reference symbols in the various drawings indicate like elements.
In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
The following disclosure provides many different embodiments or examples for implementing different features of the application. In order to simplify the disclosure of the present application, specific example components and arrangements are described below. Of course, they are merely examples and are not intended to limit the present application. Moreover, the present application may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, examples of various specific processes and materials are provided herein, but one of ordinary skill in the art may recognize applications of other processes and/or use of other materials.
Specifically, referring to fig. 1, an embodiment of the present application provides a key time sharing management method for a mobile terminal, which includes the following steps.
Step S11, setting a plurality of preset time periods, each preset time period corresponding to a function.
In the embodiment of the present application, a key time sharing function is provided in a system of a mobile terminal, a plurality of preset time periods are set through the key time sharing function, and each preset time period corresponds to one function, for example, a first time period in the preset time periods corresponds to a first function, a second time period corresponds to a second function, and the like. Specifically, the first period is 07: 00 to 23: 00 corresponds to a shooting function, and the second period 00: 00 to 06: 00 corresponds to the illumination function. The application may also include setting more than two time periods.
Step S12, the set parameters are stored in the database.
In the embodiment of the application, the set parameters include a first parameter and a second parameter, wherein the first parameter is used for defining a plurality of preset time periods, and the second parameter is used for defining the corresponding relation between the preset time periods and the corresponding functions.
In step S13, a key click event is acquired.
In the embodiment of the application, when the key driving module connected with the key monitors the click event, a message corresponding to the click event is generated and transmitted to the user interface of the mobile terminal system.
And step S14, judging whether the key click event is a double-click event. When the key click event is determined to be a double click event, performing steps S15 to S18; when it is determined that the key click event is not the double click event, step S19 is performed.
In the embodiment of the application, the time interval between two adjacent key click events is obtained, whether the event interval is smaller than a threshold value is judged, and if yes, a double click event is judged. The threshold may be set to 0.2s, and if the threshold is too large, the triggering condition of the double-click event is too loose, which results in determining that the double-click event starts the corresponding function when unnecessary, thereby increasing power consumption. If the threshold is too small, the triggering condition of the double-click event is too harsh, so that the double-click event is difficult to judge to start the corresponding function, and the use experience is poor.
And step S15, when the key click event is judged to be a double-click event, acquiring the current time of the system of the mobile terminal.
In the embodiment of the application, the current time of the system of the mobile terminal is acquired and used for comparing with a plurality of preset time periods in a local database. Wherein the local database is a database in a local server in communication with the mobile terminal.
Step S16, determining whether the current time is in one of a plurality of preset time periods, where the preset time periods at least include a first time period and a second time period.
Step S17, when the current time is determined to be in the first time period, a first function is started.
And step S18, when the current time is judged to be in the second time period, starting a second function.
In the embodiment of the application, a first time period in the preset time periods corresponds to a first function, a second time period corresponds to a second function, and the like. Specifically, the first period is 07: 00 to 23: 00 corresponds to a shooting function, and the second period 00: 00 to 06: 00 corresponds to the illumination function.
In other embodiments, the preset time period may further include a third time period and more time periods, and the functions corresponding to the third time period may include, but are not limited to, playing music, emergency dialing (alarm), time broadcasting, and the like.
And step S19, when the key click event is judged not to be a double-click event, starting a third function.
In the embodiment of the present application, the third function may include volume increase, volume decrease, return to the home page, recent task management, and the like.
Referring to fig. 2, an embodiment of the present application provides a key time sharing management system, where the key time sharing management method is used for a mobile terminal, and the key time sharing management system includes a setting module 201, a storage module 202, a first obtaining module 203, a first determining module 204, a second obtaining module 205, a second determining module 206, a first starting module 207, a second starting module 208, and a third starting module 209.
The setting module 201 is configured to set a plurality of preset time periods, where each preset time period corresponds to a function.
In the embodiment of the application, a key time sharing function is provided in a system of the mobile terminal, a plurality of preset time periods are set through the key time sharing function, and each preset time period corresponds to one function. For example, a first time period in the preset time period corresponds to a first function, a second time period corresponds to a second function, and the like. Specifically, the first period is 07: 00 to 23: 00 corresponds to a shooting function, and the second period 00: 00 to 06: 00 corresponds to the illumination function. The application may also include setting more than two time periods.
The storage module 202 is used for storing the set parameters into a database.
In the embodiment of the application, the set parameters include a first parameter and a second parameter, wherein the first parameter is used for defining a plurality of preset time periods, and the second parameter is used for defining the corresponding relation between the preset time periods and the corresponding functions.
The first obtaining module 203 is configured to obtain a key click event.
In the embodiment of the application, when the key driving module connected with the key monitors the click event, a message corresponding to the click event is generated and transmitted to the user interface of the mobile terminal system. Here, the key driving module may be a first obtaining module.
The first determining module 204 is configured to determine whether the key click event is a double-click event.
In the embodiment of the application, the time interval between two adjacent key click events is obtained, whether the event interval is smaller than a threshold value is judged, and if yes, a double click event is judged. The threshold value can be set to 0.2s, if the threshold value is too large, the triggering condition of the double-click event is too loose, so that the double-click event is judged to start the corresponding function when unnecessary, and the power consumption is increased; if the threshold is too small, the triggering condition of the double-click event is too harsh, so that the double-click event is difficult to judge to start the corresponding function, and the use experience is poor.
The second obtaining module 205 is configured to obtain a current time of a system of the mobile terminal when it is determined that the key click event is a double-click event.
In the embodiment of the application, the current time of the system of the mobile terminal is acquired and used for comparing with a plurality of preset time periods in a database.
The second determining module 206 is configured to determine whether the current time is within one of a plurality of preset time periods, where the preset time periods at least include a first time period and a second time period.
The first starting module 207 is configured to start a first function when it is determined that the current time is in the first time period.
The second starting module 208 is configured to start a second function when it is determined that the current time is in the second time period.
In the embodiment of the application, a first time period in the preset time periods corresponds to a first function, a second time period corresponds to a second function, and the like. Specifically, the first period is 07: 00 to 23: 00 corresponds to a shooting function, and the second period 00: 00 to 06: 00 corresponds to the illumination function.
In other embodiments, the preset time period may further include a third time period and more time periods, and the functions corresponding to the third time period may include, but are not limited to, playing music, emergency dialing (alarm), time broadcasting, and the like.
The third starting module 209 is configured to start a third function when it is determined that the key click event is not a double-click event.
In the embodiment of the present application, the third function may include volume increase, volume decrease, return to the home page, recent task management, and the like.
Referring to fig. 3, an embodiment of the present application further provides a mobile terminal 300, where the mobile terminal 300 may be a mobile phone, a tablet, a computer, and other devices. As shown in fig. 3, the mobile terminal 300 includes a processor 301, a memory 302. The processor 301 is electrically connected to the memory 302.
The processor 301 is a control center of the mobile terminal 300, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or loading an application program stored in the memory 302 and calling data stored in the memory 302, thereby integrally monitoring the mobile terminal.
In this embodiment, the mobile terminal 300 is provided with a plurality of memory partitions, where the plurality of memory partitions includes a system partition and a target partition, and the processor 301 in the mobile terminal 300 loads instructions corresponding to processes of one or more application programs into the memory 302 according to the following steps, and the processor 301 runs the application programs stored in the memory 302, so as to implement various functions:
acquiring a key click event;
judging whether the key clicking event is a double-click event or not;
when the key clicking event is judged to be a double-click event, acquiring the current time of a system of the mobile terminal;
judging whether the current time is in one of a plurality of preset time periods, wherein the preset time periods at least comprise a first time period and a second time period;
when the current time is judged to be in the first time period, starting a first function; and
and when the current time is judged to be in the second time interval, starting a second function.
Referring to fig. 4, fig. 4 is a specific block diagram of a mobile terminal 400 provided in the embodiment of the present application, where the mobile terminal 400 may be used to implement the key time sharing management method provided in the foregoing embodiment. The mobile terminal 400 may be a mobile phone or a tablet. The mobile terminal 400 also includes the following components.
The RF circuit 410 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 410 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 410 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Mobile Communication (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11a, IEEE802.11 b, IEEE802.11g and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide Microwave Access (Microwave for Wireless), Max-1, and other short message protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 420 may be used to store software programs and modules, such as program instructions/modules corresponding to the key time sharing management method in the foregoing embodiment, and the processor 480 executes various functional applications and data processing by running the software programs and modules stored in the memory 420, that is, the functions of the key time sharing management method are implemented. The memory 420 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 420 may further include memory located remotely from the processor 480, which may be connected to the mobile terminal 400 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 430 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 430 may include a touch-sensitive surface 431 as well as other input devices 432. The touch-sensitive surface 431, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 431 (e.g., operations by a user on or near the touch-sensitive surface 431 using any suitable object or attachment such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 431 may comprise both a touch detection device 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 480, and receives and executes commands sent from the processor 480. In addition, the touch-sensitive surface 431 may be implemented in various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 430 may include other input devices 432 in addition to the touch-sensitive surface 431. In particular, other input devices 432 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 trackball, a mouse, a joystick, and the like.
The display unit 440 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 400, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 440 may include a Display panel 441, and optionally, the Display panel 441 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 431 may overlay the display panel 441, and when a touch operation is detected on or near the touch-sensitive surface 431, the touch operation is transmitted to the processor 480 to determine the type of the touch event, and then the processor 480 provides a corresponding visual output on the display panel 441 according to the type of the touch event. Although in FIG. 4 the touch sensitive surface 431 and the display panel 441 are two separate components to implement input and output functions, in some embodiments the touch sensitive surface 431 and the display panel 441 may be integrated to implement input and output functions.
The mobile terminal 400 may also include at least one sensor 450, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 441 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 441 and/or a backlight when the mobile terminal 400 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 may be further configured on the mobile terminal 400, detailed descriptions thereof are omitted.
The audio circuit 460, speaker 461, microphone 462 may provide an audio interface between a user and the mobile terminal 400. The audio circuit 460 may transmit the electrical signal converted from the received audio data to the speaker 461, and convert the electrical signal into a sound signal for output by the speaker 461; on the other hand, the microphone 462 converts the collected sound signal into an electric signal, which is received by the audio circuit 460 and converted into audio data, which is then processed by the audio data output processor 480, and then transmitted to, for example, another terminal via the RF circuit 410, or output to the memory 420 for further processing. The audio circuit 460 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 400.
The mobile terminal 400, which may assist the user in e-mail, web browsing, and streaming media access, etc., through the transmission module 470 (e.g., a Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 4 shows the transmission module 470, it is understood that it does not belong to the essential constitution of the mobile terminal 400 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 480 is a control center of the mobile terminal 400, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 400 and processes data by operating or executing software programs and/or modules stored in the memory 420 and calling data stored in the memory 420, thereby integrally monitoring the mobile phone. Optionally, processor 480 may include one or more processing cores; in some embodiments, processor 480 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 480.
The mobile terminal 400 also includes a power supply 460 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 480 via a power management system that may, in some embodiments, enable management of charging, discharging, and power consumption via the power management system. The power supply 460 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the mobile terminal 400 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
acquiring a key click event;
judging whether the key clicking event is a double-click event or not;
when the key clicking event is judged to be a double-click event, acquiring the current time of a system of the mobile terminal;
judging whether the current time is in one of a plurality of preset time periods, wherein the preset time periods at least comprise a first time period and a second time period;
when the current time is judged to be in the first time period, starting a first function; and
and when the current time is judged to be in the second time interval, starting a second function.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, and the instructions may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present application provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the methods for managing when a key is pressed.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any one of the key time sharing management methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the key time sharing management methods provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described again here. The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The beneficial effect of this application lies in: the method comprises the steps that a plurality of preset time periods are set, each preset time period corresponds to a function, the set parameters are stored in a database, the set parameters comprise a first parameter and a second parameter, the first parameter is used for defining the preset time periods, the second parameter is used for defining the corresponding relation between the preset time periods and the corresponding functions, when a double-click event of the key is obtained, different functions are achieved according to the current time of a mobile terminal system, and therefore the requirement that a user autonomously sets different functions of the key in different time periods is met.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The key time sharing management method, the key time sharing management system, the storage medium and the mobile terminal provided by the embodiment of the application are introduced in detail, a specific example is applied in the text to explain the principle and the implementation of the application, and the description of the embodiment is only used for helping to understand the technical scheme and the core idea of the application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (10)

1. A key time sharing management method is applied to a mobile terminal and is characterized by comprising the following steps:
acquiring a key click event;
judging whether the key clicking event is a double-click event or not;
when the key clicking event is judged to be a double-click event, acquiring the current time of a system of the mobile terminal;
judging whether the current time is in one of a plurality of preset time periods, wherein the preset time periods at least comprise a first time period and a second time period;
when the current time is judged to be in the first time period, starting a first function; and
and when the current time is judged to be in the second time interval, starting a second function.
2. The key press time sharing management method according to claim 1, further comprising, before the step of acquiring a key click event:
setting a plurality of preset time periods, wherein each preset time period corresponds to a function; and
and storing the set parameters into a database, wherein the set parameters comprise a first parameter and a second parameter, the first parameter is used for defining a plurality of preset time periods, and the second parameter is used for defining the corresponding relation between the preset time periods and the corresponding functions.
3. The key press time sharing management method according to claim 1, further comprising, after the step of determining whether the key press event is a double-click event:
and starting a third function when the key clicking event is judged not to be a double-click event.
4. The key sharing management method according to claim 1, wherein the first function includes a photographing function, and the second function includes an illuminating function.
5. A key time sharing management system is applied to a mobile terminal, and is characterized by comprising:
the first acquisition module is used for acquiring a key click event;
the first judgment module is used for judging whether the key click event is a double-click event or not;
the second acquisition module is used for acquiring the current system time of the mobile terminal when the key click event is judged to be a double click event;
the second judging module is used for judging whether the current time is in one of a plurality of preset time periods, wherein the preset time periods at least comprise a first time period and a second time period;
the first starting module is used for starting a first function when the current time is judged to be in the first time interval; and
and the second starting module is used for starting a second function when the current time is judged to be in the second time interval.
6. The key press time sharing management system according to claim 5, further comprising:
the setting module is used for setting a plurality of preset time periods, and each preset time period corresponds to a function; and
the storage module is used for storing the set parameters into the database, wherein the set parameters comprise a first parameter and a second parameter, the first parameter is used for defining a plurality of preset time periods, and the second parameter is used for defining the corresponding relation between the preset time periods and the corresponding functions.
7. The key sharing management method according to claim 5, wherein the key sharing management system further comprises:
and the third starting module is used for starting a third function when the key clicking event is judged not to be a double-click event.
8. The key sharing management method according to claim 5, wherein the first function includes a photographing function, and the second function includes an illuminating function.
9. A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the method of key press time sharing management of any one of claims 1 to 4.
10. A mobile terminal, comprising a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps of the key time sharing management method according to any one of claims 1 to 4.
CN202010724812.6A 2020-07-24 2020-07-24 Key time-sharing management method, system, storage medium and mobile terminal Pending CN111897472A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010724812.6A CN111897472A (en) 2020-07-24 2020-07-24 Key time-sharing management method, system, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010724812.6A CN111897472A (en) 2020-07-24 2020-07-24 Key time-sharing management method, system, storage medium and mobile terminal

Publications (1)

Publication Number Publication Date
CN111897472A true CN111897472A (en) 2020-11-06

Family

ID=73189898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010724812.6A Pending CN111897472A (en) 2020-07-24 2020-07-24 Key time-sharing management method, system, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN111897472A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105706026A (en) * 2013-12-16 2016-06-22 英特尔公司 Typing apparatuses, systems, and methods
CN208904704U (en) * 2018-10-26 2019-05-24 潍坊歌尔电子有限公司 The earphone charging box of multi-function by one key circuit and the application circuit
CN110401764A (en) * 2018-09-06 2019-11-01 上海伴我科技有限公司 Simplified interaction logic and exchange method, electronic equipment
CN111176518A (en) * 2018-11-12 2020-05-19 奇酷互联网络科技(深圳)有限公司 Method of performing operation, mobile terminal, and computer-readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105706026A (en) * 2013-12-16 2016-06-22 英特尔公司 Typing apparatuses, systems, and methods
CN110401764A (en) * 2018-09-06 2019-11-01 上海伴我科技有限公司 Simplified interaction logic and exchange method, electronic equipment
CN110881080A (en) * 2018-09-06 2020-03-13 上海伴我科技有限公司 Electronic device mainly relying on physical keys to interact with programs
CN208904704U (en) * 2018-10-26 2019-05-24 潍坊歌尔电子有限公司 The earphone charging box of multi-function by one key circuit and the application circuit
CN111176518A (en) * 2018-11-12 2020-05-19 奇酷互联网络科技(深圳)有限公司 Method of performing operation, mobile terminal, and computer-readable storage medium

Similar Documents

Publication Publication Date Title
CN108900231B (en) Dynamic antenna adjustment method and related product
CN108833683B (en) Dynamic antenna adjustment implementation method and related product
CN110691168B (en) Screen control method and device of mobile terminal and storage medium
CN111443803A (en) Mode switching method, device, storage medium and mobile terminal
CN108810261B (en) Antenna switching method in call and related product
CN111580911A (en) Operation prompting method and device for terminal, storage medium and terminal
CN112367425B (en) Volume adjusting method and device and terminal
CN105635379B (en) Noise suppression method and device
CN111343335B (en) Image display processing method, system, storage medium and mobile terminal
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN111897472A (en) Key time-sharing management method, system, storage medium and mobile terminal
CN111031038A (en) Network processing method and device, storage medium and terminal equipment
CN111654849A (en) Quick starting method and system for near field communication, storage medium and terminal equipment
CN111273774A (en) Terminal device display screen control method and system, storage medium and terminal device
CN111104186A (en) Bluetooth configuration file loading method and device, storage medium and terminal equipment
CN111163223A (en) Flash lamp control method and device, storage medium and terminal equipment
CN111048056A (en) Terminal equipment brightness adjusting method and system, storage medium and terminal equipment
CN111026259A (en) Control method and device of mobile terminal and storage medium
CN110618798A (en) Multi-screen display method, multi-screen device, storage medium and terminal equipment
CN109995441B (en) Communication information processing method, device and storage medium
CN110569099B (en) Message display method and related product
CN111026486B (en) Application sorting method, application sorting device and computer readable storage medium
CN111405649B (en) Information transmission method and device and mobile terminal
CN110572516B (en) Call control method, device, storage medium and terminal equipment
CN111857347A (en) Mobile terminal control method, system, storage medium and mobile terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201106