CN110875981B - 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
CN110875981B
CN110875981B CN201811015225.9A CN201811015225A CN110875981B CN 110875981 B CN110875981 B CN 110875981B CN 201811015225 A CN201811015225 A CN 201811015225A CN 110875981 B CN110875981 B CN 110875981B
Authority
CN
China
Prior art keywords
message
red packet
electronic red
mobile terminal
target message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811015225.9A
Other languages
Chinese (zh)
Other versions
CN110875981A (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 CN201811015225.9A priority Critical patent/CN110875981B/en
Publication of CN110875981A publication Critical patent/CN110875981A/en
Application granted granted Critical
Publication of CN110875981B publication Critical patent/CN110875981B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Accounting & Taxation (AREA)
  • Environmental & Geological Engineering (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (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: monitoring the screen state of the mobile terminal; when the screen state is monitored to be a bright screen, detecting whether a mobile terminal receives a target message, wherein the target message is a message received by a preset application program; if the mobile terminal is detected to receive the target message, identifying the type of the target message; and if the target message is identified to be the electronic red packet message, displaying the target message in a full screen mode. The scheme of the application can avoid the mobile terminal from frequently identifying the received new message, and reduces the power consumption of the mobile terminal 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 avoid frequently identifying new messages 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:
monitoring the screen state of the mobile terminal;
when the screen state is monitored to be a bright screen, detecting whether a mobile terminal receives a target message, wherein the target message is a message received by a preset application program;
if the mobile terminal is detected to receive the target message, identifying the type of the target message;
and if the target message is identified to be the electronic red packet message, displaying the target message in a full screen mode.
A second aspect of the present application provides an electronic red envelope processing apparatus, including:
the monitoring unit is used for monitoring the screen state of the mobile terminal;
the mobile terminal comprises a detection unit, a display unit and a display unit, wherein the detection unit is used for detecting whether the mobile terminal receives a target message when the screen state is monitored to be a bright screen, and the target message is a message received by a preset application program;
an identifying unit, configured to identify a type of a target message if it is detected that the mobile terminal receives the target message;
and the display unit is used for displaying the target message in a full screen mode if the target 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.
According to the scheme, firstly, the screen state of the mobile terminal is monitored, and when the screen state is monitored to be bright, whether the mobile terminal receives a target message is detected, wherein the target message is a message received by a preset application program, if the mobile terminal receives the target message is detected, the type of the target message is identified, and if the target message is identified to be an electronic red packet message, the target message is displayed in a full screen mode. In the scheme of the application, the mobile terminal does not recognize the type of the message when receiving a new message, but detects the new message received by the mobile terminal only in a bright screen state to determine that the mobile terminal is the electronic red packet message received by the preset application program, so that the frequent recognition of the new message received by the mobile terminal can be avoided, and the power consumption of the mobile terminal is reduced to a certain extent.
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, monitoring the screen state of the mobile terminal;
in the embodiment of the application, after the mobile terminal is started, the screen state of the mobile terminal can be monitored, wherein the screen state comprises screen turning-off and screen lighting. It should be noted that the mobile terminal being on does not mean that the mobile terminal is unlocked. Under normal conditions, the mobile terminal starts an automatic screen-off function, that is, the mobile terminal enters a screen-off state when an operation instruction input by a user to the mobile terminal is not received within a period of time, and the mobile terminal is locked, so that the screen state is bright, that is, the mobile terminal is used by the user before a period of time, and the probability that the current user uses the mobile terminal can be inferred to be high.
In step 102, when it is monitored that the screen state is bright, detecting whether the mobile terminal receives a target message;
in this embodiment of the application, the target message is a message received by a preset application program. Currently, most mobile terminals are intelligent devices, and each installed application program may receive and push a new message to a user, however, not all application programs support the electronic red packet function, and therefore, if a new message is received when a mobile terminal is on the screen, it is necessary to detect whether the new message is a message received by a preset application program. Specifically, the preset application is an application installed in the intelligent terminal and capable of performing electronic red envelope operation, and includes but is not limited to WeChat, Paibao, and QQ, and is not limited herein; the messages received by the preset application program comprise messages received by all conversations in the preset application program, wherein all the conversations comprise single contact conversation and multi-contact conversation.
In step 103, if it is detected that the mobile terminal receives a target message, identifying a type of the target message;
in the embodiment of the application, after receiving the target message, the mobile terminal needs to perform a series of preparation operations such as refreshing a page of a preset application program, and then can push the reminding message related to the target message, that is, there is a time difference between the operation of receiving the target message and the operation of pushing the reminding message. Thus, the type of the target message can be identified using the time difference. Specifically, the type of the target 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 104, if the target message is identified as an electronic red packet message, the target message is displayed in a full screen.
In this embodiment of the application, when the target 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 target message cannot be quickly found due to message screen refreshing does not occur. It should be noted that, if the mobile terminal is in a bright screen but not unlocked state, after the target message is displayed in a full screen, the mobile terminal can only execute the electronic red packet grabbing command and the return command input by the user, and after receiving the return command input by the user, the mobile terminal will directly return to the screen locking interface of the mobile terminal.
Therefore, in the embodiment of the application, the mobile terminal does not recognize the type of the message every time the mobile terminal receives a new message, but detects the new message received by the mobile terminal only in the bright screen state to determine that the mobile terminal is the electronic red packet message received by the preset application program, so that the frequent recognition of the new message received by the mobile terminal can be avoided, and the power consumption of the mobile terminal is reduced to a certain extent.
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, monitoring the screen state of the mobile terminal;
in step 202, when it is monitored that the screen state is a bright screen, detecting whether a mobile terminal receives a target message, wherein the target message is a message received by a preset application program;
in step 203, if it is detected that the mobile terminal receives a target message, identifying a type of the target message;
in step 204, if the target message is identified as an electronic red packet message, displaying the target message in a full screen manner;
in the embodiment of the present application, the steps 201, 202, 203, and 204 are the same as or similar to the steps 101, 102, 103, and 104, respectively, and reference may be made to the related description of the steps 201, 202, 203, and 204, which is not repeated herein.
In step 205, scanning whether an electronic red packet message exists in other unread messages of the preset application program;
in this embodiment of the application, since only the electronic red packet message received when the mobile terminal is turned on is concerned in steps 201 to 204, and the electronic red packet message received when the mobile terminal is turned off is not concerned, in order to avoid forgetting to snatch, missing to snatch, and the like, after the target message is displayed in a full screen, the mobile terminal may further scan other unread messages of the preset application program to determine whether the mobile terminal also receives the electronic red packet message when the mobile terminal is turned off.
In step 206, if there is an electronic red packet message in the other unread messages, detecting whether the corresponding resource of the electronic red packet message in the other unread messages is completely acquired;
in this embodiment of the present application, when it is found by scanning that the electronic red packet message exists in the other unread messages, it is detected whether the corresponding resource of the electronic red packet message existing in the other unread messages is completely acquired, that is, whether the electronic red packet message existing in the other unread messages can still be preempted is detected. Optionally, before the step of detecting whether the corresponding resource of the electronic red packet message in the other unread messages is acquired, the receiving time of each electronic red packet message in the other unread messages 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 in the other unread messages is 24 hours ago, it is determined that the electronic red packet message is expired, and the electronic red packet message may be removed from the other unread messages, so that the waste of time on the invalid electronic red packet message by the user is avoided.
In step 207, if the resources corresponding to the electronic red packet message in the other unread messages are not obtained, after the resources corresponding to the target message are obtained, the interface where the electronic red packet message in the other unread messages is located is skipped to.
In this embodiment of the application, when it is found that resources corresponding to the electronic red packet message in the other unread messages are not completely acquired, 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 after displaying and acquiring the resources corresponding to the target message, and further, after jumping to the location position of the electronic red packet message, the electronic red packet message may be displayed in a full screen manner, and a user is no longer required to manually search for the electronic red packet message that can be snatched.
Optionally, step 207 specifically includes:
a1, acquiring the number of the current robbable electronic red packet messages in other unread messages, wherein the robbable electronic red packet messages are electronic red packet messages of which the corresponding resources are not acquired;
a2, if the number of the current robbable electronic red packet messages in other unread messages is more than one, displaying the current robbable electronic red packet messages in other unread messages in a list manner;
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, the mobile terminal does not recognize the type of the message every time the mobile terminal receives a new message, but detects the new message received by the mobile terminal only in the bright screen state to determine that the mobile terminal is the electronic red packet message received by the preset application program, so that the frequent recognition of the new message received by the mobile terminal can be avoided, and the power consumption of the mobile terminal is reduced to a certain extent. And after the target message is displayed, the mobile terminal detects the message received by the preset application when the screen is turned off, so that the user is prevented from missing 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.
Optionally, in the first and second embodiments, the steps 102 and 202 specifically include:
b1, when the screen state is bright, detecting whether the mobile terminal receives a new message;
b2, if the mobile terminal receives a new message, detecting whether the application identifier of the application program where the new message is located is matched with the application identifier of the preset application program;
the application names of different applications may be consistent, but the application identifiers (UIDs) are usually different, so that different applications can be distinguished according to the application identifiers. Specifically, the application identifier of the application program in which the new message is located may be obtained by parsing the new message. Optionally, the user may set or change the preset application program, and after the preset application program is set or changed, the mobile terminal may actively acquire and update the application identifier of the preset application program.
B3, if the application identifier of the application program where the new message is located matches with the application identifier of the preset application program, determining the new message as the target message.
Optionally, in the first and second embodiments, in an application scenario, the steps 103 and 203 may specifically include:
c1, if it is detected that the mobile terminal receives the target message, detecting whether the process identifier of the application program where the target message is located matches with the preset process identifier of the preset application program;
and C2, if the process identifier of the application program where the target message is located is matched with the preset process identifier of the preset application program, determining that the target message is the electronic red packet message.
The process identifier is a number assigned by an operating system of the mobile terminal to an application program in a running state. Typically, each application corresponds to only one application identifier, but will correspond to multiple process identifiers. Therefore, after the received new message is determined to be the target message, the process identifier of the application program where the message is located can be continuously acquired, and whether the target message is the electronic red packet message can be known by judging whether the process identifier meets the process identifier of the preset application program.
Optionally, in the first and second embodiments, in another application scenario, the steps 103 and 203 may also specifically include:
d1, if the mobile terminal is detected to receive the target message, detecting whether the information identifier of the target message is matched with a preset information identifier;
d2, if the information identifier of the target message is matched with the preset information identifier, determining that the target message is the electronic red packet message.
The message identifier is used for indicating the type of the message contained in the target message, and the type of the message comprises picture information, text information and link information, so that for a plain text message, the message identifier indicates that the message identifier only contains text information; for a picture only message, the information identifier indicates that the picture only message is included; for the link message, the information identifier indicates that the link message only contains link information; the electronic red envelope message is a composite message that includes not only text information, but also picture information, link information, and the like, so that for the electronic red envelope message, the information identifier indicates that the electronic red envelope message includes various types of information. Based on the information identifier, whether the target message is the electronic red packet message or not can be judged.
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 monitoring unit 301, configured to monitor a screen state of the mobile terminal;
a detecting unit 302, configured to detect whether a mobile terminal receives a target message when it is monitored that the screen state is a bright screen, where the target message is a message received by a preset application program;
an identifying unit 303, configured to identify a type of a target message if it is detected that the mobile terminal receives the target message;
and a display unit 304, configured to display the target message in a full screen if the target message is identified as an electronic red packet message.
Optionally, the detecting unit 302 includes:
a new message detection subunit, configured to detect whether the mobile terminal receives a new message when the screen state is a bright screen;
an application identifier matching subunit, configured to, if the mobile terminal receives a new message, detect whether an application identifier of an application program in which the new message is located matches the application identifier of the preset application program;
and the target message determining subunit is used for determining the new message as the target message if the application identifier of the application program where the new message is located is matched with the application identifier of the preset application program.
Optionally, the identifying unit 303 includes:
a process identifier matching subunit, configured to, if it is detected that the mobile terminal receives the target message, detect whether a process identifier of an application program in which the target message is located matches a preset process identifier of the preset application program;
and the first electronic red packet message determining subunit is configured to determine that the target message is an electronic red packet message if the process identifier of the application program in which the target message is located matches a preset process identifier of the preset application program.
Optionally, the identifying unit 303 includes:
an information identifier matching subunit, configured to detect, if it is detected that the mobile terminal receives a target message, whether an information identifier of the target message matches a preset information identifier, where the information identifier is used to indicate an information type included in the target message, and the information type includes picture information, text information, and link information;
and the second electronic red packet message determining subunit determines that the target message is the electronic red packet message if the information identifier of the target message is matched with the preset information identifier.
Optionally, the electronic red packet processing apparatus 300 further includes:
the red packet scanning unit is used for scanning whether the electronic red packet message exists in other unread messages of the preset application program after the target message is displayed in a full screen mode if the target message is identified to be the electronic red packet message;
a resource detection unit, configured to detect whether a resource corresponding to an electronic red packet message in the other unread messages is completely acquired if the electronic red packet message exists in the other unread messages;
and the interface skipping unit is used for skipping to the interface where the electronic red packet message in the other unread messages is located after the corresponding resource of the target message is acquired if the corresponding resource of the electronic red packet message in the other unread messages is not acquired.
Optionally, the interface jumping unit includes:
the quantity acquiring subunit is configured to acquire the quantity of the current robbable electronic red packet messages in other unread messages, where the robbable electronic red packet messages are electronic red packet messages whose corresponding resources are not acquired;
the list display subunit is used for displaying the current robbable electronic red packet messages in other unread messages in a list manner if the number of the current robbable electronic red packet messages in the other unread 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 does not recognize the type of a new message every time the new message is received, but detects the new message received by the mobile terminal only in the bright screen state to determine that the mobile terminal is the electronic red packet message received by the preset application program, so that frequent recognition of the new message received by the mobile terminal can be avoided, and power consumption of the mobile terminal is reduced to a certain extent.
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 obtain corresponding 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:
monitoring the screen state of the mobile terminal;
when the screen state is monitored to be a bright screen, detecting whether a mobile terminal receives a target message, wherein the target message is a message received by a preset application program;
if the mobile terminal is detected to receive the target message, identifying the type of the target message;
and if the target message is identified to be the electronic red packet message, displaying the target 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, the detecting whether the mobile terminal receives the target message when it is monitored that the screen state is bright includes:
when the screen state is bright, detecting whether the mobile terminal receives a new message;
if the mobile terminal receives a new message, detecting whether an application identifier of an application program where the new message is located is matched with an application identifier of the preset application program;
and if the application identifier of the application program where the new message is located is matched with the application identifier of the preset application program, determining the new message as the target message.
In a third possible embodiment based on the first possible embodiment, the identifying a type of the target message when detecting that the mobile terminal receives the target message includes:
if the mobile terminal is detected to receive the target message, detecting whether the process identifier of the application program where the target message is located is matched with the preset process identifier of the preset application program;
and if the process identifier of the application program where the target message is located is matched with the preset process identifier of the preset application program, determining that the target message is the electronic red packet message.
In a fourth possible implementation manner based on the first possible implementation manner, the identifying a type of the target message when detecting that the mobile terminal receives the target message includes:
if the mobile terminal is detected to receive a target message, detecting whether an information identifier of the target message is matched with a preset information identifier, wherein the information identifier is used for indicating an information type contained in the target message, and the information type comprises picture information, text information and link information;
and if the information identifier of the target message is matched with the preset information identifier, determining that the target message is the electronic red packet message.
In a fifth 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 target message is identified as an electronic red packet message, the processor 402 further implements the following steps when running the computer program stored in the memory 401:
scanning whether the electronic red packet message exists in other unread messages of the preset application program;
if the electronic red packet message exists in the other unread messages, detecting whether the corresponding resource of the electronic red packet message in the other unread messages is acquired completely;
and if the corresponding resource of the electronic red packet message in the other unread messages is not acquired, jumping to an interface where the electronic red packet message in the other unread messages is located after the corresponding resource of the target message is acquired.
In a sixth possible implementation manner provided based on the fifth possible implementation manner, if the resource corresponding to the electronic red packet message in the other unread messages is not completely acquired, after the resource corresponding to the target message is completely acquired, jumping to an interface where the electronic red packet message in the other unread messages is located includes:
acquiring the quantity of the current robbable electronic red packet messages in other unread messages, wherein the robbable electronic red packet messages are electronic red packet messages of which the corresponding resources are not acquired;
if the number of the current robbable electronic red packet messages in other unread messages is more than one, displaying the current robbable electronic red packet messages in other unread messages in a list manner;
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, the mobile terminal does not recognize the type of the message every time the mobile terminal receives a new message, but detects the new message received by the mobile terminal only in the bright screen state to determine that the mobile terminal is the electronic red packet message received by the preset application program, so that the frequent recognition of the new message received by the mobile terminal can be avoided, and the power consumption of the mobile terminal is reduced to a certain extent.
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 (9)

1. An electronic red packet processing method is characterized by comprising the following steps:
monitoring the screen state of the mobile terminal;
when the screen state is monitored to be a bright screen, detecting whether a mobile terminal receives a target message, wherein the target message is a message received by a preset application program;
if the mobile terminal is detected to receive the target message, identifying the type of the target message;
if the target message is identified to be the electronic red packet message, displaying the target message in a full screen manner;
scanning whether an electronic red packet message exists in other unread messages of the preset application program;
if the electronic red packet message exists in the other unread messages, detecting whether the corresponding resource of the electronic red packet message in the other unread messages is acquired completely;
and if the corresponding resource of the electronic red packet message in the other unread messages is not acquired, jumping to an interface where the electronic red packet message in the other unread messages is located after the corresponding resource of the target message is acquired.
2. The electronic red packet processing method according to claim 1, wherein the detecting whether the mobile terminal receives the target message when it is monitored that the screen status is bright comprises:
when the screen state is bright, detecting whether the mobile terminal receives a new message;
if the mobile terminal receives a new message, detecting whether an application identifier of an application program where the new message is located is matched with an application identifier of the preset application program;
and if the application identifier of the application program where the new message is located is matched with the application identifier of the preset application program, determining the new message as the target message.
3. The method of claim 1, wherein the identifying the type of the target message if detecting that the mobile terminal receives the target message comprises:
if the mobile terminal is detected to receive the target message, detecting whether the process identifier of the application program where the target message is located is matched with the preset process identifier of the preset application program;
and if the process identifier of the application program where the target message is located is matched with the preset process identifier of the preset application program, determining that the target message is the electronic red packet message.
4. The method of claim 1, wherein the identifying the type of the target message if detecting that the mobile terminal receives the target message comprises:
if the mobile terminal is detected to receive a target message, detecting whether an information identifier of the target message is matched with a preset information identifier, wherein the information identifier is used for indicating an information type contained in the target message, and the information type comprises picture information, text information and link information;
and if the information identifier of the target message is matched with the preset information identifier, determining that the target message is the electronic red packet message.
5. The method according to claim 1, wherein if the resource corresponding to the electronic red packet message in the other unread messages is not obtained, jumping to an interface where the electronic red packet message in the other unread messages is located after the resource corresponding to the target message is obtained, comprises:
acquiring the quantity of the current robbable electronic red packet messages in other unread messages, wherein the robbable 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 in other unread messages is more than one, displaying the current robbable electronic red packet messages in other unread messages in a list manner;
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.
6. An electronic red packet processing apparatus, comprising:
the monitoring unit is used for monitoring the screen state of the mobile terminal;
the detection unit is used for detecting whether the mobile terminal receives a target message when the screen state is monitored to be a bright screen, wherein the target message is a message received by a preset application program;
the identification unit is used for identifying the type of the target message if the mobile terminal is detected to receive the target message;
the display unit is used for displaying the target message in a full screen mode if the target message is identified to be the electronic red packet message;
the red packet scanning unit is used for scanning whether the electronic red packet message exists in other unread messages of the preset application program after the target message is displayed in a full screen mode if the target message is identified to be the electronic red packet message;
the resource detection unit is used for detecting whether the corresponding resources of the electronic red packet messages in the other unread messages are acquired or not if the electronic red packet messages exist in the other unread messages;
and the interface skipping unit is used for skipping to the interface where the electronic red packet message in the other unread messages is located after the corresponding resource of the target message is acquired if the corresponding resource of the electronic red packet message in the other unread messages is not acquired.
7. The electronic red packet processing apparatus according to claim 6, wherein the detection unit includes:
the new message detection subunit is used for detecting whether the mobile terminal receives a new message or not when the screen state is a bright screen;
an application identifier matching subunit, configured to, if the mobile terminal receives a new message, detect whether an application identifier of an application program in which the new message is located matches the application identifier of the preset application program;
and the target message determining subunit is configured to determine the new message as the target message if the application identifier of the application program in which the new message is located matches the application identifier of the preset application program.
8. 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 5 when executing the computer program.
9. 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 5.
CN201811015225.9A 2018-08-31 2018-08-31 Electronic red packet processing method, electronic red packet processing device and mobile terminal Active CN110875981B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811015225.9A CN110875981B (en) 2018-08-31 2018-08-31 Electronic red packet processing method, electronic red packet processing device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811015225.9A CN110875981B (en) 2018-08-31 2018-08-31 Electronic red packet processing method, electronic red packet processing device and mobile terminal

Publications (2)

Publication Number Publication Date
CN110875981A CN110875981A (en) 2020-03-10
CN110875981B true CN110875981B (en) 2020-10-20

Family

ID=69714794

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811015225.9A Active CN110875981B (en) 2018-08-31 2018-08-31 Electronic red packet processing method, electronic red packet processing device and mobile terminal

Country Status (1)

Country Link
CN (1) CN110875981B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105894255A (en) * 2016-06-08 2016-08-24 北京奇虎科技有限公司 Information processing method, device and equipment
CN105975144A (en) * 2016-04-25 2016-09-28 维沃移动通信有限公司 Information processing method and apparatus
CN106527866A (en) * 2016-11-25 2017-03-22 北京奇虎科技有限公司 Designated data message remind method and device and mobile terminal
WO2017120921A1 (en) * 2016-01-15 2017-07-20 白宏伟 Method for pushing information when processing wechat red envelope, and mobile terminal
EP3200145A1 (en) * 2014-09-23 2017-08-02 Samsung Electronics Co., Ltd. Electronic device and information processing method of electronic device
CN108055388A (en) * 2017-11-07 2018-05-18 维沃移动通信有限公司 A kind of methods of exhibiting, device and the mobile terminal of virtual red packet

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3200145A1 (en) * 2014-09-23 2017-08-02 Samsung Electronics Co., Ltd. Electronic device and information processing method of electronic device
WO2017120921A1 (en) * 2016-01-15 2017-07-20 白宏伟 Method for pushing information when processing wechat red envelope, and mobile terminal
CN105975144A (en) * 2016-04-25 2016-09-28 维沃移动通信有限公司 Information processing method and apparatus
CN105894255A (en) * 2016-06-08 2016-08-24 北京奇虎科技有限公司 Information processing method, device and equipment
CN106527866A (en) * 2016-11-25 2017-03-22 北京奇虎科技有限公司 Designated data message remind method and device and mobile terminal
CN108055388A (en) * 2017-11-07 2018-05-18 维沃移动通信有限公司 A kind of methods of exhibiting, device and the mobile terminal of virtual red packet

Also Published As

Publication number Publication date
CN110875981A (en) 2020-03-10

Similar Documents

Publication Publication Date Title
CN108804299B (en) Application program exception handling method and device
CN104618577A (en) Key requirement response method and device
CN109152061B (en) Channel allocation method, device, server and storage medium
US20130055271A1 (en) Apparatus and method for controlling polling
CN105988805B (en) Application program management method and mobile terminal
CN109445954B (en) Timing task execution method, terminal device and storage medium
US10810287B2 (en) Method and apparatus for unlocking terminal screen
CN105988836A (en) Application recommendation method and device
CN107395875A (en) Timing reminding method and device based on terminal and electronic equipment
CN108572866B (en) Application program management method, application program management device and mobile terminal
CN108683588B (en) Message management method, message management device and mobile terminal
CN106227483B (en) Display control method and mobile terminal
CN105005526A (en) Information reminding method and mobile terminal
CN108509541B (en) Message reading method, message reading device and mobile terminal
CN113190427A (en) Caton monitoring method and device, electronic equipment and storage medium
CN116016653A (en) Information pushing method and device of blockchain, electronic equipment and storage medium
CN103491175A (en) Method and terminal for application program management
CN112654974A (en) File scanning method, file scanning device and terminal equipment
US10762207B2 (en) Method and device for scanning virus
CN110875981B (en) Electronic red packet processing method, electronic red packet processing device and mobile terminal
CN110874277B (en) Electronic red packet processing method, electronic red packet processing device and mobile terminal
CN107797924B (en) SQL script abnormity detection method and terminal thereof
CN109600738B (en) User information updating method, device, equipment and storage medium
CN109491771B (en) Task processing method based on system performance optimization and related equipment
CN108536512B (en) Interface switching method and device 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