CN108287863B - Message record cleaning method and device - Google Patents

Message record cleaning method and device Download PDF

Info

Publication number
CN108287863B
CN108287863B CN201711241063.6A CN201711241063A CN108287863B CN 108287863 B CN108287863 B CN 108287863B CN 201711241063 A CN201711241063 A CN 201711241063A CN 108287863 B CN108287863 B CN 108287863B
Authority
CN
China
Prior art keywords
cleaning
message
message record
application program
records
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
CN201711241063.6A
Other languages
Chinese (zh)
Other versions
CN108287863A (en
Inventor
袁辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711241063.6A priority Critical patent/CN108287863B/en
Publication of CN108287863A publication Critical patent/CN108287863A/en
Application granted granted Critical
Publication of CN108287863B publication Critical patent/CN108287863B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors

Abstract

The embodiment of the invention provides a method and a device for cleaning message records, which are applied to a mobile terminal, wherein the method comprises the following steps: determining an application program which needs to clear message records; extracting a message record of the application program; searching a message record cleaning rule corresponding to the application program from a user behavior database; and clearing the message records by adopting the message record clearing rule. The embodiment of the invention can automatically clear the message record of the application program based on the user behavior, simplifies the user operation and improves the user experience.

Description

Message record cleaning method and device
Technical Field
The present invention relates to the field of mobile terminal technologies, and in particular, to a method and an apparatus for cleaning a message record.
Background
With the rapid development of the mobile internet technology, the communication social software becomes an indispensable tool for users, and is widely used in the work and life of the users, so that the information exchange between the users and other people becomes more convenient and rapid.
On the back of convenience and rapidity, privacy of users communicating with others based on these tools, such as message logging with family, and work with company associates, becomes increasingly important. Therefore, the user may occasionally clear these message records from others, resulting in privacy leakage. In addition, the message records of the communication software comprise files such as pictures, voice, videos and the like, the files are stored in the mobile phone, and as time increases, if a user does not clean the files in time, a large amount of storage space of the mobile phone is occupied, and the use of the mobile phone is influenced.
At present, if a user wants to clear a message record, the user needs to manually search the message record one by one and then execute a deleting operation, which wastes time and energy. Moreover, some users may forget to delete important records related to themselves or omit some records due to manual operation, and the records may be seen by others, so that privacy or confidentiality in work is leaked, thereby causing unnecessary troubles to work and life of themselves.
Disclosure of Invention
The embodiment of the invention provides a method for clearing message records, which aims to solve the problems that time and energy are wasted and safety is poor when a user clears the message records.
In order to solve the technical problem, the invention is realized as follows: a method for clearing message records is applied to a mobile terminal and comprises the following steps:
determining an application program which needs to clear message records;
extracting a message record of the application program;
searching a message record cleaning rule corresponding to the application program from the user behavior database;
and clearing the message records by adopting the message record clearing rule.
In a first aspect, an embodiment of the present invention further provides a device for clearing a message record, which is applied to a mobile terminal, and includes:
the determining module is used for determining an application program which needs to clear the message record;
the extraction module is used for extracting the message record of the application program;
the searching module is used for searching a message record cleaning rule corresponding to the application program from a user behavior database;
and the clearing module is used for clearing the message records by adopting the message record clearing rule.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the method for clearing message records as described above.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the message record cleaning method as described above.
In the embodiment of the invention, when the mobile terminal automatically cleans the message records of the application program, the application program needing to clean the message records is determined, the message records of the application program are extracted, then the message record cleaning rule corresponding to the application program is searched from the user behavior database, and finally the message records are cleaned by adopting the message record cleaning rule. Therefore, the mobile terminal can automatically clear the message records of the application program based on the user behavior, and the user does not need to manually clear the message records one by one, so that the user operation is simplified, and the user experience is improved.
Drawings
FIG. 1 is a flow chart of steps of a method for scrubbing message records according to an embodiment of the present invention;
FIG. 2 is a block diagram of a message record cleaning apparatus according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a method for clearing message records according to the present invention is shown, where the method is applied to a mobile terminal, and the mobile terminal includes a user behavior database, and the user behavior database includes an application program and a message record clearing rule corresponding to the application program.
In the embodiment of the present invention, the mobile terminal may have the following characteristics:
(1) on a hardware architecture, a device has a central processing unit, a memory, an input unit and an output unit, that is, the device is often a microcomputer device having a communication function. In addition, various input modes such as a keyboard, a mouse, a touch screen, a microphone, a camera and the like can be provided, and input can be adjusted as required. Meanwhile, the equipment often has a plurality of output modes, such as a telephone receiver, a display screen and the like, and can be adjusted according to needs;
(2) on a software system, the device must have an operating system, such as Windows Mobile, Symbian, Palm, Android, iOS, and the like. Meanwhile, the operating systems are more and more open, and personalized application programs developed based on the open operating system platforms are infinite, such as a communication book, a schedule, a notebook, a calculator, various games and the like, so that the requirements of personalized users are met to a great extent;
(3) in terms of communication capacity, the device has flexible access mode and high-bandwidth communication performance, and can automatically adjust the selected communication mode according to the selected service and the environment, thereby being convenient for users to use. The equipment can support GSM, WCDMA, CDMA2000, TDSCDMA, Wi-Fi, WiMAX and the like, thereby being suitable for various systems of networks, not only supporting voice services, but also supporting various wireless data services;
(4) in the aspect of function use, the equipment focuses more on humanization, individuation and multi-functionalization. With the development of computer technology, devices enter a human-centered mode from a device-centered mode, and the embedded computing, control technology, artificial intelligence technology, biometric authentication technology and the like are integrated, so that the human-oriented purpose is fully embodied. Due to the development of software technology, the equipment can be adjusted and set according to individual requirements, and is more personalized. Meanwhile, the device integrates a plurality of software and hardware, and the function is more and more powerful.
The mobile terminal comprises a user behavior database which comprises an application program and a message record cleaning rule corresponding to the application program. Specifically, one or more applications installed in the mobile terminal may be an application installed by the system itself, or may be a third-party application installed by the user itself. The application program can be a social communication application program, such as a QQ, WeChat, strange, and the like.
The application program has a contact list, generally speaking, the number of contacts in the contact list is not only one, and for different contacts, a user may delete all message records of some contacts and delete part of message records of some contacts, so in the application, different message record cleaning modes can be adopted for different contacts to automatically clean the message records.
In a preferred embodiment of the present invention, the user behavior database further includes: the contact person, the cleaning mode, the cleaning time interval and the cleaning keyword label of the message record corresponding to the contact person; the cleaning mode comprises a first cleaning mode and a second cleaning mode, the first cleaning mode comprises the step of cleaning all message records, and the second cleaning mode comprises the step of cleaning the message records with cleaning keyword labels.
Specifically, because the message record cleaning modes adopted for different contacts are different, the user behavior database further includes the contact, the cleaning mode of the message record of the contact, each cleaning time of the message record of the contact, the cleaning time interval of the message record of the contact, and the cleaning keyword tag.
Wherein the cleaning mode comprises a first cleaning mode and a second cleaning mode. The first cleaning mode is to clean all message records of a certain contact in a certain application program, for example, all message records of a contact B in an application program A; the second cleaning mode is to clean the message records with the corresponding cleaning keyword tags in all the message records of a certain contact in a certain application program, for example, the message records containing the cleaning keyword tag "company" in all the message records of the contact C in the application program a, assuming that there are 3 message records of the contact C: the "contract between company a and company b", "moral road 518 number", "rainy day, remembered with umbrella", and "contract between company a and company b" contain the cleaning keyword label "company", and therefore, only the message record is deleted from the 3 message records.
The clearing time refers to the time for the user to clear the message record of a certain contact in a certain application each time, for example, if the user performs 50 clearing operations on the message record of the contact B in the application a, 50 clearing times are recorded respectively.
The cleaning time interval refers to how often a user cleans a contact in an application for a message record, for example, from the second cleaning of the message record, when the user cleans the message record of the contact B in the application a, the time interval from the last cleaning of the message record is recorded, and if the user has 50 message record cleaning operations, 49 time intervals are recorded.
In a preferred embodiment of the present invention, the user behavior database is generated by:
acquiring a message record of historical cleaning of a user;
detecting a cleaning mode corresponding to the cleaned message record;
if the cleaning mode corresponding to the cleaned message record is the first cleaning mode, storing the contact, the cleaning time interval and the application program corresponding to the cleaned message record into the user behavior database;
and if the cleaning mode corresponding to the cleaned message record is the second cleaning mode, storing the contact, the cleaning time interval, the cleaning keyword tag and the application program corresponding to the cleaned message record into the user behavior database.
In practical application, the mobile terminal monitors the operation behavior of the user and records the message record clearing behavior of the application program aiming at the communication social class into the user behavior database. For example, when the user starts the application a and clears all the message records of the contact B, the information of the application, the contact, the message record clearing mode corresponding to the contact, the clearing time, and the clearing time interval (if the user clears the message record of the contact for the first time, there is no message record) is respectively recorded in the user behavior database.
For another example, after the user starts the application a, part of the message records in all the message records of the contact C are cleared, at this time, the mobile terminal generates one or more keyword tags according to the content of the message records cleared by the user and displays the keyword tags to the user, the user selects one or more keyword tags from the keyword tags as clearing keyword tags, and then the mobile terminal records the information of the application, the contact, the message record clearing mode corresponding to the contact, the clearing time, and the clearing time interval (if the user clears the message record of the contact for the first time, the item is not present), and the clearing keyword tags in the user behavior database respectively.
The method specifically comprises the following steps:
step 101, determining an application program needing to clear message records;
in practical application, when the condition of cleaning the message records is met, the mobile terminal can automatically determine an application program which needs to clean the message records, and which contact person in the application program and which cleaning mode are adopted to clean the message records.
In a preferred embodiment of the present invention, the step of determining the application program which needs to clean the message record includes:
when the preset cleaning time is up, determining the application program corresponding to the preset cleaning time as the application program needing to clean the message record; the preset cleaning time is the cleaning time with the largest occurrence frequency counted aiming at all the cleaning times of the application program;
or;
when a preset cleaning time interval is reached, determining an application program corresponding to the preset cleaning time interval as an application program needing to clean message records; the preset cleaning time interval is the cleaning time interval with the largest occurrence frequency counted aiming at all the cleaning time intervals of the application program.
Specifically, the mobile terminal records the relevant information about each message record cleaning of the user to the user behavior database, so that the cleaning time with the largest occurrence number and/or the cleaning time interval with the largest occurrence number can be respectively counted for different contacts of different applications or different contacts of the same application.
For example, the mobile terminal records 100 actions of the user to clear the message record of contact B in application a, where the actions occur 30 times at 10 pm to 11 pm, 50 times at 11 pm to 12 pm, 5 times at 9 pm to 10 pm, 12 pm to 1 pm, and 10 times at 5 pm. And analyzing that the behavior of clearing the record of the user mainly occurs during 10 o 'clock to 12 o' clock in the evening, the percentage is 80%, and the behavior in the period is concentrated on 11 o 'clock and 10 o' clock, so that the time point of the mobile terminal for automatically clearing the message record of the contact B in the application A for the user is set to 11 o 'clock and 10 o' clock. During this period, the system will still save the record for the user to manually clear, and the clearing time is dynamically adjusted by the accumulation of the saved records. For example, if the user manually cleans contact B records 100 times later, focusing primarily on 5 pm to 7 pm, the mobile terminal will automatically adjust the cleaning time to 5 pm to 7 pm.
In addition to the purge time, the mobile terminal also counts the purge time interval of the purge message record. For example, the mobile terminal records 100 times of actions of cleaning the message record of the contact B in the application a by the user, 10 times occur within 6 hours, 80 times occur within 10 to 12 hours, 10 times other than 12 hours are, most of the actions are concentrated in 10 to 12 hours, and are concentrated in about 11 hours within the time period, and the mobile terminal determines that the cleaning time interval of the message record of the contact B in the application a is cleaned once every 11 hours according to the analysis result.
During the period that the mobile terminal automatically cleans the message records of the contact B in the application program A for the user, the behavior of manually cleaning the message records of the contact B in the application program A each time of the user can be saved as the basis of analysis, the cleaning time and the cleaning time interval are dynamically adjusted, and the more the data volume is, the more accurate the analysis result is.
Therefore, in the embodiment of the present invention, each application has a corresponding cleaning time or cleaning time interval, and when the preset cleaning time is reached or the preset cleaning time interval passes, it can be determined that the application currently needing to clean the message record and the corresponding contact needing to clean the message record in the application are present.
Continuing with the above example, when 11 o 'clock and 10 o' clock are reached, the mobile terminal may automatically clear the message record of the contact B in the application a, or may automatically clear the message record of the contact B in the application a 11 hours after the last time the message record was cleared.
Step 102, extracting the message record of the application program;
because the message record for the application is stored on the mobile terminal, the message record for the application can be extracted from the mobile terminal after the application is determined.
103, searching a message record cleaning rule corresponding to the application program from a user behavior database;
specifically, the cleaning rule is which cleaning mode is used to clean the message record, and the cleaning rule is in one-to-one correspondence with the application program and the contact person in the application program, so that after the application program and the contact person in the application program are determined, which cleaning mode is used to clean the message record can be known.
It should be noted that, the second cleaning mode is to perform partial cleaning on the message record, so that the contact person who partially cleans the message record also has a corresponding relationship with the cleaning keyword tag. That is, the cleaning keyword tag is different for different contacts.
And 104, cleaning the message record by adopting the message record cleaning rule.
After the cleaning rule of the message record is determined, the message record can be cleaned by using the cleaning rule.
In a preferred embodiment of the present invention, the step of cleaning the message record by using the message record cleaning rule includes:
extracting the message records of the contact persons to be cleaned from the message records;
searching a cleaning mode of a message record corresponding to the contact;
if the found cleaning mode is the first cleaning mode, cleaning all the message records of the contact;
and if the searched cleaning mode is the second cleaning mode, extracting the message record with the cleaning keyword label from the message records of the contact to be cleaned, and cleaning the message record with the cleaning keyword label.
Specifically, the message records of all the contacts in the application program are stored on the mobile terminal, so that the message records of the contacts needing to be cleaned are extracted from the message records of all the contacts, then the cleaning mode corresponding to the contacts is searched, and if the cleaning mode corresponding to the contacts is the first cleaning mode, all the message records of the contacts can be cleaned; if the cleaning mode corresponding to the contact is the second cleaning mode, then the cleaning keyword tag corresponding to the contact is searched, and finally, the message records containing the cleaning keyword tag in all the message records of the contact are cleaned.
For example, when "company service partner selects" the content between company a and company b in the chat log of contact C in the user manual cleaning application a, the mobile terminal marks "company", "a", "b", "service partner" tags on the piece of content, and the user selects one or more tags to clean the content. Assuming that the user selects "company" as the cleaning keyword tag, the message record containing the keyword "company" will be automatically cleaned by the mobile terminal the next time the chat record of the contact C in the application a is automatically cleaned.
In the embodiment of the invention, when the mobile terminal automatically cleans the message records of the application program, the application program needing to clean the message records is determined, the message records of the application program are extracted, then the message record cleaning rule corresponding to the application program is searched from the user behavior database, and finally the message records are cleaned by adopting the message record cleaning rule. Therefore, the mobile terminal can automatically clear the message records of the application program based on the user behavior, and the user does not need to manually clear the message records one by one, so that the user operation is simplified, and the user experience is improved.
Moreover, the user behavior database in the application can dynamically adjust the time and the cleaning rule for automatically cleaning the message records according to the user behaviors, so that the message records can be cleaned more accurately and more accord with the habits of users.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 2, a block diagram of a structure of an embodiment of a device for clearing message records of the present invention is shown, and is applied to a mobile terminal, and specifically includes the following modules:
a determining module 201, configured to determine an application program that needs to clean a message record;
an extraction module 202, configured to extract a message record of the application;
the searching module 203 is used for searching a message record cleaning rule corresponding to the application program from a user behavior database;
a cleaning module 204, configured to clean the message record by using the message record cleaning rule.
In a preferred embodiment of the present invention, the user behavior database further includes: the method comprises the following steps that an application program and a message record cleaning rule corresponding to the application program, a contact person and a cleaning mode, cleaning time and a cleaning time interval of a message record corresponding to the contact person, and a cleaning keyword label are obtained; the cleaning mode comprises a first cleaning mode and a second cleaning mode, the first cleaning mode comprises the step of cleaning all message records, and the second cleaning mode comprises the step of cleaning the message records with cleaning keyword labels.
In a preferred embodiment of the present invention, the apparatus further comprises:
the acquisition module is used for acquiring a message record of historical cleaning of a user;
the detection module is used for detecting a cleaning mode corresponding to the cleaned message record;
the saving module is used for saving the contact, the cleaning time interval and the application program corresponding to the cleaned message record to the user behavior database if the cleaning mode corresponding to the cleaned message record is the first cleaning mode;
and the saving module is further used for saving the contact, the cleaning time interval, the cleaning keyword tag and the application program corresponding to the cleaned message record to the user behavior database if the cleaning mode corresponding to the cleaned message record is the second cleaning mode.
In a preferred embodiment of the present invention, the determining module is further configured to:
when the preset cleaning time is up, determining the application program corresponding to the preset cleaning time as the application program needing to clean the message record; the preset cleaning time is the cleaning time with the largest occurrence frequency counted aiming at all the cleaning times of the application program;
or;
when a preset cleaning time interval is reached, determining an application program corresponding to the preset cleaning time interval as an application program needing to clean message records; the preset cleaning time interval is the cleaning time interval with the largest occurrence frequency counted aiming at all the cleaning time intervals of the application program.
In a preferred embodiment of the present invention, the cleaning module includes:
the to-be-cleaned message record extraction submodule is used for extracting the message record of the to-be-cleaned contact from the message record;
the cleaning pattern matching module is used for searching a cleaning pattern of the message record corresponding to the contact;
the message record clearing submodule is used for clearing all the message records of the contact if the found clearing mode is the first clearing mode;
and the message record clearing submodule is also used for extracting the message record with the cleaning keyword tag from the message records of the contact to be cleaned if the searched cleaning mode is the second cleaning mode, and cleaning the message record with the cleaning keyword tag.
The mobile terminal provided by the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiment of fig. 1, and is not described herein again in order to avoid repetition. In the embodiment of the invention, when the mobile terminal automatically cleans the message records of the application program, the application program needing to clean the message records is determined, the message records of the application program are extracted, then the message record cleaning rule corresponding to the application program is searched from the user behavior database, and finally the message records are cleaned by adopting the message record cleaning rule. Therefore, the mobile terminal can automatically clear the message records of the application program based on the user behavior, and the user does not need to manually clear the message records one by one, so that the user operation is simplified, and the user experience is improved.
Figure 3 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 300 includes, but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, processor 310, and power supply 311. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 3 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Among others, a processor 310 for
Determining an application program which needs to clear message records;
extracting a message record of the application program;
searching a message record cleaning rule corresponding to the application program from a user behavior database;
cleaning the message records by adopting the message record cleaning rule;
in the embodiment of the invention, when the mobile terminal automatically cleans the message records of the application program, the application program needing to clean the message records is determined, the message records of the application program are extracted, then the message record cleaning rule corresponding to the application program is searched from the user behavior database, and finally the message records are cleaned by adopting the message record cleaning rule. Therefore, the mobile terminal can automatically clear the message records of the application program based on the user behavior, and the user does not need to manually clear the message records one by one, so that the user operation is simplified, and the user experience is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 301 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 310; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 301 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 301 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 302, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output as sound. Also, the audio output unit 303 may also provide audio output related to a specific function performed by the mobile terminal 300 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 304 is used to receive audio or video signals. The input Unit 304 may include a Graphics Processing Unit (GPU) 3041 and a microphone 3042, and the Graphics processor 3041 processes image data of a still picture or video obtained by an image capturing apparatus (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 306. The image frames processed by the graphic processor 3041 may be stored in the memory 309 (or other storage medium) or transmitted via the radio frequency unit 301 or the network module 302. The microphone 3042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 301 in case of the phone call mode.
The mobile terminal 300 also includes at least one sensor 305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 3061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 3061 and/or a backlight when the mobile terminal 300 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 305 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The Display unit 306 may include a Display panel 3061, and the Display panel 3061 may be configured in the form of a liquid Crystal Display (L acquired Crystal Display, L CD), an Organic light Emitting Diode (O L ED), or the like.
The user input unit 307 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 307 includes a touch panel 3071 and other input devices 3072. The touch panel 3071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 3071 (e.g., operations by a user on or near the touch panel 3071 using a finger, a stylus, or any suitable object or attachment). The touch panel 3071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 310, and receives and executes commands sent by the processor 310. In addition, the touch panel 3071 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 307 may include other input devices 3072 in addition to the touch panel 3071. Specifically, the other input devices 3072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein.
Further, the touch panel 3071 may be overlaid on the display panel 3061, and when the touch panel 3071 detects a touch operation on or near the touch panel, the touch operation is transmitted to the processor 310 to determine the type of the touch event, and then the processor 310 provides a corresponding visual output on the display panel 3061 according to the type of the touch event. Although the touch panel 3071 and the display panel 3061 are shown as two separate components in fig. 3 to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 3071 and the display panel 3061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 308 is an interface through which an external device is connected to the mobile terminal 300. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 308 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 300 or may be used to transmit data between the mobile terminal 300 and external devices.
The memory 309 may be used to store software programs as well as various data. The memory 309 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 309 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 310 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 309 and calling data stored in the memory 309, thereby performing overall monitoring of the mobile terminal. Processor 310 may include one or more processing units; preferably, the processor 310 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 310.
The mobile terminal 300 may further include a power supply 311 (such as a battery) for supplying power to various components, and preferably, the power supply 311 may be logically connected to the processor 310 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the mobile terminal 300 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 310, a memory 309, and a computer program stored in the memory 309 and capable of running on the processor 310, where the computer program is executed by the processor 310 to implement each process of the foregoing message record cleaning method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned message record cleaning method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (7)

1. A method for clearing message records is applied to a mobile terminal, and is characterized in that the method comprises the following steps:
determining an application program which needs to clear message records;
extracting a message record of the application program;
searching a message record cleaning rule corresponding to the application program from a user behavior database;
cleaning the message records by adopting the message record cleaning rule;
wherein the user behavior database further comprises: the method comprises the following steps that an application program and a message record cleaning rule corresponding to the application program, a contact person and a cleaning mode, cleaning time and a cleaning time interval of a message record corresponding to the contact person, and a cleaning keyword label are obtained; the cleaning mode comprises a first cleaning mode and a second cleaning mode, the first cleaning mode comprises the step of cleaning all message records, and the second cleaning mode comprises the step of cleaning the message records with cleaning keyword labels;
the user behavior database is generated by the following method:
acquiring a message record of historical cleaning of a user;
detecting a cleaning mode corresponding to the cleaned message record;
if the cleaning mode corresponding to the cleaned message record is the first cleaning mode, storing the contact, the cleaning time interval and the application program corresponding to the cleaned message record into the user behavior database;
and if the cleaning mode corresponding to the cleaned message record is the second cleaning mode, storing the contact, the cleaning time interval, the cleaning keyword tag and the application program corresponding to the cleaned message record into the user behavior database.
2. The method of claim 1, wherein the step of determining an application that needs to clean up a message record comprises:
when the preset cleaning time is up, determining the application program corresponding to the preset cleaning time as the application program needing to clean the message record; the preset cleaning time is the cleaning time with the largest occurrence frequency counted aiming at all the cleaning times of the application program;
or;
when a preset cleaning time interval is reached, determining an application program corresponding to the preset cleaning time interval as an application program needing to clean message records; the preset cleaning time interval is the cleaning time interval with the largest occurrence frequency counted aiming at all the cleaning time intervals of the application program.
3. The method of claim 1, wherein the step of scrubbing the message record using the message record scrubbing rule comprises:
extracting the message records of the contact persons to be cleaned from the message records;
searching a cleaning mode of a message record corresponding to the contact;
if the found cleaning mode is the first cleaning mode, cleaning all the message records of the contact;
and if the searched cleaning mode is the second cleaning mode, extracting the message record with the cleaning keyword label from the message records of the contact to be cleaned, and cleaning the message record with the cleaning keyword label.
4. A device for cleaning message records is applied to a mobile terminal, and is characterized in that the device comprises:
the determining module is used for determining an application program which needs to clear the message record;
the extraction module is used for extracting the message record of the application program;
the searching module is used for searching a message record cleaning rule corresponding to the application program from a user behavior database;
the cleaning module is used for cleaning the message records by adopting the message record cleaning rule;
wherein the user behavior database further comprises: the method comprises the following steps that an application program and a message record cleaning rule corresponding to the application program, a contact person and a cleaning mode, cleaning time and a cleaning time interval of a message record corresponding to the contact person, and a cleaning keyword label are obtained; the cleaning mode comprises a first cleaning mode and a second cleaning mode, the first cleaning mode comprises the step of cleaning all message records, and the second cleaning mode comprises the step of cleaning the message records with cleaning keyword labels;
the device further comprises:
the acquisition module is used for acquiring a message record of historical cleaning of a user;
the detection module is used for detecting a cleaning mode corresponding to the cleaned message record;
the saving module is used for saving the contact, the cleaning time interval and the application program corresponding to the cleaned message record to the user behavior database if the cleaning mode corresponding to the cleaned message record is the first cleaning mode;
and the saving module is further used for saving the contact, the cleaning time interval, the cleaning keyword tag and the application program corresponding to the cleaned message record to the user behavior database if the cleaning mode corresponding to the cleaned message record is the second cleaning mode.
5. The apparatus of claim 4, wherein the determining module is further configured to:
when the preset cleaning time is up, determining the application program corresponding to the preset cleaning time as the application program needing to clean the message record; the preset cleaning time is the cleaning time with the largest occurrence frequency counted aiming at all the cleaning times of the application program;
or;
when a preset cleaning time interval is reached, determining an application program corresponding to the preset cleaning time interval as an application program needing to clean message records; the preset cleaning time interval is the cleaning time interval with the largest occurrence frequency counted aiming at all the cleaning time intervals of the application program.
6. The apparatus of claim 4, wherein the cleaning module comprises:
the to-be-cleaned message record extraction submodule is used for extracting the message record of the to-be-cleaned contact from the message record;
the cleaning pattern matching module is used for searching a cleaning pattern of the message record corresponding to the contact;
the message record clearing submodule is used for clearing all the message records of the contact if the found clearing mode is the first clearing mode;
and the message record clearing submodule is also used for extracting the message record with the cleaning keyword tag from the message records of the contact to be cleaned if the searched cleaning mode is the second cleaning mode, and cleaning the message record with the cleaning keyword tag.
7. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the method of cleaning up message records according to any one of claims 1 to 3.
CN201711241063.6A 2017-11-30 2017-11-30 Message record cleaning method and device Active CN108287863B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711241063.6A CN108287863B (en) 2017-11-30 2017-11-30 Message record cleaning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711241063.6A CN108287863B (en) 2017-11-30 2017-11-30 Message record cleaning method and device

Publications (2)

Publication Number Publication Date
CN108287863A CN108287863A (en) 2018-07-17
CN108287863B true CN108287863B (en) 2020-07-21

Family

ID=62831823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711241063.6A Active CN108287863B (en) 2017-11-30 2017-11-30 Message record cleaning method and device

Country Status (1)

Country Link
CN (1) CN108287863B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111445210B (en) * 2020-03-27 2023-10-20 咪咕文化科技有限公司 Account cleaning method and device, electronic equipment and storage medium
CN112966171A (en) * 2021-03-29 2021-06-15 北京京东乾石科技有限公司 Method and device for cleaning page information

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7117533B1 (en) * 2001-08-03 2006-10-03 Mcafee, Inc. System and method for providing dynamic screening of transient messages in a distributed computing environment
CN101483697A (en) * 2009-02-23 2009-07-15 惠州Tcl移动通信有限公司 Mobile communication terminal and message automatic cleaning method thereof
CN102904797A (en) * 2012-09-21 2013-01-30 上海量明科技发展有限公司 Method and system for implementing mutual information recording in instant messaging
CN105739955A (en) * 2014-12-09 2016-07-06 中兴通讯股份有限公司 Method and device of clearing application programs of terminal
CN105791552A (en) * 2016-02-25 2016-07-20 北京奇虎科技有限公司 Short message processing method, short message processing device and mobile terminal
CN105893600A (en) * 2016-04-20 2016-08-24 乐视控股(北京)有限公司 Method and device for cleaning up useless files based on mobile terminal
CN106341315A (en) * 2016-10-24 2017-01-18 北京奇虎科技有限公司 Text message cleaning method, apparatus and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7117533B1 (en) * 2001-08-03 2006-10-03 Mcafee, Inc. System and method for providing dynamic screening of transient messages in a distributed computing environment
CN101483697A (en) * 2009-02-23 2009-07-15 惠州Tcl移动通信有限公司 Mobile communication terminal and message automatic cleaning method thereof
CN102904797A (en) * 2012-09-21 2013-01-30 上海量明科技发展有限公司 Method and system for implementing mutual information recording in instant messaging
CN105739955A (en) * 2014-12-09 2016-07-06 中兴通讯股份有限公司 Method and device of clearing application programs of terminal
CN105791552A (en) * 2016-02-25 2016-07-20 北京奇虎科技有限公司 Short message processing method, short message processing device and mobile terminal
CN105893600A (en) * 2016-04-20 2016-08-24 乐视控股(北京)有限公司 Method and device for cleaning up useless files based on mobile terminal
CN106341315A (en) * 2016-10-24 2017-01-18 北京奇虎科技有限公司 Text message cleaning method, apparatus and mobile terminal

Also Published As

Publication number Publication date
CN108287863A (en) 2018-07-17

Similar Documents

Publication Publication Date Title
CN108845853B (en) Application program starting method and mobile terminal
CN107547741B (en) Information processing method and device and computer readable storage medium
US10951754B2 (en) Method for responding to incoming call by means of fingerprint recognition, storage medium, and mobile terminal
CN108616448B (en) Information sharing path recommendation method and mobile terminal
CN107168626B (en) Information processing method and device and computer readable storage medium
CN108984066B (en) Application icon display method and mobile terminal
CN110618969A (en) Icon display method and electronic equipment
CN108037934B (en) Method and device for updating application program
CN110096203B (en) Screenshot method and mobile terminal
CN109669656B (en) Information display method and terminal equipment
CN108287863B (en) Message record cleaning method and device
CN108540649B (en) Content display method and mobile terminal
JP2021532492A (en) Character input method and terminal
CN107967086B (en) Icon arrangement method and device for mobile terminal and mobile terminal
CN107765954B (en) Application icon updating method, mobile terminal and server
CN107231469B (en) Terminal application management method, terminal and computer readable storage medium
CN107770449A (en) continuous shooting method, electronic equipment and storage medium
CN109922199B (en) Contact information processing method and terminal
CN108989554B (en) Information processing method and terminal
CN108228357B (en) Memory cleaning method and mobile terminal
CN108319409B (en) Application program control method and mobile terminal
CN108170360B (en) Control method of gesture function and mobile terminal
CN107766544B (en) Information management method, terminal and computer readable storage medium
CN106371948B (en) A kind of data back up method and terminal device
CN108845821A (en) Application program update method, terminal and computer readable storage medium

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