CN110874277A - Electronic red packet processing method, electronic red packet processing device and mobile terminal - Google Patents

Electronic red packet processing method, electronic red packet processing device and mobile terminal Download PDF

Info

Publication number
CN110874277A
CN110874277A CN201811021402.4A CN201811021402A CN110874277A CN 110874277 A CN110874277 A CN 110874277A CN 201811021402 A CN201811021402 A CN 201811021402A CN 110874277 A CN110874277 A CN 110874277A
Authority
CN
China
Prior art keywords
message
electronic red
red packet
application program
preset application
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
CN201811021402.4A
Other languages
Chinese (zh)
Other versions
CN110874277B (en
Inventor
潘腾蛟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811021402.4A priority Critical patent/CN110874277B/en
Publication of CN110874277A publication Critical patent/CN110874277A/en
Application granted granted Critical
Publication of CN110874277B publication Critical patent/CN110874277B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses an electronic red packet processing method, an electronic red packet processing device, a mobile terminal and a computer readable storage medium, wherein the electronic red packet processing method comprises the following steps: when a preset application program receives a message, detecting the current running state of the preset application program; if the preset application program is detected to run in the foreground, identifying the type of the message; and if the message is identified to be the electronic red packet message, displaying the message in a full screen mode. According to the scheme, the scene that the user can really grab the electronic red packet can be filtered, the situation that new messages received by the mobile terminal are frequently identified is avoided, and the power consumption of the mobile terminal is reduced to a certain extent.

Description

Electronic red packet processing method, electronic red packet processing device and mobile terminal
Technical Field
The present application belongs to the field of information processing technologies, and in particular, to an electronic red packet processing method, an electronic red packet processing apparatus, a mobile terminal, and a computer-readable storage medium.
Background
At present, most intelligent terminals, such as mobile phones, tablet computers and the like, can install various application programs, such as WeChat, Paibao, QQ and the like. The user can use the social and payment functions of these applications, as well as other additional functions of these applications, such as the electronic red envelope function.
In order to help a user to acquire an electronic red packet in time, the application programs supporting the electronic red packet function can perform red packet detection every time a new message is received, so that the power consumption and the performance of the mobile terminal are influenced to a certain extent.
Disclosure of Invention
In view of this, the present application provides an electronic red packet processing method, an electronic red packet processing apparatus, a mobile terminal, and a computer-readable storage medium, which can filter a scene in which a user may actually rob an electronic red packet, avoid frequently identifying a new message received by the mobile terminal, and reduce power consumption of the mobile terminal to a certain extent.
A first aspect of the present application provides an electronic red packet processing method, including:
when a preset application program receives a message, detecting the current running state of the preset application program;
if the preset application program is detected to run in the foreground, identifying the type of the message;
and if the message is identified to be the electronic red packet message, displaying the message in a full screen mode.
A second aspect of the present application provides an electronic red envelope processing apparatus, including:
the state detection unit is used for detecting the current running state of the preset application program when the preset application program receives the message;
the type identification unit is used for identifying the type of the message if the preset application program is detected to run in a foreground;
and the message display unit is used for displaying the message in a full screen mode if the message is identified to be the electronic red packet message.
A third aspect of the present application provides a mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to the first aspect when executing the computer program.
A fourth aspect of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the first aspect as described above.
A fifth aspect of the application provides a computer program product comprising a computer program which, when executed by one or more processors, performs the steps of the method of the first aspect as described above.
Therefore, according to the scheme, when the preset application program receives the message, the current running state of the preset application program is detected, if the preset application program is detected to run in the foreground, the type of the message is identified, and if the message is identified to be the electronic red packet message, the message is displayed in a full screen mode. The method comprises the steps of judging whether a user is in a scene where electronic red packet robbing is really possible or not by detecting the current running state of a preset application program, identifying received new messages in time when the user is in the scene where the electronic red packet robbing is really possible, displaying the new messages in a full screen mode when the new messages are determined to be electronic red packet messages, and facilitating the user to execute the operation of electronic red packet robbing.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of an implementation of an electronic red packet processing method provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of another implementation of the electronic red packet processing method provided in the embodiment of the present application;
fig. 3 is a block diagram of an electronic red packet processing apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a mobile terminal provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to explain the technical solution of the present application, the following description will be given by way of specific examples.
Example one
Referring to fig. 1, an electronic red packet processing method provided in an embodiment of the present application is described below, where the electronic red packet processing method in the embodiment of the present application includes:
in step 101, when a preset application program receives a message, detecting a current running state of the preset application program;
in this embodiment of the application, the current running state of the preset application may be detected within a preset time after the preset application receives the message, for example, within 500 milliseconds. The preset application program is an application program which is installed in the intelligent terminal and can perform electronic red packet operation, and includes but is not limited to WeChat, Paibao and QQ, and is not limited herein. Specifically, the received messages include messages received by all sessions in the preset application program, where the all sessions include a single contact session and a multiple contact session. The preset running state of the application program comprises the following steps: the application is not running, running in foreground and running in background. By detecting the current running state of the preset application program, whether the user is in a scene that the user is really likely to rob the electronic red envelope can be judged.
In step 102, if it is detected that the preset application program runs in the foreground, identifying the type of the message;
in the embodiment of the application, when it is detected that the preset application program runs in the foreground, it can be considered that the user is currently using the mobile terminal and the user is in a scene that the user may rob the electronic red envelope. At this time, a new message received by the application is identified. After receiving a new message, the application program needs to perform a series of preparation operations, such as refreshing a page of the mobile terminal, and then can push the reminding message related to the message in the mobile terminal, that is, there is a time difference between the operation of receiving the message and the operation of pushing the reminding message related to the message. Thus, the type of the message can be identified using the time difference. Specifically, the type of the message may be a plain text message, a picture message, a link message, an electronic red packet message, or the like, which is not limited herein.
In step 103, if the message is identified as an electronic red packet message, the message is displayed in full screen.
In this embodiment of the application, when the message is identified as an electronic red packet message, in order to help a user quickly perform an electronic red packet robbing operation, the electronic red packet message may be located, so that the preset application program jumps to the location position of the electronic red packet message, and further, after the preset application program jumps to the location position of the electronic red packet message, the electronic red packet message may be displayed in a full screen. Therefore, even if the subsequent messages of the message are too many, the situation that the message cannot be quickly found due to the screen refreshing of the message does not occur.
Therefore, in the embodiment of the application, whether the user is currently in a scene where the user is really likely to rob the electronic red packet is judged by detecting the current running state of the preset application program, when the user is currently in the scene where the user is really likely to rob the electronic red packet, the received new message is identified in time, and the new message is displayed in a full screen mode when the new message is determined to be the electronic red packet message, so that the user can conveniently execute the operation of rob the electronic red packet.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example two
On the basis of the first embodiment, another electronic red packet processing method provided in the embodiment of the present application is described below, with reference to fig. 2, where the electronic red packet processing method in the embodiment of the present application includes:
in step 201, when a preset application program receives a message, detecting whether the preset application program is currently operated in a foreground, if so, executing step 202, and if not, executing step 204;
in step 202, identifying the type of the message;
in step 203, if the message is identified as an electronic red packet message, displaying the message in a full screen manner;
in the embodiment of the present application, the steps 201, 202, and 203 are respectively the same as or similar to the steps 101, 102, and 103, and reference may be made to the related description of the steps 201, 202, and 203, which is not repeated herein.
In step 204, monitoring the running state of the preset application program;
in the embodiment of the application, when it is detected that the preset application program is not running, or the preset application program runs in the background, it can be considered that the user does not use the mobile terminal currently, and the probability that the user is in a scene where the user is likely to rob the electronic red packet is low; when a user needs to perform electronic red packet robbing operation, the preset application program is inevitably required to be awakened to run in the foreground, and the electronic red packet message can be clicked, so that the running state of the preset application program can be monitored under the situation that the preset application program is not currently run in the foreground.
In step 205, when it is monitored that the preset application program enters into foreground operation, scanning whether an electronic red packet message exists in all unread messages of the preset application program;
in this embodiment of the application, once it is monitored that the preset application program enters the foreground for operation, traversal scanning may be performed on all unread messages in the preset application program, so as to determine whether an electronic red packet message exists in the unread messages of the preset application program. Optionally, if it is detected in step 201 that the preset application program is not running in the foreground, the type of the message newly received in the preset application program may be periodically identified; or, the type of the new message received by the preset application program may not be identified first, and the types of all the received new messages may be identified uniformly until the preset application program enters the foreground operation, which is not limited herein.
In step 206, if there is an electronic red packet message in all unread messages of the preset application program, detecting whether the corresponding resource of the electronic red packet message is completely acquired;
in this embodiment of the present application, when it is found by scanning that there is an electronic red packet message in all the unread messages of the preset application, it is detected whether the corresponding resource of the electronic red packet message existing in the unread messages is completely acquired, that is, whether the electronic red packet message existing in the unread messages can still be preempted is detected. Optionally, before the step of detecting whether the corresponding resource of the electronic red packet message is acquired is performed, the receiving time of the electronic red packet message may be detected, and since the valid period of the electronic red packet message is generally 24 hours, if it is detected that the receiving time of the electronic red packet message is 24 hours ago, it is determined that the electronic red packet message is expired, the electronic red packet message may be removed from the unread message, so as to avoid that the user wastes time on the invalid electronic red packet message.
In step 207, if the corresponding resource of the electronic red packet message is not acquired, the interface where the electronic red packet message is located is skipped.
In the embodiment of the application, when finding that the corresponding resource of the electronic red packet message is not completely acquired, the electronic red packet message can be positioned, so that the preset application program jumps to the positioning position of the electronic red packet message, and further, after jumping to the positioning position of the electronic red packet message, the electronic red packet message can be displayed in a full screen mode, and a user is not required to manually search the electronic red packet message which can be robbed.
Optionally, step 207 specifically includes:
a1, acquiring the number of the current preemptible electronic red packet messages, wherein the preemptible electronic red packet messages are electronic red packet messages of which the corresponding resources are not acquired;
in order to remove the invalid electronic red packet message, referring to step 206, the electronic red packet message whose receiving time is 24 hours before is removed from the preemptible electronic red packet message.
A2, if the number of the current robbable electronic red packet messages is more than one, displaying the current robbable electronic red packet messages in a list mode;
when the electronic red envelope message capable of being snatched is displayed in a list manner, the electronic red envelope message capable of being snatched can be sorted according to the sequence of receiving time, also can be sorted according to the initial sequence of names of message senders, and certainly can be sorted according to other sequences, which is not limited here.
And A3, when a selection instruction input by the user in the list is received, jumping to the interface where the electronic red packet message selected by the selection instruction is located.
The user can input a selection instruction in the list in a single-click mode, and the mobile terminal can jump to an interface where the electronic red packet message selected by the selection instruction is located after receiving the selection instruction. After the user performs the electronic red packet robbing operation on the electronic red packet message, the mobile terminal can update and pop up the list for the user to make a selection again until the number of the electronic red packets which can be robbed in the list is 0. Of course, the mobile terminal may also jump to the interfaces of the electronic red packet messages that can be robbed in sequence according to the sequence of the receiving time, which is not limited here.
Therefore, in the embodiment of the application, whether the user is currently in a scene where the user is really likely to rob the electronic red packet is judged by detecting the current running state of the preset application program, when the user is currently in the scene where the user is really likely to rob the electronic red packet, the received new message is identified in time, and the new message is displayed in a full screen mode when the new message is determined to be the electronic red packet message, so that the user can conveniently execute the operation of rob the electronic red packet. When the preset application program enters the foreground operating state from the non-foreground operating state, all unread messages in the preset application program are scanned, and the electronic red packet messages which can still be robbed at present are screened out, so that the omission of robbing by a user is avoided.
Optionally, in the first and second embodiments, the step of identifying the type of the message specifically includes:
b1, judging whether the message contains a picture, and if so, acquiring a color histogram of the picture;
if it is detected that the message includes a View, the View may be converted into a Bitmap picture to obtain a histogram of the picture, and specifically, the View generally consists of a plurality of small views. Furthermore, the color histogram of the picture describes the proportion of different colors in the picture. The color histogram may be based on different color spaces and coordinate systems, such as RGB color space and HSV color space, among others. When the color histogram of the picture is obtained, the color space can be divided into a plurality of small color intervals, each small interval becomes one bin of the histogram, the process is called color quantization, and the color histogram can be obtained by calculating the number of pixels of which the colors fall in each small interval.
B2, calculating the similarity between the color histogram of the picture and a preset color histogram;
the similarity between the color histogram of the picture and a preset color histogram is used for indicating the similarity between the color histogram of the picture and the preset color histogram, and 1-D can be used as the similarity between the color histogram of the picture and the preset color histogram by calculating the Euclidean distance D between the color histogram of the picture and the preset color histogram. Specifically, the preset color histogram refers to a color histogram of an electronic red packet message preset by a user, and the color histogram of the electronic red packet message may refer to a color histogram of a picture after a view of the electronic red packet message is converted into the picture. Optionally, the user may modify the preset color histogram according to actual needs.
B3, if the similarity between the color histogram of the picture and the preset color histogram exceeds a preset threshold, determining that the type of the message is an electronic red packet message.
After obtaining the similarity between the color histogram of the picture and a preset color histogram corresponding to the preset application program, comparing the obtained similarity between the color histogram of the picture and the preset color histogram with a preset threshold value to determine whether the color histogram of the picture matches with the preset color histogram, and if the similarity between the color histogram of the picture and the preset color histogram exceeds the preset threshold value, determining that the color histogram of the picture matches with the preset color histogram, where the message is an electronic red packet message; and if the similarity between the color histogram of the picture and the preset color histogram does not exceed a preset threshold value, determining that the color histogram of the picture is not matched with the preset color histogram, and the message is not an electronic red packet message. The preset threshold is used for indicating whether the color histogram of the picture is matched with the preset color histogram. The electronic red envelope message includes, but is not limited to, money amount, electronic red envelope picture, electronic red envelope ID, etc.
Optionally, in the first and second embodiments, the step of identifying the type of the message specifically includes:
c1, judging whether the message contains pictures or not, if so, calculating the ratio of the length to the width of the pictures;
and C1, comparing the ratio of the length to the width of the picture with the ratio of the length to the width of a standard red packet picture, and if the ratio is the same, determining that the type of the message is the electronic red packet message.
And the ratio of the length to the width of the standard red packet picture is a preset value and is stored in the local of the mobile terminal.
Optionally, in a second primary embodiment of the foregoing embodiment, after the step of identifying that the message is an electronic red packet message, and before the step of displaying the message in full screen, the electronic red packet processing method further includes:
the method comprises the steps of improving the operation parameters of a central processing unit of the mobile terminal, improving the touch response speed of the mobile terminal and/or switching the working frequency of a wireless module of the mobile terminal from a current first frequency to a second frequency, wherein the second frequency is higher than the first frequency.
The operation speed of the process of the preset application program can be improved by improving the operation parameters of a central processing unit of the mobile terminal, improving the touch response speed of the mobile terminal and/or switching the working frequency of a wireless module of the mobile terminal from a current first frequency to a second frequency, wherein the second frequency is higher than the first frequency, a certain acceleration effect is achieved when a user performs electronic red packet grabbing operation, and the probability of the user grabbing the electronic red packet is improved.
EXAMPLE III
A third embodiment of the present application provides an electronic red packet processing apparatus, which may be integrated in a mobile terminal, as shown in fig. 3, where the electronic red packet processing apparatus 300 in the third embodiment of the present application includes:
a state detection unit 301, configured to detect a current running state of a preset application when the preset application receives a message;
a type identification unit 302, configured to identify a type of the message if it is detected that the preset application program is running in a foreground;
a message display unit 303, configured to display the message in a full screen if the message is identified as an electronic red packet message.
Optionally, the electronic red packet processing apparatus 300 further includes:
and the performance improving unit is used for improving the operating parameters of a central processing unit of the mobile terminal, improving the touch response speed of the mobile terminal and/or switching the working frequency of a wireless module of the mobile terminal from the current first frequency to a second frequency after the message is identified to be the electronic red packet message and before the message is displayed in a full screen mode, wherein the second frequency is higher than the first frequency.
Optionally, the type identifying unit 302 includes:
a first judging subunit, configured to judge whether the message includes a picture;
a color histogram obtaining subunit, configured to obtain a color histogram of the picture if the message includes the picture;
the first calculating subunit is used for calculating the similarity between the color histogram of the picture and a preset color histogram;
and the first determining subunit is used for determining that the type of the message is the electronic red packet message if the similarity between the color histogram of the picture and the preset color histogram exceeds a preset threshold value.
Optionally, the type identifying unit 302 includes:
a second judging subunit, for judging whether the message contains a picture;
a second calculating subunit, configured to calculate, if the picture includes a picture, a ratio of the length to the width of the picture;
and the second determining subunit is used for comparing the ratio of the length to the width of the picture with the ratio of the length to the width of the standard red packet picture, and if the ratio is the same, determining that the type of the message is the electronic red packet message.
Optionally, the state detecting unit 301 is specifically configured to detect a current running state of the preset application program within a preset time after the preset application program receives the message.
Optionally, the electronic red packet processing apparatus 300 further includes:
the state monitoring unit is used for monitoring the running state of the preset application program if the preset application program is detected not to run in the foreground;
the message scanning unit is used for scanning whether the electronic red packet message exists in all unread messages of the preset application program when the preset application program is monitored to enter foreground operation;
a resource detection unit, configured to detect whether a resource corresponding to the electronic red packet message is completely acquired if the electronic red packet message exists in all unread messages of the preset application program;
and the interface skipping unit is used for skipping to the interface where the electronic red packet message is located if the corresponding resource of the electronic red packet message is not acquired.
Optionally, the interface jumping unit includes:
the quantity acquiring subunit is used for acquiring the quantity of the current preemptible electronic red packet messages, wherein the preemptible electronic red packet messages are electronic red packet messages of which the corresponding resources are not acquired;
the list display subunit is used for displaying the current robbable electronic red packet messages in a list mode if the number of the current robbable electronic red packet messages is more than one;
and the selection jumping subunit is used for jumping to an interface where the electronic red packet message selected by the selection instruction is located when receiving the selection instruction input by the user in the list.
As can be seen from the above, in the embodiment of the present application, the electronic red packet processing device detects the current running state of the preset application program to determine whether the user is currently in a scene where the user is really likely to rob the electronic red packet, and when the user is currently in the scene where the user is really likely to rob the electronic red packet, the received new message is identified in time, and when it is determined that the new message is the electronic red packet message, the new message is displayed in full screen, which is convenient for the user to perform the operation of rob the electronic red packet.
Example four
In a fourth embodiment of the present application, referring to fig. 4, a mobile terminal includes: a memory 401, one or more processors 402 (only one shown in fig. 4), and computer programs stored on the memory 401 and executable on the processors. Wherein: the memory 401 is used for storing software programs and modules, and the processor 402 executes various functional applications and data processing by operating the software programs and units stored in the memory 401, so as to acquire resources corresponding to the preset events. Specifically, the processor 402, by running the above-mentioned computer program stored in the memory 401, implements the steps of:
when a preset application program receives a message, detecting the current running state of the preset application program;
if the preset application program is detected to run in the foreground, identifying the type of the message;
and if the message is identified to be the electronic red packet message, displaying the message in a full screen mode.
Assuming that the above is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, after identifying that the message is an electronic red packet message and before displaying the message in full screen, the processor 402 further implements the following steps when running the computer program stored in the memory 401:
the method comprises the steps of improving the operation parameters of a central processing unit of the mobile terminal, improving the touch response speed of the mobile terminal and/or switching the working frequency of a wireless module of the mobile terminal from a current first frequency to a second frequency, wherein the second frequency is higher than the first frequency.
In a third possible implementation form that is provided on the basis of the first possible implementation form, the identifying a type of the message includes:
judging whether the message contains a picture, if so, acquiring a color histogram of the picture;
calculating the similarity between the color histogram of the picture and a preset color histogram;
and if the similarity between the color histogram of the picture and the preset color histogram exceeds a preset threshold value, determining that the type of the message is an electronic red packet message.
In a fourth possible implementation form based on the first possible implementation form, the identifying a type of the message includes:
judging whether the message contains a picture, if so, calculating the ratio of the length to the width of the picture;
and comparing the ratio of the length to the width of the picture with the ratio of the length to the width of a standard red packet picture, and if the ratio is the same, determining that the type of the message is the electronic red packet message.
In a fifth possible implementation manner based on the first possible implementation manner, or based on the second possible implementation manner, or based on the third possible implementation manner, or based on the fourth possible implementation manner, the detecting a current running state of the preset application program when the preset application program receives the message includes:
and detecting the current running state of the preset application program within the preset time after the preset application program receives the message.
In a sixth possible implementation manner provided on the basis of the first possible implementation manner, the second possible implementation manner, the third possible implementation manner, or the fourth possible implementation manner, after the current operation state of the preset application program is detected, the processor 402 further implements the following steps when executing the computer program stored in the memory 401:
if the preset application program is detected not to be operated in the foreground, monitoring the operation state of the preset application program;
when the preset application program is monitored to enter the foreground operation, scanning whether electronic red packet messages exist in all unread messages of the preset application program;
if the electronic red packet message exists in all unread messages of the preset application program, detecting whether the corresponding resource of the electronic red packet message is acquired completely;
and if the corresponding resource of the electronic red packet message is not acquired, jumping to an interface where the electronic red packet message is located.
In a seventh possible implementation manner provided based on the sixth possible implementation manner, the jumping to the interface where the electronic red packet message is located if the corresponding resource of the electronic red packet message is not completely acquired includes:
acquiring the number of the current preemptible electronic red packet messages, wherein the preemptible electronic red packet messages are electronic red packet messages of which corresponding resources are not acquired;
if the number of the current robbable electronic red packet messages is more than one, displaying the current robbable electronic red packet messages in a list mode;
and when a selection instruction input by the user in the list is received, jumping to an interface where the electronic red packet message selected by the selection instruction is located.
Further, as shown in fig. 4, the mobile terminal may further include: one or more input devices 403 (only one shown in fig. 4) and one or more output devices 404 (only one shown in fig. 4). The memory 401, processor 402, input device 403, and output device 404 are connected by a bus 405.
It should be understood that, in the embodiment of the present Application, the Processor 402 may be a Central Processing Unit (CPU), and the Processor may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 403 may include a keyboard, a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 404 may include a display, a speaker, etc.
Memory 401 may include both read-only memory and random-access memory, and provides instructions and data to processor 402. Some or all of memory 401 may also include non-volatile random access memory. For example, the memory 401 may also store device type information.
Therefore, in the embodiment of the application, whether the user is currently in a scene where the user is really likely to rob the electronic red packet is judged by detecting the current running state of the preset application program of the mobile terminal, when the user is currently in the scene where the user is really likely to rob the electronic red packet, the received new message is timely identified, and the new message is displayed in a full screen mode when the new message is determined to be the electronic red packet message, so that the user can conveniently execute the operation of rob the electronic red packet.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of external device software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the above-described modules or units is only one logical functional division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow in the method of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying the above-described computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer readable Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable storage medium may contain other contents which can be appropriately increased or decreased according to the requirements of the legislation and the patent practice in the jurisdiction, for example, in some jurisdictions, the computer readable storage medium does not include an electrical carrier signal and a telecommunication signal according to the legislation and the patent practice.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. An electronic red packet processing method is characterized by comprising the following steps:
when a preset application program receives a message, detecting the current running state of the preset application program;
if the preset application program is detected to run in the foreground, identifying the type of the message;
and if the message is identified to be the electronic red packet message, displaying the message in a full screen mode.
2. The electronic red envelope processing method of claim 1, wherein after identifying the message as an electronic red envelope message, before displaying the message full screen, further comprising:
the method comprises the steps of improving the operation parameters of a central processing unit of the mobile terminal, improving the touch response speed of the mobile terminal and/or switching the working frequency of a wireless module of the mobile terminal from a current first frequency to a second frequency, wherein the second frequency is higher than the first frequency.
3. The electronic red envelope processing method of claim 1, wherein said identifying the type of the message comprises:
judging whether the message contains a picture, and if so, acquiring a color histogram of the picture;
calculating the similarity between the color histogram of the picture and a preset color histogram;
and if the similarity between the color histogram of the picture and the preset color histogram exceeds a preset threshold value, determining that the type of the message is an electronic red packet message.
4. The electronic red envelope processing method of claim 1, wherein said identifying the type of the message comprises:
judging whether the message contains a picture, if so, calculating the ratio of the length to the width of the picture;
and comparing the ratio of the length to the width of the picture with the ratio of the length to the width of a standard red packet picture, and if the ratio is the same, determining that the type of the message is the electronic red packet message.
5. The electronic red envelope processing method of any of claims 1 to 4, wherein the detecting the current running state of the preset application program when the preset application program receives the message comprises:
and detecting the current running state of the preset application program within the preset time after the preset application program receives the message.
6. The electronic red envelope processing method according to any one of claims 1 to 4, wherein after said detecting a current running state of said preset application program, said electronic red envelope processing method further comprises;
if the preset application program is detected not to run in the foreground, monitoring the running state of the preset application program;
when the preset application program is monitored to enter foreground operation, scanning whether electronic red packet messages exist in all unread messages of the preset application program;
if the electronic red packet message exists in all unread messages of the preset application program, detecting whether the corresponding resource of the electronic red packet message is acquired completely;
and if the corresponding resource of the electronic red packet message is not acquired, jumping to an interface where the electronic red packet message is located.
7. The method according to claim 6, wherein jumping to an interface where the electronic red packet message is located if the corresponding resource of the electronic red packet message is not obtained includes:
acquiring the number of the current preemptible electronic red packet messages, wherein the preemptible electronic red packet messages are electronic red packet messages of which corresponding resources are not acquired;
if the number of the current robbable electronic red packet messages is more than one, displaying the current robbable electronic red packet messages in a list mode;
and when a selection instruction input in the list by the user is received, jumping to an interface where the electronic red packet message selected by the selection instruction is located.
8. An electronic red packet processing apparatus, comprising:
the state detection unit is used for detecting the current running state of the preset application program when the preset application program receives the message;
the type identification unit is used for identifying the type of the message if the preset application program is detected to run in a foreground;
and the message display unit is used for displaying the message in a full screen mode if the message is identified to be the electronic red packet message.
9. A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201811021402.4A 2018-09-03 2018-09-03 Electronic red packet processing method, electronic red packet processing device and mobile terminal Active CN110874277B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811021402.4A CN110874277B (en) 2018-09-03 2018-09-03 Electronic red packet processing method, electronic red packet processing device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811021402.4A CN110874277B (en) 2018-09-03 2018-09-03 Electronic red packet processing method, electronic red packet processing device and mobile terminal

Publications (2)

Publication Number Publication Date
CN110874277A true CN110874277A (en) 2020-03-10
CN110874277B CN110874277B (en) 2022-05-27

Family

ID=69716823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811021402.4A Active CN110874277B (en) 2018-09-03 2018-09-03 Electronic red packet processing method, electronic red packet processing device and mobile terminal

Country Status (1)

Country Link
CN (1) CN110874277B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584827A (en) * 2022-03-01 2022-06-03 上海哔哩哔哩科技有限公司 Red packet processing method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106326074A (en) * 2016-09-12 2017-01-11 广东欧珀移动通信有限公司 Processor operation parameter adjusting method and mobile terminal
CN106339862A (en) * 2016-09-12 2017-01-18 广东欧珀移动通信有限公司 Information processing method and mobile terminal
CN106383654A (en) * 2016-09-12 2017-02-08 广东欧珀移动通信有限公司 Touch screen parameter adjustment method and mobile terminal
CN107197493A (en) * 2017-06-26 2017-09-22 广东欧珀移动通信有限公司 A kind of method for switching network, network switching device and intelligent terminal
CN107302493A (en) * 2017-06-30 2017-10-27 广东欧珀移动通信有限公司 A kind of message treatment method, message processing apparatus and intelligent terminal
CN107332988A (en) * 2017-06-26 2017-11-07 广东欧珀移动通信有限公司 Information processing method, mobile terminal and computer-readable recording medium
WO2018027735A1 (en) * 2016-08-11 2018-02-15 王志远 Method for acquiring wechat red packet according to task, and red packet system
CN108460585A (en) * 2017-02-21 2018-08-28 阿里巴巴集团控股有限公司 A kind of resource acquiring method, resource allocation methods, device and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018027735A1 (en) * 2016-08-11 2018-02-15 王志远 Method for acquiring wechat red packet according to task, and red packet system
CN106326074A (en) * 2016-09-12 2017-01-11 广东欧珀移动通信有限公司 Processor operation parameter adjusting method and mobile terminal
CN106339862A (en) * 2016-09-12 2017-01-18 广东欧珀移动通信有限公司 Information processing method and mobile terminal
CN106383654A (en) * 2016-09-12 2017-02-08 广东欧珀移动通信有限公司 Touch screen parameter adjustment method and mobile terminal
CN108460585A (en) * 2017-02-21 2018-08-28 阿里巴巴集团控股有限公司 A kind of resource acquiring method, resource allocation methods, device and electronic equipment
CN107197493A (en) * 2017-06-26 2017-09-22 广东欧珀移动通信有限公司 A kind of method for switching network, network switching device and intelligent terminal
CN107332988A (en) * 2017-06-26 2017-11-07 广东欧珀移动通信有限公司 Information processing method, mobile terminal and computer-readable recording medium
CN107302493A (en) * 2017-06-30 2017-10-27 广东欧珀移动通信有限公司 A kind of message treatment method, message processing apparatus and intelligent terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584827A (en) * 2022-03-01 2022-06-03 上海哔哩哔哩科技有限公司 Red packet processing method and device
CN114584827B (en) * 2022-03-01 2024-02-06 上海哔哩哔哩科技有限公司 Red packet processing method and device

Also Published As

Publication number Publication date
CN110874277B (en) 2022-05-27

Similar Documents

Publication Publication Date Title
CN108804299B (en) Application program exception handling method and device
CN111008540B (en) Bar code identification method and equipment and computer storage medium
CN107302493B (en) Message processing method, message processing device and intelligent terminal
CN109800204B (en) Data distribution method and related product
US10810287B2 (en) Method and apparatus for unlocking terminal screen
CN110874277B (en) Electronic red packet processing method, electronic red packet processing device and mobile terminal
CN114119964A (en) Network training method and device, and target detection method and device
CN110874301A (en) Method and device for acquiring program pause information
CN110912801B (en) Method, system and terminal device for detecting electronic red packet
CN107797924B (en) SQL script abnormity detection method and terminal thereof
CN110795239A (en) Application memory leakage detection method and device
CN110598567A (en) Community-based garbage management method and system and computer-readable storage medium
CN110875981B (en) Electronic red packet processing method, electronic red packet processing device and mobile terminal
CN109348288A (en) A kind of processing method of video, device, storage medium and terminal
CN108520063A (en) Processing method, device and the terminal device of event log
CN112771499A (en) Message loading method, message loading device and mobile terminal
CN114546171A (en) Data distribution method, data distribution device, storage medium and electronic equipment
CN106708706B (en) Alarm information processing method and device for task program abnormity
CN114625502A (en) Word-throwing task processing method and device, storage medium and electronic equipment
CN113807410A (en) Image recognition method and device and electronic equipment
CN110377362B (en) Method, device, terminal and storage medium for cleaning application program
CN113438286A (en) Information pushing method and device, electronic equipment and storage medium
CN110879733A (en) Detection method and device of electronic red packet, terminal and computer readable storage medium
CN110875870B (en) Electronic red packet monitoring method, system and terminal equipment
CN110875869B (en) Red packet identification method, system and terminal 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