CN110881002A - Electronic red packet monitoring method and device and terminal equipment - Google Patents

Electronic red packet monitoring method and device and terminal equipment Download PDF

Info

Publication number
CN110881002A
CN110881002A CN201811038490.9A CN201811038490A CN110881002A CN 110881002 A CN110881002 A CN 110881002A CN 201811038490 A CN201811038490 A CN 201811038490A CN 110881002 A CN110881002 A CN 110881002A
Authority
CN
China
Prior art keywords
message
electronic red
red packet
new instant
instant messaging
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
CN201811038490.9A
Other languages
Chinese (zh)
Other versions
CN110881002B (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 CN201811038490.9A priority Critical patent/CN110881002B/en
Publication of CN110881002A publication Critical patent/CN110881002A/en
Application granted granted Critical
Publication of CN110881002B publication Critical patent/CN110881002B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Multimedia (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application is suitable for the technical field of communication, and provides an electronic red packet monitoring method, an electronic red packet monitoring device and terminal equipment, wherein the electronic red packet monitoring method comprises the following steps: when receiving a new instant communication message received/sent by electronic red packet software, acquiring the layout characteristics of the new instant communication message; converting the layout characteristics of the new instant messaging message into a tree data structure; traversing the tree data structure to judge whether the new instant messaging message is an electronic red packet message; and when the new instant communication message is the electronic red packet message, prompting to monitor the electronic red packet. According to the embodiment of the application, the electronic red packet can be rapidly, efficiently and accurately monitored and prompt can be timely sent out in a mode of traversing the tree-shaped data structure, the monitoring speed and the accuracy of the electronic red packet are improved, and the electronic red packet is not affected by the upgrading of instant messaging software.

Description

Electronic red packet monitoring method and device and terminal equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to an electronic red packet monitoring method, an electronic red packet monitoring device and terminal equipment.
Background
With the continuous development of science and technology, various terminal devices with instant messaging functions, such as mobile phones, tablet computers, personal digital assistants and the like, are in the endlessly, and great convenience is brought to daily production and life of people. The instant messaging application usually has the functions of receiving and sending the electronic red packet besides the basic instant messaging function, thereby having interestingness and practicability.
However, the existing electronic red packet monitoring method is difficult to monitor the electronic red packet timely and effectively for a long time, is easy to lose effectiveness after the instant communication software is upgraded, and has an unsatisfactory monitoring effect.
Disclosure of Invention
In view of this, embodiments of the present application provide an electronic red envelope monitoring method, an electronic red envelope monitoring device, and a terminal device, so as to solve the problems that the existing electronic red envelope monitoring method is difficult to monitor an electronic red envelope timely and effectively for a long time, is easy to fail after an instant communication software is upgraded, and has an unsatisfactory monitoring effect.
A first aspect of an embodiment of the present application provides an electronic red envelope monitoring method, which includes:
when receiving a new instant communication message received/sent by electronic red packet software, acquiring the layout characteristics of the new instant communication message;
converting the layout characteristics of the new instant messaging message into a tree data structure;
traversing the tree data structure to judge whether the new instant messaging message is an electronic red packet message;
and when the new instant communication message is the electronic red packet message, prompting to monitor the electronic red packet.
A second aspect of the embodiments of the present application provides an electronic red envelope monitoring device, which includes:
the layout characteristic acquisition module is used for acquiring the layout characteristics of a new instant messaging message when receiving the new instant messaging message received/sent by the electronic red packet software;
the conversion module is used for converting the layout characteristics of the new instant messaging message into a tree data structure;
the judging module is used for traversing the tree-shaped data structure to judge whether the new instant communication message is an electronic red packet message;
and the prompting module is used for prompting that the electronic red packet is monitored when the new instant communication message is the electronic red packet message.
A third aspect of the embodiments of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the steps of the above-described method.
The embodiment of the application acquires the layout characteristics of the new instant messaging message when receiving the new instant messaging message received/sent by the electronic red packet software, converts the layout characteristics of the new instant messaging message into the tree-shaped data structure and traverses the tree-shaped data structure to judge whether the new instant messaging message is the electronic red packet message or not, so that when the new instant messaging message is the electronic red packet message, the electronic red packet is prompted to be monitored, the electronic red packet can be rapidly, efficiently and accurately monitored in a mode of traversing the tree-shaped data structure and prompted to be sent in time, the monitoring speed and accuracy of the electronic red packet are improved, and the electronic red packet is not affected by the upgrading of the instant messaging software.
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 flowchart of an electronic red envelope monitoring method according to an embodiment of the present disclosure;
FIG. 2 is a diagram illustrating a tree data structure of layout features of an electronic red envelope message according to an embodiment of the present application;
fig. 3 is a schematic flowchart of an electronic red envelope monitoring method according to a second embodiment of the present application;
fig. 4 is a schematic flowchart of an electronic red envelope monitoring method according to a second embodiment of the present application;
fig. 5 is a schematic flowchart of an electronic red envelope monitoring method according to a third embodiment of the present application;
fig. 6 is a schematic flowchart of an electronic red envelope monitoring method according to a third embodiment of the present application;
fig. 7 is a schematic flowchart of an electronic red envelope monitoring method according to a fourth embodiment of the present application;
fig. 8 is a schematic operation flow diagram of an electronic red envelope application provided in the fourth embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic red packet monitoring device according to a fifth embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal device according to a sixth embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "comprises" and "comprising," and any variations thereof, in the description and claims of this application and the drawings described above, are intended to cover non-exclusive inclusions. For example, a process, method, or apparatus, product, or device that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, product, or device. Furthermore, the terms "first," "second," and "third," etc. are used to distinguish between different objects and are not used to describe a particular order.
Example one
The embodiment provides an electronic red packet monitoring method, which is applied to mobile terminals such as mobile phones, tablet computers, personal digital assistants and the like, and also applied to computing equipment such as desktop computers, notebooks, palm computers and the like which can run instant messaging software and receive instant messaging messages.
In a specific application, the instant messaging software is software for realizing online chat and communication by an instant messaging technology, for example, WeChat, QQ, Baidu HI, Skype, Gtalk, Xinlang UC, MSN, microblog, nailing, Paibao, and the like.
In one embodiment, the electronic red envelope monitoring method is applied to an Android (Android) terminal.
As shown in fig. 1, the method for monitoring an electronic red envelope provided by this embodiment includes:
step S101, when receiving a new instant communication message received/sent by the electronic red packet software, obtaining the layout characteristics of the new instant communication message.
In a specific application, only part of types of instant messaging software have electronic red packet receiving and sending functions, so that when a received new instant messaging message is received or sent by the electronic red packet software, the fact that the new instant messaging message is possibly an electronic red packet message can be preliminarily determined.
In a specific application, the instant messaging messages generally include various types of messages such as emoticons, pictures, videos, audios, texts, electronic red packets, character pictures and the like. The layout characteristics of different types of instant messaging messages are different. The electronic red packet message mainly comprises an electronic red packet picture, and the layout characteristics of the electronic red packet message are mainly the layout characteristics related to the electronic red packet picture. Therefore, by obtaining the layout characteristics of the new instant messaging message, whether the new instant messaging message is an electronic red packet message can be further judged.
And step S102, converting the layout characteristics of the new instant messaging message into a tree data structure.
In a particular application, a tree data structure is used to represent a one-to-many relationship between data elements, with the tree being a hierarchical structure defined in a branching relationship. A Node (Node) represents a data element in a tree, consisting of a relationship between data items and data elements; the Level of the Node (Level of Node) represents the branch number on the path from the root Node to a certain Node in the tree and is called the Level of the Node, the Level of the root Node is defined as 1, and the Level of the other nodes is equal to the Level of the parent Node plus 1; parent (Parent), the upper node of the node is called the Parent of the node.
In one embodiment, the layout characteristics include a hierarchy of nodes and a type of node.
In a specific application, the number of layout layers of the tree data structure converted from the layout features of different types of instant messaging messages is different from the type of each layer of layout.
As shown in fig. 2, a tree data structure of layout characteristics of an electronic red packet message received or sent by WeChat software based on the android system is exemplarily shown;
wherein, the root node is an electronic red packet View (View);
the hierarchy of leaf nodes comprises five layers, and the type of the node of the first layer sequentially comprises: linear layout, TextView, CheckBox, linear layout, View;
the types of the nodes of the second layer sequentially comprise: MaskLayout (layout), LinearLayout;
the types of the nodes of the third layer sequentially comprise: textView, LinearLayout;
the type of the fourth layer node comprises the following steps: linear layout, relative layout;
types of fifth level nodes include: TextView (electronic red envelope).
In a specific application, linear layout and relative layout belong to six basic layouts of an Android device, and the other four layouts are respectively: TableLayout, FrameLayout, Absolute layout, and GridLayout. The table layout is a subclass of linear layout, and the grid layout is a layout added after the android 4.0 version.
Step S103, traversing the tree data structure to judge whether the new instant communication message is an electronic red packet message.
In the specific application, only one path to the electronic red packet is identified through the tree-shaped data structure of the layout characteristics of the electronic red packet message, and if the tree-shaped data structure of the new instant messaging message is traversed according to the path to the electronic red packet and the electronic red packet is successfully identified, the new instant messaging message is the electronic red packet message.
And step S104, when the new instant communication message is an electronic red packet message, prompting that the electronic red packet is monitored.
In this embodiment, when it is determined that the received instant messaging message is an electronic red packet message, a prompt is sent, so that the user can know that the electronic red packet is monitored in time, and the user can prepare to perform electronic red packet robbing operation before the electronic red packet message is displayed.
In a specific application, the user may be prompted to detect the electronic red packet through any feasible human-computer interaction manner, for example, the user may be prompted by sending a notification message of text, picture, voice, or the like, specifically, the notification message may be a short message, a popup message, a special device prompt tone, a special ring tone, or the like.
In the embodiment, when a new instant messaging message received/sent by the electronic red packet software is received, the layout characteristic of the new instant messaging message is acquired, the layout characteristic of the new instant messaging message is converted into the tree-shaped data structure and traversed to judge whether the new instant messaging message is the electronic red packet message, when the new instant messaging message is the electronic red packet message, the electronic red packet is prompted to be monitored, the electronic red packet can be rapidly, efficiently and accurately monitored in a mode of traversing the tree-shaped data structure, and the prompt is timely sent, so that the monitoring speed and the monitoring accuracy of the electronic red packet are improved, and the electronic red packet is not influenced by the upgrading of the instant messaging software.
Example two
As shown in fig. 3, in the present embodiment, the step S103 in the first embodiment includes:
and S301, traversing the tree data structure according to a traversal path corresponding to the electronic red packet message.
In a specific application, the traversal path corresponding to the electronic red packet message is a path capable of identifying the electronic red packet in a tree data structure converted from the layout characteristics of the electronic red packet message. Only one path to the electronic red packet is identified through the tree data structure of the layout characteristics of the electronic red packet message, the type of the operating system of the terminal, the version of the operating system or the version of instant messaging software used for receiving/transmitting the electronic red packet message are different, and the hierarchy of the nodes of the tree data structure of the layout characteristics of the electronic red packet message and the type of the nodes of each hierarchy are different. For example, in the tree data structure of the layout characteristics of the electronic red packet message received or transmitted by the android system-based wechat software shown in fig. 2, the path identified to the electronic red packet is the path represented by bold and oblique fonts, electronic red packet View → linear layout → TextView electronic red packet.
Step S302, judging whether the new instant communication message is an electronic red packet message or not according to the layout characteristics of each traversed node.
In a specific application, since the hierarchy and the type of the node of each node on the path where the electronic red packet can be identified are fixed, whether the new instant messaging message is the electronic red packet message can be judged according to whether the hierarchy and the type of the node of each traversed node conform to the node characteristics of the electronic red packet message.
As shown in fig. 4, in one embodiment, step S302 includes:
step S401, sequentially judging whether the type of the traversed node of each hierarchy is the same as that of the node of the corresponding hierarchy of the electronic red envelope message.
In the specific application, traversing nodes of each level of the tree-shaped data structure of the new instant messaging message in sequence according to the path capable of identifying the electronic red packet, respectively judging whether the type of each node is the same as that of the corresponding node of the electronic red packet, if so, continuously judging the node of the next level, if not, directly ending traversal, and judging that the new instant messaging message is not the electronic red packet message.
Step S402, when the types of the nodes of all the traversed levels are the same as the types of the nodes of the corresponding levels of the electronic red packet message, judging that the new instant communication message is the electronic red packet message;
step S403, when the type of the traversed node at any hierarchy is different from the type of the node at the corresponding hierarchy of the electronic red envelope message, determining that the new instant messaging message is not the electronic red envelope message.
In one embodiment, step S302 includes:
step S3021, determining whether the type of the traversed first-level node is the same as the type of the first-level node of the electronic red envelope message; when the type of the node of the first hierarchy is different from the type of the node of the first hierarchy of the electronic red envelope message, the step S3022 is entered; when the type of the node of the first hierarchy is the same as the type of the node of the first hierarchy of the electronic red envelope message, the step S3023 is entered;
step S3022, ending traversal, and determining that the new instant messaging message is not an electronic red packet message;
step S3023, determining whether the type of the traversed second level node is the same as the type of the second level node of the electronic red envelope message; when the type of the node of the second hierarchy is different from the type of the node of the second hierarchy of the electronic red envelope message, entering step S3022; when the type of the node of the second hierarchy is the same as the type of the node of the second hierarchy of the electronic red envelope message, the step S3024 is entered;
step S3024, determining whether the type of the traversed node of the third hierarchy is the same as the type of the node of the third hierarchy of the electronic red envelope message; when the type of the node of the third hierarchy is different from the type of the node of the third hierarchy of the electronic red envelope message, the step S3022 is entered; when the type of the node of the third hierarchy is the same as the type of the node of the third hierarchy of the electronic red envelope message, the step S3025 is entered;
… … and so on;
step S302N, judging whether the type of the traversed node of the Nth level is the same as that of the node of the Nth level of the electronic red packet message; when the type of the node of the nth hierarchy is different from the type of the node of the nth hierarchy of the electronic red envelope message, entering step S3022; when the type of the node of the Nth level is the same as that of the node of the Nth level of the electronic red packet message, judging that the new instant communication message is the electronic red packet message;
and N is the maximum level number of the tree-shaped data structure corresponding to the new instant messaging message.
In a specific application, the manner of traversing the tree data structure may be: and traversing the tree-shaped data structure according to the sequence of the traversal path corresponding to the electronic red packet message, or traversing the tree-shaped data structure according to the reverse sequence of the traversal path corresponding to the electronic red packet message. When the reverse-order traversal mode is adopted, the last level of the traversal path is traversed to the first level in sequence.
In the embodiment, the tree-shaped data structure formed by converting the layout characteristics of the new instant messaging message is traversed by adopting the tree-shaped data structure traversal mode according to the traversal path corresponding to the electronic red packet message, so that whether the new instant messaging message is the electronic red packet message can be quickly and accurately determined.
EXAMPLE III
As shown in fig. 5, in the present embodiment, step S102 in the first embodiment includes:
step S501, when a new instant communication message is received, acquiring the item view type of the new instant communication message.
In a specific application, the item view type refers to the type of ItemView (item view), and generally includes the name of the message sending or receiving software and the related characteristics of the message sent by the software, for example, the item view type of the instant messaging message sent by the WeChat includes the WeChat name and the related characteristics of the WeChat data.
As shown in fig. 6, in one embodiment, step S501 includes:
step S601, when a new instant messaging message is received, calling a structure of a list view control and a new view (makeAndAddAddView) method;
step S602, calling an acquisition view (obtainView) method through the structure and the new view method to acquire the item view type of the new instant messaging message.
In a specific application, the makeandadd view method refers to a method function for constructing or adding a view in a ListView control as a name, and the obatiniview method refers to a method function for acquiring a view called and executed by the makeandadd view method.
Step S502, judging whether the new instant communication message is a message received/sent by the electronic red packet software according to the item view type of the new instant communication message.
In a specific application, the item view types of the instant messaging messages sent or received by different instant messaging software are different, for example, the item view type of the instant messaging message sent or received by the WeChat includes the WeChat name, and the item view type of the instant messaging message sent or received by the Payment treasure includes the Payment treasure name.
In one embodiment, the item view type includes a name of instant messenger receiving/sending the new instant messenger message.
In one embodiment, step S502 includes:
step S5021, judging whether the instant messaging software for receiving/sending the new instant messaging message is electronic red packet software or not according to the name of the instant messaging software for receiving/sending the new instant messaging message;
step S5022, when the instant messaging software for receiving/sending the new instant messaging message is electronic red packet software, the new instant messaging message is judged to be the message received/sent by the electronic red packet software.
Step S5021 includes:
judging whether the name of the instant messaging software for receiving/sending the new instant messaging message is the name of the electronic red packet software or not;
when the name of the instant messaging software for receiving/transmitting the new instant messaging message is the name of the electronic red packet software, judging that the instant messaging software for receiving/transmitting the new instant messaging message is the electronic red packet software; otherwise, judging that the instant communication software for receiving/transmitting the new instant communication message is not the electronic red packet software.
Step S503, when the item view type of the new instant communication message belongs to the item view type of the electronic red packet software, determining that the new instant communication message is a message received/sent by the electronic red packet software.
In a specific application, as long as the item view type of the new instant messaging message belongs to one of the item view types of any electronic red packet software, the new instant messaging message can be judged to be a message received/sent by the electronic red packet software.
In this embodiment, by determining whether the ItemView type of the new instant messaging message belongs to the ItemView type of the electronic red packet software, it may be quickly determined whether the new instant messaging message is a message received/transmitted by the electronic red packet software, so that the determination range may be narrowed, it may be preliminarily determined that the new instant messaging message may be the electronic red packet message, a determination basis is provided for subsequently and further accurately determining whether the new instant messaging message is the electronic red packet message, and when the item view type of the new instant messaging message does not belong to the item view type of the electronic red packet software, it may be determined that the new instant messaging message is not a message received/transmitted by the electronic red packet software, so that the subsequent determination step is not continuously performed, and the monitoring time is saved.
Example four
As shown in fig. 7, in an embodiment, step S501 in the third embodiment includes:
step S701, detecting whether the data of a list view (listview) control is updated;
step S702, when the data of the list view control is updated, judging that a new instant communication message is received; otherwise, judging that no new instant communication message is received.
In a specific application, typical instant messaging software such as WeChat, after a received instant messaging message (e.g., WeChat message) is an electronic red packet message, a self-contained electronic red packet application thereof sequentially starts and executes a push process, an activitythread, a listview, an imageview, a bitmap, and an electronic red packet manager operation, and finally generates an electronic red packet. The push process is used for pushing messages; activitythread is the main thread (UI thread) of the android application; the listview (list view) is a commonly used control in the android system, and can display data in a list form and display elements contained in content to be displayed in the list form; the main function of imageview is to display pictures, can be adapted to any layout, enables setting of aspect ratio, maximum height, maximum width of the displayed pictures, and can provide scaling and shading operations; the Bitmap is one of the most important classes for image processing in the android system, can acquire information of an image file, performs operations such as image cutting, rotation and scaling, and can save the image file in a specified format; the electronic red envelope manager is used for generating the electronic red envelope message after the electronic red envelope picture is generated.
As shown in fig. 8, an exemplary operation flow diagram illustrating an electronic red packet application generating an electronic red packet is shown, where the operation flow is sequentially electronic red packet message (1. receive electronic red packet message) → push process (2.notifyrece, message push) → activitythread (3.activitythread, activitythread thread to red packet manager, and a detection window operation is performed between the electronic red packet message and the red packet manager, that is, a UI (user interface) thread) → listview (4. obtaiview, detection message update) → imageview (5. updatable view, update red packet thumbnail) → bitmap (6.CheckLM, check red packet thumbnail feature) → electronic red packet manager (electronic red packet acceleration).
In this embodiment, by monitoring the listview control in the process of generating the electronic red packet by the electronic red packet application, when the listview operation is executed, whether the data of the listview control is updated or not is detected, and it can be timely and effectively determined that a new instant messaging message is received.
In a specific application, the data of the listview control comprises all data displayed in a list form for displaying the electronic red packet message.
In the embodiment, the update of the instant messaging message can be timely and effectively detected by monitoring the operation of the listview control in the process of generating the electronic red packet by the electronic red packet application.
EXAMPLE five
The present embodiment provides an electronic red envelope monitoring apparatus, which is used to execute the method steps in the first, second or third embodiment, and the electronic red envelope monitoring apparatus may be a software program apparatus in a mobile terminal such as a mobile phone, a tablet computer, a personal digital assistant, or a computing device such as a desktop computer, a notebook computer, a palm computer, which can run an instant messaging software and receive an instant messaging message.
In one embodiment, the electronic red packet monitoring device is a software program device of an Android (Android) terminal.
As shown in fig. 9, the electronic red packet monitoring apparatus 9 provided in this embodiment includes:
a layout feature acquiring module 901, configured to acquire, when a new instant messaging message received/sent by electronic red packet software is received, a layout feature of the new instant messaging message;
a conversion module 902, configured to convert the layout characteristics of the new instant messaging message into a tree data structure;
a judging module 903, configured to traverse the tree data structure to judge whether the new instant messaging message is an electronic red packet message;
and a prompting module 904, configured to prompt that the electronic red packet is monitored when the new instant messaging message is an electronic red packet message.
In one embodiment, the determining module 903 comprises:
the traversal unit is used for traversing the tree-shaped data structure according to a traversal path corresponding to the electronic red packet message;
and the judging unit is used for judging whether the new instant communication message is the electronic red packet message or not according to the layout characteristics of each traversed node.
In one embodiment, the determining unit is specifically configured to:
sequentially judging whether the type of the traversed node of each hierarchy is the same as that of the node of the corresponding hierarchy of the electronic red envelope message;
when the types of the traversed nodes of all levels are the same as the types of the nodes of the corresponding levels of the electronic red packet message, judging that the new instant communication message is the electronic red packet message;
and when the type of the traversed node of any hierarchy is different from the type of the node of the corresponding hierarchy of the electronic red packet message, judging that the new instant messaging message is not the electronic red packet message.
In one embodiment, the electronic red envelope monitoring apparatus 9 further includes:
the view type acquisition module is used for acquiring the item view type of a new instant communication message when the new instant communication message is received;
the message judging module is used for judging whether the new instant communication message is a message received/sent by the electronic red packet software according to the item view type of the new instant communication message;
and the message judging module is also used for judging that the new instant communication message is a message received/sent by the electronic red packet software when the item view type of the new instant communication message belongs to the item view type of the electronic red packet software.
In one embodiment, the view type obtaining module includes:
the first calling unit is used for calling the structure of the list view control and a new view method when a new instant communication message is received;
and the second calling unit is used for calling the view acquisition method through the structure and the new view method so as to acquire the item view type of the new instant messaging message.
In one embodiment, the electronic red envelope monitoring apparatus 9 further includes:
the updating detection module is used for detecting whether the data of the list view control is updated or not;
and the message judgment module is used for judging that a new instant communication message is received when the data of the list view control is updated.
In the embodiment, when a new instant messaging message received/sent by the electronic red packet software is received, the layout characteristic of the new instant messaging message is acquired, the layout characteristic of the new instant messaging message is converted into the tree-shaped data structure and traversed to judge whether the new instant messaging message is the electronic red packet message, when the new instant messaging message is the electronic red packet message, the electronic red packet is prompted to be monitored, the electronic red packet can be rapidly, efficiently and accurately monitored in a mode of traversing the tree-shaped data structure, and the prompt is timely sent, so that the monitoring speed and the monitoring accuracy of the electronic red packet are improved, and the electronic red packet is not influenced by the upgrading of the instant messaging software.
EXAMPLE six
As shown in fig. 10, the present embodiment provides a terminal device, which includes: a processor 100, a memory 101, and a computer program 102, such as an electronic red packet monitoring program, stored in the memory 101 and operable on the processor 100. The processor 100, when executing the computer program 102, implements the steps in the above-mentioned embodiments of the electronic red packet monitoring method, such as the steps S101 to S104 shown in fig. 1. Alternatively, the processor 100, when executing the computer program 102, implements the functions of each module/unit in each device embodiment described above, for example, the functions of the modules 901 to 904 shown in fig. 9.
Illustratively, the computer program 102 may be partitioned into one or more modules/units that are stored in the memory 101 and executed by the processor 100 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 102 in the terminal device 10. For example, the computer program 102 may be divided into a layout feature obtaining module, a converting module, a determining module, and a prompting module, and the specific functions of each module are as follows:
the layout characteristic acquisition module is used for acquiring the layout characteristics of a new instant messaging message when receiving the new instant messaging message received/sent by the electronic red packet software;
the conversion module is used for converting the layout characteristics of the new instant messaging message into a tree data structure;
the judging module is used for traversing the tree-shaped data structure to judge whether the new instant communication message is an electronic red packet message;
and the prompting module is used for prompting that the electronic red packet is monitored when the new instant communication message is the electronic red packet message.
The terminal device 10 may be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The terminal device may include, but is not limited to, a processor 100, a memory 101. Those skilled in the art will appreciate that fig. 10 is merely an example of a terminal device 10 and does not constitute a limitation of terminal device 10 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 100 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 101 may be an internal storage unit of the terminal device 10, such as a hard disk or a memory of the terminal device 10. The memory 101 may also be an external storage device of the terminal device 10, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 10. Further, the memory 101 may also include both an internal storage unit and an external storage device of the terminal device 10. The memory 101 is used for storing the computer program and other programs and data required by the terminal device. The memory 101 may also be used to temporarily store data that has been output or is to be output.
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 function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform 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 above-mentioned apparatus 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 will 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 computer 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/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another apparatus, 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.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned 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 envelope monitoring method, comprising:
when receiving a new instant communication message received/sent by electronic red packet software, acquiring the layout characteristics of the new instant communication message;
converting the layout characteristics of the new instant messaging message into a tree data structure;
traversing the tree data structure to judge whether the new instant messaging message is an electronic red packet message;
and when the new instant communication message is the electronic red packet message, prompting to monitor the electronic red packet.
2. The method of claim 1, wherein traversing the tree data structure to determine whether the new instant messaging message is an electronic red envelope message comprises:
traversing the tree-shaped data structure according to a traversal path corresponding to the electronic red packet message;
and judging whether the new instant communication message is an electronic red packet message or not according to the layout characteristics of each traversed node.
3. The electronic red envelope monitoring method of claim 2, wherein the layout characteristics include a hierarchy of nodes and a type of node.
4. The method of claim 3, wherein determining whether the new instant messaging message is an electronic red envelope message according to the traversed layout features of each node comprises:
sequentially judging whether the type of the traversed node of each hierarchy is the same as that of the node of the corresponding hierarchy of the electronic red envelope message;
when the types of the traversed nodes of all levels are the same as the types of the nodes of the corresponding levels of the electronic red packet message, judging that the new instant communication message is the electronic red packet message;
and when the type of the traversed node of any hierarchy is different from the type of the node of the corresponding hierarchy of the electronic red packet message, judging that the new instant messaging message is not the electronic red packet message.
5. The method for monitoring electronic red envelope according to any one of claims 1 to 4, wherein when receiving a new instant messaging message received/sent by electronic red envelope software, before obtaining layout characteristics of the new instant messaging message, the method comprises:
when a new instant messaging message is received, acquiring an item view type of the new instant messaging message;
judging whether the new instant communication message is a message received/sent by electronic red packet software or not according to the item view type of the new instant communication message;
and when the item view type of the new instant messaging message belongs to the item view type of the electronic red packet software, judging that the new instant messaging message is a message received/sent by the electronic red packet software.
6. The electronic red envelope monitoring method of claim 5, wherein obtaining the item view type of the new instant messaging message when the new instant messaging message is received comprises:
when a new instant communication message is received, calling the structure of the list view control and a new view method;
and calling an acquisition view method through the construction and the new view method to acquire the item view type of the new instant messaging message.
7. The electronic red envelope detection method of claim 5, wherein when a new instant messaging message is received, before the item view type of the new instant messaging message is obtained, comprising:
detecting whether the data of the list view control is updated or not;
and when the data of the list view control is updated, judging that a new instant communication message is received.
8. An electronic red envelope monitoring device, comprising:
the layout characteristic acquisition module is used for acquiring the layout characteristics of a new instant messaging message when receiving the new instant messaging message received/sent by the electronic red packet software;
the conversion module is used for converting the layout characteristics of the new instant messaging message into a tree data structure;
the judging module is used for traversing the tree-shaped data structure to judge whether the new instant communication message is an electronic red packet message;
and the prompting module is used for prompting that the electronic red packet is monitored when the new instant communication message is the electronic red packet message.
9. A terminal device 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.
CN201811038490.9A 2018-09-06 2018-09-06 Electronic red packet monitoring method and device and terminal equipment Active CN110881002B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811038490.9A CN110881002B (en) 2018-09-06 2018-09-06 Electronic red packet monitoring method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811038490.9A CN110881002B (en) 2018-09-06 2018-09-06 Electronic red packet monitoring method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN110881002A true CN110881002A (en) 2020-03-13
CN110881002B CN110881002B (en) 2022-06-21

Family

ID=69727511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811038490.9A Active CN110881002B (en) 2018-09-06 2018-09-06 Electronic red packet monitoring method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN110881002B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160034441A1 (en) * 2014-07-29 2016-02-04 Board Of Regents, The University Of Texas System Systems, apparatuses and methods for generating a user interface
CN105550540A (en) * 2014-10-31 2016-05-04 中国移动通信集团江苏有限公司 Detection method and device for homogenization application
CN105975144A (en) * 2016-04-25 2016-09-28 维沃移动通信有限公司 Information processing method and apparatus
CN106201161A (en) * 2014-09-23 2016-12-07 北京三星通信技术研究有限公司 The display packing of electronic equipment and system
CN106296140A (en) * 2016-08-06 2017-01-04 广东欧珀移动通信有限公司 A kind of method and device of the sub-red packet of antitheft generating
CN106327166A (en) * 2016-09-12 2017-01-11 广东欧珀移动通信有限公司 Information processing method and mobile terminal
CN106909544A (en) * 2015-12-22 2017-06-30 北京奇虎科技有限公司 A kind of data processing method and device
CN106982394A (en) * 2017-03-30 2017-07-25 腾讯科技(深圳)有限公司 The unread message reminding method and device of a kind of network direct broadcasting
CN107368298A (en) * 2017-06-22 2017-11-21 努比亚技术有限公司 A kind of text control simulation touch control method, terminal and computer-readable recording medium
CN107861655A (en) * 2017-11-01 2018-03-30 平安科技(深圳)有限公司 Control matching process, device, computer equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160034441A1 (en) * 2014-07-29 2016-02-04 Board Of Regents, The University Of Texas System Systems, apparatuses and methods for generating a user interface
CN106201161A (en) * 2014-09-23 2016-12-07 北京三星通信技术研究有限公司 The display packing of electronic equipment and system
CN105550540A (en) * 2014-10-31 2016-05-04 中国移动通信集团江苏有限公司 Detection method and device for homogenization application
CN106909544A (en) * 2015-12-22 2017-06-30 北京奇虎科技有限公司 A kind of data processing method and device
CN105975144A (en) * 2016-04-25 2016-09-28 维沃移动通信有限公司 Information processing method and apparatus
CN106296140A (en) * 2016-08-06 2017-01-04 广东欧珀移动通信有限公司 A kind of method and device of the sub-red packet of antitheft generating
CN106327166A (en) * 2016-09-12 2017-01-11 广东欧珀移动通信有限公司 Information processing method and mobile terminal
CN106982394A (en) * 2017-03-30 2017-07-25 腾讯科技(深圳)有限公司 The unread message reminding method and device of a kind of network direct broadcasting
CN107368298A (en) * 2017-06-22 2017-11-21 努比亚技术有限公司 A kind of text control simulation touch control method, terminal and computer-readable recording medium
CN107861655A (en) * 2017-11-01 2018-03-30 平安科技(深圳)有限公司 Control matching process, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110881002B (en) 2022-06-21

Similar Documents

Publication Publication Date Title
CN110378593B (en) Communication status for application of compliance policy updates
CN109102264B (en) Electronic red packet detection method and device and terminal equipment
CN108399072B (en) Application page updating method and device
CN110912803B (en) IM message transmission method and terminal
CA3061623C (en) File sending in instant messaging applications
WO2022095699A1 (en) Underlying data management method and system, and computer-readable storage medium
US20160283069A1 (en) Visual Representation of an Email Chain
KR20230007268A (en) Task processing method, task processing device, electronic device, storage media and computer program
EP4050867A2 (en) Method and apparatus of synchronizing data, electronic device and storage medium
CN110018845B (en) Metadata version comparison method and device
US10700920B2 (en) System and methods for decomposing events from managed infrastructures that includes a floating point unit
WO2022068183A1 (en) Configuration generation method and apparatus, electronic device and storage medium
CN108062401B (en) Application recommendation method and device and storage medium
CN109614592B (en) Text processing method and device, storage medium and electronic equipment
CN110881002B (en) Electronic red packet monitoring method and device and terminal equipment
CN110881001B (en) Electronic red packet detection method, system and terminal equipment
US12001400B2 (en) Method and apparatus for synchronizing file
CN110912801A (en) Method, system and terminal device for detecting electronic red packet
CN110880999B (en) Electronic red packet identification method and device and terminal equipment
CN113807056A (en) Method, device and equipment for correcting error of document name sequence number
CN114627343A (en) Deep learning model training method, image processing method, device and equipment
CN115686229A (en) Expression input method, expression input device and computer program storage medium
CN110875869B (en) Red packet identification method, system and terminal equipment
CN111178014A (en) Method and device for processing business process
CN110874444B (en) URL conversion model building method and device and electronic equipment

Legal Events

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