CN111708473A - Operation control method and device of application program and electronic equipment - Google Patents

Operation control method and device of application program and electronic equipment Download PDF

Info

Publication number
CN111708473A
CN111708473A CN202010450855.XA CN202010450855A CN111708473A CN 111708473 A CN111708473 A CN 111708473A CN 202010450855 A CN202010450855 A CN 202010450855A CN 111708473 A CN111708473 A CN 111708473A
Authority
CN
China
Prior art keywords
character
characters
preset type
application program
target
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.)
Granted
Application number
CN202010450855.XA
Other languages
Chinese (zh)
Other versions
CN111708473B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010450855.XA priority Critical patent/CN111708473B/en
Publication of CN111708473A publication Critical patent/CN111708473A/en
Application granted granted Critical
Publication of CN111708473B publication Critical patent/CN111708473B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/02Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an operation control method and device of an application program and electronic equipment, and belongs to the technical field of electronic equipment. The method comprises the following steps: detecting whether a plurality of characters of preset types are continuously received or not under the condition of displaying a target interface of an application program; and under the condition that the characters of the preset types are continuously received and a target object accords with a mathematical calculation rule, calculating according to the target object and displaying a calculation result, wherein the target object is an object consisting of the characters of the preset types. The embodiment of the invention solves the problems that in the prior art, under the condition that calculation is needed in the using process of a non-calculation application program, a user has to frequently switch a calculator and the application program, and the calculation result needs to be memorized, so that inconvenience is brought to the user.

Description

Operation control method and device of application program and electronic equipment
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to an operation control method and device of an application program and electronic equipment.
Background
At present, the communication between people is more and more independent of the chat software of the terminal. The communication tool brings great convenience to the life of people, and people can be connected with relatives, friends, colleagues and classmates at any time and any place through various social software.
However, in the course of implementing the present application, the inventors have found that with the popularization of the terminal communication method, due to the needs of work and life, there are often cases where a chat requires the use of a computing function, such as checking accounts with colleagues, calculating first payments, and the like. When the situation occurs, the user can only frequently switch the calculator and the chat tool to complete the calculation at present, which brings inconvenience to the communication of the user. And, sometimes, the number calculated is large, thereby bringing memory pressure to the user.
Similarly, in the using process of any non-computing application installed on the electronic device, if a computing function needs to be used, the user can only switch the application and the calculator frequently to complete the computation.
Therefore, in the prior art, in the using process of the non-computing application program, if the computing is required, a user has to frequently switch the calculator and the application program, and the computing result needs to be memorized, which brings inconvenience to the user.
Disclosure of Invention
Embodiments of the present invention provide an operation control method and apparatus for an application program, and an electronic device, so as to solve the problem in the prior art that a user has to frequently switch a calculator and an application program and needs to memorize a calculation result when a calculation is required during the use of a non-calculation application program, which is inconvenient for the user.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an operation control method for an application program, where the method includes:
detecting whether a plurality of characters of preset types are continuously received or not under the condition of displaying a target interface of an application program;
and under the condition that the characters of the preset types are continuously received and a target object accords with a mathematical calculation rule, calculating according to the target object and displaying a calculation result, wherein the target object is an object consisting of the characters of the preset types.
In a second aspect, an embodiment of the present application provides an operation control apparatus for an application program, where the apparatus includes:
the detection module is used for detecting whether a plurality of characters of preset types are continuously received or not under the condition that a target interface of an application program is displayed;
and the calculation and display module is used for calculating according to the target object and displaying a calculation result under the condition that the characters of the preset types are continuously received and the target object conforms to a mathematical calculation rule, wherein the target object is an object consisting of the characters of the preset types.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, under the condition that a target interface of an application program is displayed, whether a plurality of preset types of characters are continuously received or not is detected, and under the condition that the plurality of preset types of characters are continuously received and a target object formed by the characters accords with a mathematical calculation rule, calculation is performed according to the target object to obtain a calculation result, so that the calculation result is displayed. Therefore, under the condition of displaying the target interface of the application program, calculation can be carried out according to the received object which accords with the mathematical calculation rule, and the calculation result is displayed, so that a user can see the calculation result in the use process of the application program without frequently switching between a calculator and the application program, the calculation result is displayed while the target interface is displayed, and the user does not need to memorize the calculation result, thereby providing convenience for the user.
Drawings
Fig. 1 is a flowchart illustrating an operation control method of an application according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating one display of a chat interface of a social application in an embodiment of the invention;
FIG. 3 is a second schematic diagram of a chat interface of a social application according to an embodiment of the invention;
FIG. 4 is a third schematic diagram illustrating a chat interface of a social application according to an embodiment of the invention;
fig. 5 is a flowchart illustrating an embodiment of an operation control method for an application according to an embodiment of the present invention;
fig. 6 is a block diagram showing an operation control device of an application program according to an embodiment of the present invention;
fig. 7 shows a block diagram of an electronic device provided by an embodiment of the invention.
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, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 and the like in the description and in the claims of the present application 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 data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail an operation control method of an application program provided in the embodiments of the present application with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, an embodiment of the present invention provides an operation control method for an application program, including the following steps:
step 101: in the case of displaying a target interface of an application, it is detected whether a plurality of preset types of characters are continuously received.
The application program may be any one of a plurality of non-computing applications installed on the electronic device. The preset type of characters include numbers, letters, and mathematical symbols. The mathematical symbols include decimal point, operation sign (e.g., addition, subtraction, multiplication, division, differentiation, integration, absolute value sign, etc.), number sign (e.g., cycle-pi, natural-e, Fibonacci golden section-
Figure BDA0002507642410000041
) Relational symbols (e.g., greater than, less than, equal to), conjunctive symbols (e.g., small brackets, medium brackets, large brackets), property symbols (e.g., plus, minus), eligibility symbols (e.g., triangle- △, sine-sin), permutation-combination symbols (e.g., combination-C, permutation-a, factorial- |), discrete math symbols (e.g., null set symbols).
In addition, whether a plurality of preset types of characters are continuously received is detected, that is, whether a user inputs a plurality of preset types of characters in the electronic device is detected, and whether a plurality of preset types of characters sent by other electronic devices are received. Wherein the other electronic devices are electronic devices other than the electronic device displaying the target interface in step 101.
In addition, the electronic device displays a target interface for the application, indicating that a user of the electronic device is using the application installed on the electronic device. Therefore, the embodiment of the invention can detect whether a plurality of characters of the preset type are continuously received in real time in the process that the user uses the application program.
For example, the application may be a social application, and the target interface may be a chat interface. Therefore, in the process that the user communicates with the opposite-end device by using the social application installed on the electronic device, whether the user inputs a plurality of preset types of characters in the electronic device can be detected in real time.
Specifically, for example, a user needs to calculate "457 x 581" in a process of communicating with a user of a peer device by using a social application of an electronic device, and the user may directly input the character "457 x 581" in a character input box of a chat interface of the social application. The electronic device may detect that a plurality of digits and an operator are received in succession.
Step 102: and under the condition that the characters of the preset types are continuously received and a target object accords with a mathematical calculation rule, calculating according to the target object and displaying a calculation result, wherein the target object is an object consisting of the characters of the preset types.
In step 101, when it is detected that a plurality of preset types of characters are continuously received, and it is possible that a target object composed of the characters does not conform to a mathematical calculation rule, the calculation cannot be performed in such a case, and therefore, when it is detected that a plurality of preset types of characters are continuously received, it is further determined whether the target object composed of the continuously received characters conforms to the mathematical calculation rule, and when the target object conforms to the mathematical calculation rule, the calculation is performed.
In addition, the target object may be one of an arithmetic expression, a logical expression, an equation, and an inequality. An arithmetic expression is, for example, "457 x 581", and the calculation result is "265517"; the logical expression is, for example, "5 > 4", and its calculation result is "true"; the equation is, for example, "1 ═ 2+ x", and the calculation result is "x ═ 1"; the inequality is, for example, "1 + x > 3", and the calculation result is "x > 2".
The target object can be understood that in terms of mathematical computation, mathematical symbols are various, and the forms of objects composed of various mathematical symbols (such as integrals, derivatives, trigonometric functions, and the like), numbers, and letters are also various, so that the electronic device can be set to detect whether more types of objects conform to mathematical computation rules, so that the electronic device can perform more complex computation when a user uses a non-computation-type application program, thereby further providing convenience for the user.
Further, after the calculation result of the target object is calculated, the calculation result may be displayed on the electronic device. Therefore, in the embodiment of the invention, the electronic equipment can simultaneously display the calculation results of the target object consisting of a plurality of continuously received characters of preset types while displaying the target interface of the application program, so that a user can view the calculation results of the object to be calculated in the using process of the application program without frequently switching between a calculator and the application program and memorizing the calculation results.
The display mode of the calculation result on the electronic device may be: and if the target interface displays a prompt box, the calculation result is displayed in the prompt box. For example, as shown in fig. 3, a calculation result "265517" of the arithmetic expression "457 x 581" is displayed in the prompt box 301.
As can be seen from the above, in the operation control method of the application program provided in the embodiment of the present invention, in the case of displaying the target interface of the application program, it is detected whether a plurality of characters of preset types are continuously received, and in the case of continuously receiving a plurality of characters of preset types and a target object composed of the characters conforms to the mathematical computation rule, a computation result is obtained by performing computation according to the target object, so as to display the computation result. Therefore, under the condition of displaying the target interface of the application program, calculation can be carried out according to the received object which accords with the mathematical calculation rule, and the calculation result is displayed, so that a user can see the calculation result in the use process of the application program without frequently switching between a calculator and the application program, the calculation result is displayed while the target interface is displayed, and the user does not need to memorize the calculation result, thereby providing convenience for the user.
Optionally, the step of continuously receiving a plurality of characters of preset types includes the following sub-steps:
substep H1: under the condition that a first character is detected, recording the first character, and detecting whether a second character is the character of the preset type, wherein the first character is the first character of the preset type, and the second character is the next character of the first character;
substep H2: and under the condition that the second character is the preset type of character, determining that a plurality of preset type of characters are continuously received until a target operation is detected or until one recorded preset type of character is a target character and no character is received within a preset time after the recording moment of the target character, wherein the target operation is used for indicating that the input of the preset type of characters is finished and is an operation other than the operation of inputting the target character.
The target character is an end character, and may be "═ for example. The target operation may be that the input does not belong to a number, does not belong to a mathematical symbol, does not belong to a letter, and is a specific character different from the target character, such as "#"; the method can also be used for clicking an enter key on a keyboard displayed by the electronic equipment; it is also possible to draw a preset sliding track on the touch screen of the electronic device, for example, to draw a circle on the touch screen.
Wherein, in a case that the second character is a preset type character, the second character is recorded until the target operation is detected, and an object composed of the recorded preset type character may be one of an arithmetic expression (e.g. 457 x 581), a logical expression (e.g. 5>4), an equation (e.g. 1 ═ 2+ x), and an inequality (1+ x > 3). In other words, in the case that the electronic device displays the target interface of the application program, after the user inputs a character included in any one of the objects, namely, the arithmetic expression, the logical expression, the equation and the inequality, the target operation is performed again, and the electronic device can be triggered to automatically calculate the calculation result of the object.
In addition, under the condition that the second character is a preset type character, the second character is recorded until one recorded preset type character is a target character and the character is not received within a preset time after the recording time of the target character, the recorded preset type object is an arithmetic expression, that is, under the condition that the electronic equipment displays a target interface of an application program, after a user inputs a character included in the arithmetic expression, the target character is input again, and the electronic equipment can be triggered to automatically calculate the calculation result of the arithmetic expression.
In addition, if the target operation is not received within a preset time after the recording time of the last character in the recorded characters of the preset type and the target character is not detected (including a case that a character not belonging to the preset type is detected within the preset time), it is determined that a plurality of characters of the preset type are not continuously received.
It should be noted here that, for an object composed of a plurality of preset types of characters, a user may input the object into the electronic device in one of the following manners:
the first method is as follows: inputting character by character into the electronic equipment;
the second method comprises the following steps: inputting the data into the electronic equipment in a voice mode;
the third method comprises the following steps: and inputting by adopting a photographing mode.
Specifically, when an object composed of a plurality of characters of a preset type is input in the above manner, the electronic device directly performs the above substeps H1-H3.
When an object composed of a plurality of preset types of characters is input in the second mode, the electronic equipment firstly needs to perform character recognition on received voice, then detects whether the characters are the preset types one by one aiming at the recognized characters, records are performed when the first character belonging to the preset type is detected, and then detects whether the next character is the preset type, if so, the detection is continued until one character not belonging to the preset type is detected, or the characters of the preset types are determined to be continuously received until the characters are not detected.
When an object composed of a plurality of preset types of characters is input in the third mode, the electronic equipment firstly needs to perform character recognition on an image obtained by shooting, then detects whether the characters are the preset types one by one aiming at the recognized characters, records are performed when the first character belonging to the preset type is detected, and then detects whether the next character is the preset type, if so, the detection is continued until one character not belonging to the preset type is detected or until the characters are not detected, and the continuous reception of the plurality of preset types of characters is determined.
When an object composed of a plurality of preset types of characters is input in this way, an application program is required to support a shooting function. For example, in a chat interface, some social applications may directly call a camera of the electronic device to take a picture, and after the picture is taken, the social applications may directly return to the chat interface and send the taken picture to the opposite device.
In addition, in the embodiment of the present invention, it may also be detected whether a plurality of characters of a preset type sent by other electronic devices other than the electronic device are continuously received for one electronic device, in this case, the information sent by the other electronic devices may be in a character form, a voice form, or an image form, when the information sent by the other electronic devices is in a character form, or when the information sent by the other electronic devices is in a voice form, or when the information sent by the other electronic devices is in an image form, first performing character recognition on the content received by the electronic devices, then detecting whether the content is the characters of the preset type one by one, so as to record when the first character belonging to the preset type is detected, and further detect whether the next character is the character of the preset type, if so, continuing the detection, until a character not belonging to the preset type is detected, or until no character is detected, it is determined that a plurality of characters of the preset type are continuously received.
Optionally, after recording the first character, the method further includes:
and deleting the recorded characters belonging to the preset type under the condition that one of the characters after the first character is detected not belonging to the characters of the preset type.
That is, in the case that a plurality of characters of the preset type have been detected, if it is detected that the next character of the last character of the characters does not belong to the character of the preset type, the calculation result indicating that the user does not pay attention to the object composed of the plurality of characters of the preset type that have been previously input is indicated, and the recorded characters of the preset type can be deleted, so that the characters that the user does not need to use are prevented from occupying the storage space of the electronic device.
Optionally, the method further includes:
and deleting the recorded characters belonging to the preset type under the condition that the target object does not accord with the mathematical calculation rule.
If the target object does not accord with the mathematical calculation rule, calculation cannot be performed, and in such a case, the recorded characters belonging to the preset type can be deleted, so that the characters which are not needed to be used by a user are prevented from occupying the storage space of the electronic equipment.
Optionally, after displaying the calculation result, the method further includes:
receiving a first operation;
and responding to the first operation, clearing the displayed calculation result, and deleting the recorded characters belonging to the preset type.
Wherein the first operation is used for indicating to clear the displayed calculation result and deleting the recorded characters belonging to the preset type (namely deleting the target object). That is, the electronic device receives the first operation, which indicates that the user does not need to fill the calculation result into the character input box of the target interface of the application program currently displayed by the electronic device, the display of the calculation result can be cleared, and the target object is deleted, so that the display of the calculation result is prevented from influencing the subsequent use of the application program by the user, and the target object no longer needed by the user is prevented from occupying the storage space of the electronic device.
The calculation result may be displayed in a prompt box, and a close button is disposed in the prompt box, so that the first operation may be a click operation on the close button. Alternatively, the first operation is a character input operation. Namely, when the user closes the prompt box for displaying the calculation result or directly inputs the next character, the display of the calculation result is automatically cleared, and the target object is deleted.
Optionally, after displaying the calculation result, the method further includes:
receiving a second operation;
and responding to the second operation, filling the calculation result into a character input box in the target interface, and clearing the displayed calculation result.
Therefore, after the calculation result is displayed on the electronic equipment, the second operation can be implemented to trigger the automatic filling of the calculation result into the character input box in the target interface, so that the complexity of inputting one by a user when more characters are included in the calculation result is avoided, and convenience is further provided for the user.
The calculation result may be displayed in a prompt box, and the second operation may be a click operation on the calculation result. In addition, under the condition of receiving the second operation, the characters which are recorded before and belong to the preset type can be deleted, so that the characters can not influence the subsequent calculation process when the subsequent calculation is needed.
In summary, a specific implementation manner of the operation control method of the application program according to the embodiment of the present invention can be shown in fig. 5.
Firstly, when a user communicates by utilizing a social application, detecting each character input by the user, and if the character is a number or a mathematical symbol, starting recording by a background;
second, the following characters continue to be detected:
if the number or the mathematical symbol is present, then recording, and if the number or the mathematical symbol is absent, the non-mathematical symbol or the non-calculation end symbol is absent, clearing all characters recorded before;
if the user inputs the' number, judging whether the recorded characters accord with the mathematical operation rule, if not, clearing all the characters recorded before without prompting.
If the result accords with the mathematical operation rule, the background calculates the result;
as shown in fig. 2, if the character input by the user at this time is "457 x 581", the background calculation result is "265517".
Again, if the background can calculate the result, the calculation result is displayed on the chat interface of the social application, for example, as shown in fig. 3, a prompt box 301 can be displayed on the chat interface, so that in the prompt box 301, the calculation result "265517" is displayed.
Again, the prompt box may respond to user actions:
if the user clicks on the calculation result in the prompt box, the result is filled in a character input box 401 of the chat interface as shown in FIG. 4.
If the user clicks the 'x' number in the upper right corner of the prompt box (as shown in fig. 3), or the user does not manipulate the prompt box and then enters the next character, indicating that the user does not need to automatically fill in the result, the prompt box is closed and all recorded characters are emptied.
And finally, continuously detecting the subsequent characters, and repeatedly executing the process until the user closes the character input box of the chat interface.
According to the embodiment, the calculation result can be calculated in real time according to the arithmetic expression input by the user and displayed in the foreground, so that frequent switching between social applications and a calculator for calculation is avoided. Moreover, for the calculation for multiple times, the user does not need to memorize the calculation result every time. In addition, for complex calculation results, such as the condition of a large number of digits, the user does not need to manually input the calculation results word by word, and the result can be automatically filled by clicking a prompt box. Therefore, according to the embodiment of the invention, when calculation is needed in the using process of the social application of the electronic equipment, the calculation operation flow can be simplified, so that the user experience is improved.
In the operation control method of the application program provided in the embodiment of the present application, the execution main body may be an operation control device of the application program, or a control module in the operation control device of the application program, for executing the operation control method of the loaded application program. In the embodiment of the present application, an operation control method for an application operation control device to execute a loaded application is taken as an example, and the operation control method for an application provided in the embodiment of the present application is described.
The operation control method of the application program according to the embodiment of the present invention is described above, and an operation control apparatus of the application program according to the embodiment of the present invention will be described below with reference to the accompanying drawings.
Referring to fig. 6, an embodiment of the present invention further provides an operation control apparatus 600 for an application program, including:
the detection module 601 is configured to detect whether a plurality of preset types of characters are continuously received or not under the condition that a target interface of an application program is displayed;
a calculating and displaying module 602, configured to perform calculation according to a target object and display a calculation result when the characters of the multiple preset types are continuously received and the target object meets a mathematical calculation rule, where the target object is an object composed of the characters of the multiple preset types.
The application program may be any one of a plurality of non-computing applications installed on the electronic device. The preset type of characters include numbers, letters, and mathematical symbols. The mathematical symbols include decimal point, operation sign (e.g., addition, subtraction, multiplication, division, differentiation, integration, absolute value sign, etc.), number sign (e.g., cycle-pi, natural-e, Fibonacci golden section-
Figure BDA0002507642410000111
) Relational symbols (e.g., greater than, less than, equal to), conjunctive symbols (e.g., small brackets, medium brackets, large brackets), property symbols (e.g., plus, minus), eligibility symbols (e.g., triangle- △, sine-sin), permutation-combination symbols (e.g., combination-C, permutation-a, factorial- |), discrete math symbols (e.g., null set symbols).
In addition, whether a plurality of preset types of characters are continuously received is detected, whether a user inputs the plurality of preset types of characters in the electronic equipment is detected, and whether the characters of the plurality of preset types sent by other electronic equipment are received. And the other electronic equipment is electronic equipment except the electronic equipment for displaying the target interface.
When the detection module 601 detects that a plurality of preset types of characters are continuously received, it may be that a target object composed of the characters does not conform to the mathematical computation rule, and in such a case, the calculation cannot be performed.
In addition, the target object may be one of an arithmetic expression, a logical expression, an equation, and an inequality. An arithmetic expression is, for example, "457 x 581", and the calculation result is "265517"; the logical expression is, for example, "5 > 4", and its calculation result is "true"; the equation is, for example, "1 ═ 2+ x", and the calculation result is "x ═ 1"; the inequality is, for example, "1 + x > 3", and the calculation result is "x > 2".
It can be understood that in terms of mathematical computation, mathematical symbols are various, and the objects composed of various mathematical symbols (such as integrals, derivatives, trigonometric functions, and the like), numbers, and letters are also various in form, so that the electronic device can be further configured to detect whether more types of objects conform to the mathematical computation rules, so that the electronic device can perform more complex computations during the process of using the non-computation-based application program by the user, thereby further providing convenience for the user.
In addition, after the calculation result of the target object is calculated by the calculation and display module 602, the calculation result may be displayed. Therefore, in the embodiment of the invention, the calculation result of the target object consisting of a plurality of continuously received characters of preset types can be simultaneously displayed while the target interface of the application program is displayed, so that a user can check the calculation result of the object required to be calculated in the using process of the application program without frequently switching between a calculator and the application program and memorizing the calculation result.
Optionally, the detecting module 601 includes:
the first detection submodule is used for recording a first character under the condition that the first character is detected, and detecting whether a second character is the character of the preset type or not, wherein the first character is a first character of the preset type, and the second character is a character next to the first character; (ii) a
The first determining sub-module is configured to, when the second character is the preset type of character, record the second character until a target operation is detected, or when one recorded preset type of character is a target character and no character is received within a preset time after a recording time of the target character, determine that a plurality of preset type of characters are continuously received, where the target operation is used to indicate that input of the preset type of character is completed, and the target operation is an operation other than an operation of inputting the target character.
The target character is an end character, and may be "═ for example. The target operation may be that the input does not belong to a number, does not belong to a mathematical symbol, does not belong to a letter, and is a specific character different from the target character, such as "#"; the method can also be used for clicking an enter key on a keyboard displayed by the electronic equipment; it is also possible to draw a preset sliding track on the touch screen of the electronic device, for example, to draw a circle on the touch screen.
Wherein, in a case that the second character is a preset type character, the second character is recorded until the target operation is detected, and an object composed of the recorded preset type character may be one of an arithmetic expression (e.g. 457 x 581), a logical expression (e.g. 5>4), an equation (e.g. 1 ═ 2+ x), and an inequality (1+ x > 3). In other words, in the case that the electronic device displays the target interface of the application program, after the user inputs a character included in any one of the objects, namely, the arithmetic expression, the logical expression, the equation and the inequality, the target operation is performed again, and the electronic device can be triggered to automatically calculate the calculation result of the object.
In addition, under the condition that the second character is a preset type character, the second character is recorded until one recorded preset type character is a target character and the character is not received within a preset time after the recording time of the target character, the recorded preset type object is an arithmetic expression, that is, under the condition that the electronic equipment displays a target interface of an application program, after a user inputs a character included in the arithmetic expression, the target character is input again, and the electronic equipment can be triggered to automatically calculate the calculation result of the arithmetic expression.
In addition, if the target operation is not received within a preset time after the recording time of the last character in the recorded characters of the preset type and the target character is not detected (including a case that a character not belonging to the preset type is detected within the preset time), it is determined that a plurality of characters of the preset type are not continuously received.
Optionally, the apparatus further comprises:
and the first deleting module is used for deleting the recorded characters belonging to the preset type under the condition that one of the characters after the first character is detected not belonging to the preset type of characters.
That is, in the case that a plurality of characters of the preset type have been detected, if it is detected that the next character of the last character of the characters does not belong to the character of the preset type, the calculation result indicating that the user does not pay attention to the object composed of the plurality of characters of the preset type that have been previously input is indicated, and the recorded characters of the preset type can be deleted, so that the characters that the user does not need to use are prevented from occupying the storage space of the electronic device.
Optionally, the apparatus further comprises:
and the second deleting module is used for deleting the recorded characters belonging to the preset type under the condition that the target object does not accord with the mathematical calculation rule.
If the target object does not accord with the mathematical calculation rule, calculation cannot be performed, and in such a case, the recorded characters belonging to the preset type can be deleted, so that the characters which are not needed to be used by a user are prevented from occupying the storage space of the electronic equipment.
Optionally, the apparatus further comprises:
the first receiving module is used for receiving a first operation;
and the third deleting module is used for responding to the first operation, clearing the displayed calculation result and deleting the recorded characters belonging to the preset type.
Wherein the first operation is used for indicating to clear the displayed calculation result and deleting the recorded characters belonging to the preset type (namely deleting the target object). That is, the electronic device receives the first operation, which indicates that the user does not need to fill the calculation result into the character input box of the target interface of the application program currently displayed by the electronic device, the display of the calculation result can be cleared, and the target object is deleted, so that the display of the calculation result is prevented from influencing the subsequent use of the application program by the user, and the target object no longer needed by the user is prevented from occupying the storage space of the electronic device.
Optionally, the apparatus further comprises:
the second receiving module is used for receiving a second operation;
and the filling module is used for responding to the second operation under the condition of receiving the second operation, filling the calculation result into the character input box in the target interface, and clearing the displayed calculation result.
Therefore, after the calculation result is displayed on the electronic equipment, the second operation can be implemented to trigger the automatic filling of the calculation result into the character input box in the target interface, so that the complexity of inputting one by a user when more characters are included in the calculation result is avoided, and convenience is further provided for the user.
The operation control device of the application program in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in the terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The operation control device of the application program in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The operation control device for an application program provided in this embodiment of the present application can implement each process implemented by the operation control method for an application program in the method embodiment of fig. 1, and is not described here again to avoid repetition.
As can be seen from the above description, in the operation control apparatus for an application program according to the embodiment of the present invention, the detection module 601 detects whether a plurality of preset types of characters are continuously received in the case of displaying the target interface of the application program, and the calculation and display module 602 performs calculation according to the target object and displays the calculation result in the case of continuously receiving a plurality of preset types of characters and the target object composed of the characters conforms to the mathematical calculation rule. Therefore, under the condition of displaying the target interface of the application program, calculation can be carried out according to the received object which accords with the mathematical calculation rule, and the calculation result is displayed, so that a user can see the calculation result in the use process of the application program without frequently switching between a calculator and the application program, the calculation result is displayed while the target interface is displayed, and the user does not need to memorize the calculation result, thereby providing convenience for the user.
Optionally, an embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, where the program or the instruction is executed by the processor to implement each process of the operation control method embodiment of the application program, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
At least one of the user input unit 707 and the radio frequency unit 701 is configured to detect whether a plurality of preset types of characters are continuously received in a case where the display unit 706 displays a target interface of an application program;
a processor 710, configured to perform calculation according to a target object when the characters of the multiple preset types are received continuously and the target object meets a mathematical calculation rule, where the target object is an object composed of the characters of the multiple preset types;
a display unit 706, configured to display a calculation result obtained by the calculation of the processor.
As can be seen from the above description, in the electronic device provided in the embodiment of the present invention, when the display unit 706 displays the target interface of the application program, at least one of the user input unit 707 and the radio frequency unit 701 is used to detect whether a plurality of characters of the preset type are continuously received, and when a target object formed by the plurality of characters is continuously received and meets the mathematical calculation rule, the processor 710 performs calculation according to the target object to obtain a calculation result, so that the display unit 706 displays the calculation result. In this way, in the case where the display unit 706 displays the target interface of the application, the calculation can be performed on the received object that conforms to the mathematical calculation rule, and the calculation result is displayed, so that the user can see the calculation result without frequently switching between the calculator and the application in the use process of the application, and the calculation result is displayed while the target interface is displayed, so that the user does not need to memorize the calculation result, thereby providing convenience to the user.
Optionally, when at least one of the user input unit 707 and the radio frequency unit 701 detects whether a plurality of preset types of characters are continuously received, the method is specifically configured to:
when a first character is detected, instructing the processor 710 to record the first character, and detecting whether a second character is the character of the preset type, where the first character is a first character of the preset type, and the second character is a character next to the first character;
when the second character is the preset type of character, instructing the processor 710 to record the second character until a target operation is detected, or when one recorded preset type of character is a target character and no character is received within a preset time after the recording time of the target character, determining that a plurality of preset type of characters are continuously received, wherein the target operation is used for instructing that the input of the preset type of character is finished, and the target operation is an operation other than the operation of inputting the target character.
The target character is an end character, and may be "═ for example. The target operation may be that the input does not belong to a number, does not belong to a mathematical symbol, does not belong to a letter, and is a specific character different from the target character, such as "#"; the method can also be used for clicking an enter key on a keyboard displayed by the electronic equipment; it is also possible to draw a preset sliding track on the touch screen of the electronic device, for example, to draw a circle on the touch screen.
Wherein, in a case that the second character is a preset type character, the second character is recorded until the target operation is detected, and an object composed of the recorded preset type character may be one of an arithmetic expression (e.g. 457 x 581), a logical expression (e.g. 5>4), an equation (e.g. 1 ═ 2+ x), and an inequality (1+ x > 3). In other words, in the case that the electronic device displays the target interface of the application program, after the user inputs a character included in any one of the objects, namely, the arithmetic expression, the logical expression, the equation and the inequality, the target operation is performed again, and the electronic device can be triggered to automatically calculate the calculation result of the object.
In addition, under the condition that the second character is a preset type character, the second character is recorded until one recorded preset type character is a target character and the character is not received within a preset time after the recording time of the target character, the recorded preset type object is an arithmetic expression, that is, under the condition that the electronic equipment displays a target interface of an application program, after a user inputs a character included in the arithmetic expression, the target character is input again, and the electronic equipment can be triggered to automatically calculate the calculation result of the arithmetic expression.
In addition, if the target operation is not received within a preset time after the recording time of the last character in the recorded characters of the preset type and the target character is not detected (including a case that a character not belonging to the preset type is detected within the preset time), it is determined that a plurality of characters of the preset type are not continuously received.
Optionally, after the processor 710 records the first character, the processor 710 is further configured to:
in the case that at least one of the user input unit 707 and the radio frequency unit 701 detects that one of the characters following the first character does not belong to the preset type of character, deleting the recorded character belonging to the preset type.
That is, in the case that a plurality of characters of the preset type have been detected, if it is detected that the next character of the last character of the characters does not belong to the character of the preset type, the calculation result indicating that the user does not pay attention to the object composed of the plurality of characters of the preset type that have been previously input is indicated, and the recorded characters of the preset type can be deleted, so that the characters that the user does not need to use are prevented from occupying the storage space of the electronic device.
Optionally, the processor 710 is further configured to:
and deleting the recorded characters belonging to the preset type under the condition that the target object does not accord with the mathematical calculation rule.
If the target object does not accord with the mathematical calculation rule, calculation cannot be performed, and in such a case, the recorded characters belonging to the preset type can be deleted, so that the characters which are not needed to be used by a user are prevented from occupying the storage space of the electronic equipment.
Optionally, after the display unit 706 displays the calculation result, the user input unit 707 is further configured to receive a first operation; the processor 710 is further configured to clear the displayed calculation result and delete the recorded characters belonging to the preset type in response to the first operation.
Wherein the first operation is used for indicating to clear the displayed calculation result and deleting the recorded characters belonging to the preset type (namely deleting the target object). That is, the electronic device receives the first operation, which indicates that the user does not need to fill the calculation result into the character input box of the target interface of the application program currently displayed by the electronic device, the display of the calculation result can be cleared, and the target object is deleted, so that the display of the calculation result is prevented from influencing the subsequent use of the application program by the user, and the target object no longer needed by the user is prevented from occupying the storage space of the electronic device.
Optionally, after the display unit 706 displays the calculation result, the user input unit 707 is further configured to receive a second operation; the processor 710 is further configured to, in response to the second operation, fill the calculation result into a character input box in the target interface and clear the calculation result displayed.
Therefore, after the calculation result is displayed on the electronic equipment, the second operation can be implemented to trigger the automatic filling of the calculation result into the character input box in the target interface, so that the complexity of inputting one by a user when more characters are included in the calculation result is avoided, and convenience is further provided for the user.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the operation control method embodiment of the application program, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the operation control method embodiment of the application program, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (14)

1. An operation control method of an application program, the method comprising:
detecting whether a plurality of characters of preset types are continuously received or not under the condition of displaying a target interface of an application program;
and under the condition that the characters of the preset types are continuously received and a target object accords with a mathematical calculation rule, calculating according to the target object and displaying a calculation result, wherein the target object is an object consisting of the characters of the preset types.
2. The method for controlling the operation of an application according to claim 1, wherein said continuously receiving a plurality of characters of a preset type comprises:
under the condition that a first character is detected, recording the first character, and detecting whether a second character is the character of the preset type, wherein the first character is the first character of the preset type, and the second character is the next character after the first character;
and under the condition that the second character is the preset type of character, recording the second character until a target operation is detected, or determining that a plurality of characters of the preset type are continuously received until one recorded character of the preset type is a target character and the character is not received within a preset time after the recording time of the target character, wherein the target operation is used for indicating that the input of the characters of the preset type is finished.
3. The operation control method of an application program according to claim 2, wherein after the recording of the first character, the method further comprises:
and deleting the recorded characters belonging to the preset type under the condition that one of the characters after the first character is detected not belonging to the characters of the preset type.
4. The operation control method of an application program according to claim 2, characterized by further comprising:
and deleting the recorded characters belonging to the preset type under the condition that the target object does not accord with the mathematical calculation rule.
5. The method according to claim 2, wherein after the displaying the calculation result, the method further comprises:
receiving a first operation;
and responding to the first operation, clearing the displayed calculation result, and deleting the recorded characters belonging to the preset type.
6. The method according to claim 1, wherein after the displaying the calculation result, the method further comprises:
receiving a second operation;
and responding to the second operation, filling the calculation result into a character input box in the target interface, and clearing the displayed calculation result.
7. An operation control apparatus of an application program, characterized in that the apparatus comprises:
the detection module is used for detecting whether a plurality of characters of preset types are continuously received or not under the condition that a target interface of an application program is displayed;
and the calculation and display module is used for calculating according to the target object and displaying a calculation result under the condition that the characters of the preset types are continuously received and the target object conforms to a mathematical calculation rule, wherein the target object is an object consisting of the characters of the preset types.
8. The operation control device of an application program according to claim 7, wherein the detection module includes:
the first detection submodule is used for recording a first character under the condition that the first character is detected, and detecting whether a second character is the character of the preset type or not, wherein the first character is the first character of the preset type, and the second character is the next character after the first character;
the first determining sub-module is configured to, when the second character is the preset type of character, record the second character until a target operation is detected, or when one recorded preset type of character is a target character and no character is received within a preset time after a recording time of the target character, determine that a plurality of preset type of characters are continuously received, where the target operation is used to indicate that input of the preset type of characters is completed.
9. The operation control device of an application program according to claim 8, characterized in that the device further comprises:
and the first deleting module is used for deleting the recorded characters belonging to the preset type under the condition that one of the characters after the first character is detected not belonging to the preset type of characters.
10. The operation control device of an application program according to claim 8, characterized in that the device further comprises:
and the second deleting module is used for deleting the recorded characters belonging to the preset type under the condition that the target object does not accord with the mathematical calculation rule.
11. The operation control device of an application program according to claim 8, characterized in that the device further comprises:
the first receiving module is used for receiving a first operation;
and the third deleting module is used for responding to the first operation, clearing the displayed calculation result and deleting the recorded characters belonging to the preset type.
12. The operation control device of an application program according to claim 7, characterized in that the device further comprises:
the second receiving module is used for receiving a second operation;
and the filling module is used for responding to the second operation, filling the calculation result into the character input box in the target interface, and clearing the displayed calculation result.
13. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the operation control method of an application program according to any one of claims 1 to 6.
14. A readable storage medium, characterized in that the readable storage medium stores thereon a program or instructions which, when executed by a processor, implement the steps of the operation control method of an application program according to any one of claims 1 to 6.
CN202010450855.XA 2020-05-25 2020-05-25 Operation control method and device of application program and electronic equipment Active CN111708473B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010450855.XA CN111708473B (en) 2020-05-25 2020-05-25 Operation control method and device of application program and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010450855.XA CN111708473B (en) 2020-05-25 2020-05-25 Operation control method and device of application program and electronic equipment

Publications (2)

Publication Number Publication Date
CN111708473A true CN111708473A (en) 2020-09-25
CN111708473B CN111708473B (en) 2022-02-18

Family

ID=72538549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010450855.XA Active CN111708473B (en) 2020-05-25 2020-05-25 Operation control method and device of application program and electronic equipment

Country Status (1)

Country Link
CN (1) CN111708473B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700845A (en) * 2016-02-26 2016-06-22 努比亚技术有限公司 Method and device for displaying digit arithmetic result in document
CN106775580A (en) * 2016-11-28 2017-05-31 珠海市魅族科技有限公司 A kind of text input control method, mobile terminal and hand-held mobile terminal
CN108268147A (en) * 2018-02-14 2018-07-10 广东欧珀移动通信有限公司 Computation processing method, device and equipment based on input method
EP3349108A1 (en) * 2017-01-13 2018-07-18 Omron Corporation Character string input apparatus, input character string inference method, and input character string presumption program
CN111104570A (en) * 2019-12-17 2020-05-05 维沃移动通信有限公司 Data processing method, electronic device, and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700845A (en) * 2016-02-26 2016-06-22 努比亚技术有限公司 Method and device for displaying digit arithmetic result in document
CN106775580A (en) * 2016-11-28 2017-05-31 珠海市魅族科技有限公司 A kind of text input control method, mobile terminal and hand-held mobile terminal
EP3349108A1 (en) * 2017-01-13 2018-07-18 Omron Corporation Character string input apparatus, input character string inference method, and input character string presumption program
CN108268147A (en) * 2018-02-14 2018-07-10 广东欧珀移动通信有限公司 Computation processing method, device and equipment based on input method
CN111104570A (en) * 2019-12-17 2020-05-05 维沃移动通信有限公司 Data processing method, electronic device, and storage medium

Also Published As

Publication number Publication date
CN111708473B (en) 2022-02-18

Similar Documents

Publication Publication Date Title
CN111866270B (en) Application program control method and device and electronic equipment
CN112269798B (en) Information display method and device and electronic equipment
CN111857497B (en) Operation prompting method and electronic equipment
CN111651106A (en) Unread message prompting method, unread message prompting device, unread message prompting equipment and readable storage medium
CN112887488B (en) Caller identification method and device and electronic equipment
CN111708473B (en) Operation control method and device of application program and electronic equipment
CN112181559A (en) Interface display method and device and electronic equipment
CN114374663B (en) Message processing method and message processing device
CN115687303A (en) Data information migration method, device, equipment and storage medium
CN112765946B (en) Chart display method and device and electronic equipment
CN114416264A (en) Message display method and device
CN112312021B (en) Shooting parameter adjusting method and device
CN112732100A (en) Information processing method and device and electronic equipment
CN113126780A (en) Input method, input device, electronic equipment and readable storage medium
CN112148406A (en) Page switching method and device, electronic equipment and readable storage medium
CN112764625A (en) Notification message display method and device
CN111626883A (en) Authority verification method and device, electronic equipment and storage medium
CN110554987B (en) Calculator data processing method and device and terminal equipment
CN110674074B (en) Quick operation method and device and terminal equipment
CN109213799B (en) Recommendation method and device for cell word bank
CN115271529A (en) Merchant assessment index value determination method, device, equipment and storage medium
CN111949322A (en) Information display method and device
CN113282211A (en) Content display method, content display device, electronic equipment and medium
CN111694996A (en) Contact management method, device, electronic equipment and medium
CN112311659A (en) Message processing method and device and electronic equipment

Legal Events

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