A message monitoring method and device

A monitoring method and technology of a monitoring device are applied in the computer field and can solve the problems of high system maintenance cost, high code logic complexity and high coupling degree.

Active Publication Date: 2019-05-03
KINGSOFT
View PDF6 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] It can be seen that the process of listening to the target broadcast message is completed in the host object, resulting i

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A message monitoring method and device
  • A message monitoring method and device
  • A message monitoring method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0039] In the prior art, when it is necessary to monitor the target broadcast message sent by the system when the user clicks the Home button, the process of monitoring is completed in the host object, which will lead to a relatively high logical complexity and coupling degree of the code in the host object. High, making the maintenance cost of the system higher.

[0040] In order to solve the above problems, the present invention provides a message monitoring...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention provides a message monitoring method and device applied to host objects, used for generating a monitoring instance of a preset monitoring class, wherein the preset monitoring class is a subclass of a broadcast receiver class of the system; wherein the preset monitoring class is used for detecting a target broadcast message triggered when the Home key is clicked, thepreset monitoring class realizes reference to a host object through a preset monitoring callback interface, and registration is performed on a monitoring instance according to a registration method of the preset monitoring class so as to start monitoring the target broadcast message. Processing based on the above, the host object can interact with a preset monitoring class through a preset monitoring callback interface; according to the embodiment of the invention, the monitoring of the target broadcast message is realized according to the preset monitoring class, that is, the monitoring processing of the target broadcast message does not need to be completed in the host object, so that the logic complexity and the coupling degree of codes in the host object can be reduced, and the maintenance cost of the system is reduced.

Description

technical field [0001] The present invention relates to the technical field of computers, in particular to a message monitoring method and device. Background technique [0002] In a terminal installed with an Android (Android) system, a Home (start) button is usually configured. When the user clicks the Home button, the system can jump to the home screen interface to facilitate user operations. The application program in the terminal can detect whether the user clicks the Home button, and when it is detected that the user clicks the Home button, the application program can perform corresponding processing. For example, when the application program runs to a certain interface and detects that the user clicks the Home button, the application program can record that the user leaves the current interface by clicking the Home button. [0003] The existing message monitoring method may include the following steps: define a broadcast receiver class for the Home key in the host obj...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/54G06F11/30
Inventor 廖彦文
Owner KINGSOFT
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products