CN110851304A - Backup method and electronic equipment - Google Patents

Backup method and electronic equipment Download PDF

Info

Publication number
CN110851304A
CN110851304A CN201911103190.9A CN201911103190A CN110851304A CN 110851304 A CN110851304 A CN 110851304A CN 201911103190 A CN201911103190 A CN 201911103190A CN 110851304 A CN110851304 A CN 110851304A
Authority
CN
China
Prior art keywords
target
data
category
target data
application program
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.)
Pending
Application number
CN201911103190.9A
Other languages
Chinese (zh)
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 CN201911103190.9A priority Critical patent/CN110851304A/en
Publication of CN110851304A publication Critical patent/CN110851304A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Abstract

The invention provides a backup method and electronic equipment, wherein the method comprises the following steps: determining whether target data of a target application program meets preset screening conditions, wherein the screening conditions correspond to the target application program one to one; if the target data meet the preset screening condition, backing up the target data to obtain backed-up target data; and if target input in a target control of the target application program is received, determining data corresponding to the target input from the backed-up target data. In the method, the target data is backed up as long as the target data meets the preset screening condition, so that the user does not need to edit again when the application program exits abnormally, and the user does not need to perform manual backup, thereby ensuring that the human-computer interaction is smoother, and improving the interaction efficiency and the user experience.

Description

Backup method and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a backup method and an electronic device.
Background
With the increase of social applications on electronic devices, users often use electronic devices to interact with others through text, voice, videos, and the like on the social applications.
In the above scenario requiring a large amount of data input by the user, if situations such as application program flash back, electronic device downtime, user misoperation occur, input data such as text, recorded voice or captured small video currently being edited by the user are lost, and the user has to edit, record or shoot again, which seriously affects the interaction efficiency of the user; in addition, when a user uses such a social application to communicate with a friend, if the user encounters an interested content and wants to save the content, such as an emoticon, a picture, etc. in a wechat, the user generally needs to keep the corresponding picture. If the user has more interesting contents, frequent saving operations are required. The method for saving the backup affects the smoothness and the interaction efficiency of human-computer interaction, and the user experience is poor.
Disclosure of Invention
The invention provides a backup method and electronic equipment, and aims to solve the problem that the existing backup saving method influences the smoothness and the interaction efficiency of human-computer interaction.
In a first aspect, an embodiment of the present invention provides a backup method, which is applied to an electronic device, and the method includes:
determining whether target data of a target application program meets preset screening conditions, wherein the screening conditions correspond to the target application program one to one;
if the target data meet the preset screening condition, backing up the target data to obtain backed-up target data;
if target input in a target control of the target application program is received, determining data corresponding to the target input from the backed-up target data;
and displaying data corresponding to the target input.
In a second aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes:
the device comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining whether target data of a target application program meet preset screening conditions, and the screening conditions are in one-to-one correspondence with the target application program;
the backup module is used for backing up the target data to obtain backed-up target data if the target data meets preset screening conditions;
a second determining module, configured to determine, if a target input to a target control of the target application is received, data corresponding to the target input from the backed-up target data;
and the display module is used for displaying the data corresponding to the target input.
In a third aspect, an embodiment of the present invention provides an electronic device, 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 backup method according to the first aspect.
In a fourth 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 backup method according to the first aspect.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, whether target data of a target application program meet preset screening conditions is determined, wherein the screening conditions correspond to the target application program one by one; if the target data meet the preset screening condition, backing up the target data to obtain backed-up target data; and if the target input in the target control of the target application program is received, determining data corresponding to the target input from the backed-up target data, and displaying the data corresponding to the target input. In the method, as long as the target data meet the preset screening condition, the target data are backed up, so that the data input by the user cannot be lost under the condition that the application program is abnormally exited when the user inputs the data, the user does not need to edit again, and the smoothness and the interaction efficiency of the input data are improved; moreover, the target data can be automatically backed up according to the screening conditions, so that manual backup is not needed when a user operates a target application program, human-computer interaction is smoother, and interaction efficiency and user experience are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 shows one of the flow charts of the backup method provided in the embodiments of the present invention;
FIG. 2 is a diagram illustrating a system setup page with a backup function enabled according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an exemplary opening of a backup function in an application setup page according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating backed-up target data according to an embodiment of the present invention;
FIG. 5 is a second flowchart of a backup method provided in the embodiment of the present invention;
fig. 6 shows one of the configuration block diagrams of the electronic apparatus provided in the embodiment of the present invention;
fig. 7 shows a second block diagram of the electronic device according to the embodiment of the invention;
fig. 8 is a schematic diagram of a hardware structure of an electronic device 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, there is shown one of the flowcharts of the backup method provided in the embodiment of the present invention. The method is applied to an electronic device, and the electronic device described in the embodiment of the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The backup method may specifically include the steps of:
step 101, determining whether target data of a target application program meets preset screening conditions, wherein the screening conditions are in one-to-one correspondence with the target application program.
In the embodiment of the present invention, the target application refers to an application that starts a backup function, and the target data refers to data related to the target application, such as data input by a user in the target application, data output from the target application, and data received by the target application. The determination method of the target application program may be: starting a backup function in a system setting page, displaying an application program list in the electronic equipment after starting, and selecting a target application program to be backed up from the list; it can also be: and starting a backup function in a setting page of the application program needing to be backed up or a corresponding control on the application program page, so that the application program is determined as a target application program. Further, after determining the target application, a time period for backup may also be set, for example, to backup all target data during the spring festival.
Referring to fig. 2, a schematic diagram of the function of starting backup on a system setup page in the embodiment of the present invention is shown. As shown in fig. 2, after the user enters the system setting page and starts the backup function, a list of application programs that can be backed up, such as application program one, application program two, and application program three, is displayed, so that the user can select a target application program that needs to be backed up.
Referring to fig. 3, a schematic diagram of the function of starting backup on an application setting page in the embodiment of the present invention is shown. As shown in fig. 3, in the setting page of the first application, by operating the button shown in S1, the backup function of the first application is started, that is, it is determined that the target application needing backup is the first application.
After determining the target application program to be backed up, because the data related to the target application program is of a large variety, a screening condition for backup may be preset, where the screening condition is set for the target application program, that is, the screening condition corresponds to the target application program one to one. For example, the backup category is selected by a selection operation of a setting page in the target application. Specifically, the selecting of the backup category may be selecting data input by a backup user in a target application page, or selecting data received by a backup target application. After the backup category is determined, the data category to be backed up may be further set, for example, all text contents or all picture contents are backed up.
After the screening condition of the backup is set, the backup work is formally started. Specifically, in the process of operating the electronic device by the user, the electronic device detects target data related to a target application program and determines whether the data meet preset screening conditions. For example, if the target application program determined by the user is WeChat and the preset screening condition is data input by the user in a WeChat page, the electronic device determines that the data currently input by the user meets the preset screening condition once detecting that the user performs data input operation in the WeChat.
And step 102, if the target data meet preset screening conditions, backing up the target data to obtain backed-up target data.
In the embodiment of the present invention, if it is determined that the target data in step 101 meets the preset screening condition, the target data is backed up. The target data may be backed up in the system memory, or in order to reduce the system operation pressure, the target data may also be backed up in the external memory, for example, backed up in the memory card, or backed up in the cloud, etc.
Step 103, if a target input in a target control of the target application program is received, determining data corresponding to the target input from the backed-up target data.
In the embodiment of the present invention, the target control of the target application may be a function option, a suspension frame, and the like set on the target application interface, and the target control may be set with a function option for the backup data, for example, a button for starting the backup function may be set, and a filter condition setting button, a display button, and the like for the backup data may also be set. And if the user inputs a target aiming at the display button of the target control, the electronic equipment selects data corresponding to the target input from the backed-up target data and displays the data.
Specifically, if the filtering condition preset by the user is to backup data input by the user in the target application program page, then the data corresponding to the target input is input by all users starting from the backup function started by the target application program; if the filtering condition preset by the user is to backup data of a target type received by the target application program, for example, the target type is a picture and a video, then the data corresponding to the target input is all the picture data and the video data received from the start of the backup function of the target application program.
And 104, displaying data corresponding to the target input.
In the embodiment of the invention, when the user inputs the target aiming at the display button of the target control, the electronic equipment selects the data corresponding to the target input from the backed-up target data and displays the data. Specifically, the backup data may be displayed in the corresponding output area in reverse order of time, so that the user may view the target data selected for backup by himself.
If the data corresponding to the target input is the data input by the user in the target application program page, the data input by all the users is shown at this time from the start of the backup function of the target application program. Therefore, if the user operates the target application program and encounters the situations of application program flash back and electronic equipment downtime, data input by the user cannot be lost, and the data input by the user before the application program exits can be displayed through target input of the user on the target control when the user opens the target application program again. Further, the displayed backed-up target data can be edited, and the user can refill the backed-up target data in the original input area by copying the backed-up target data.
If the data corresponding to the target input is the picture data and the video data received by the target application program, the user can select the display category, and the electronic equipment performs display based on the selected display category. If the display type selected by the user is a picture, displaying all picture data received by the application program from the start of the backup function of the target application program in the corresponding output area; and if the display type selected by the user is the video, displaying all video data received by the application program from the start of the backup function of the target application program in the corresponding output area. Therefore, if the user chats with the friend by using the target application program, the emotion packet data in all picture formats and video formats sent by the friend can be directly backed up in the electronic equipment of the user, and the condition that the user needs to frequently perform storage operation to store the emotion packet to influence the smoothness and the interaction efficiency of interaction with the friend is avoided.
Referring to fig. 4, a schematic diagram illustrating the backed-up target data in the embodiment of the present invention is shown. As shown in fig. 4, after the target input is made in the target control, the selection options showing the categories, such as "text", "audio", "picture" and "video" options in the virtual box shown in S2 in fig. 4, are displayed on the interface of the target application. After the user selects a specific option, the corresponding backed-up target data will be displayed in reverse time order in the output box shown in S3.
In summary, in the embodiment of the present invention, it is determined whether target data of a target application program meets a preset screening condition, where the screening condition corresponds to the target application program one to one; if the target data meet the preset screening condition, backing up the target data to obtain backed-up target data; and if the target input in the target control of the target application program is received, determining data corresponding to the target input from the backed-up target data, and displaying the data corresponding to the target input. In the method, as long as the target data meet the preset screening condition, the target data are backed up, so that the data input by the user cannot be lost under the condition that the application program is abnormally exited when the user inputs the data, the user does not need to edit again, and the smoothness and the interaction efficiency of the input data are improved; moreover, the target data can be automatically backed up according to the screening conditions, so that manual backup is not needed when a user operates a target application program, human-computer interaction is smoother, and interaction efficiency and user experience are improved.
Referring to fig. 5, a second flowchart of a backup method provided in the embodiment of the present invention is shown, where the method is applied to an electronic device, and specifically includes the following steps.
Step 201, receiving a setting operation for a backup category, where the backup category includes: at least one of a first category and a second category; the first category is used for screening data input in the target application program, and the second category is used for screening data received by the target application program.
In the embodiment of the present invention, first, the screening condition of the backup of the target application needs to be determined. The filtering conditions include a plurality of backup categories, such as a first category for filtering data entered in the target application and a second category for filtering data received by the target application.
And the setting operation of the backup category comprises a selection operation of the backup category. At least one of the first category and the second category may be selected.
The setting operation of the backup category may further include selecting a data type to be backed up after selecting the backup category. The data categories may include text, audio, video, pictures, other, and the like.
Step 202, taking the backup category as a screening condition.
In the embodiment of the present invention, after determining the backup category, the backup category is used as a screening condition, and the electronic device may determine the target data to be backed up according to the screening condition.
Step 203, determining whether target data of a target application program meets preset screening conditions, wherein the screening conditions are in one-to-one correspondence with the target application program.
In the embodiment of the present invention, step 203 may refer to step 101, and is not described herein again.
And 204, if the category of the target data is the character subcategory and the target data comprises preset keywords, backing up the target data.
In an embodiment of the present invention, the first category or the second category includes: at least one of a text subcategory, a picture subcategory, an audio subcategory, and a video subcategory.
If the backup category, i.e., the first category or the second category, is selected, and then the type of data to be backed up, i.e., at least one of the text sub-category, the picture sub-category, the audio sub-category, and the video sub-category, is also selected, the electronic device will screen the target data to be backed up according to the type of data to be backed up.
After selecting the backup category, the content for screening may be set. If the backup category selected by the user includes a text subcategory, a keyword input box is displayed after the backup category is selected to determine a target keyword for filtering. In addition, the data size of the text content containing the target keyword, which needs to be backed up, can be set, and the data size can be selected from natural segments, whole texts and the like. For example, if the backup data amount is set to be the whole text, the electronic device may perform the whole backup of the whole text including the target keyword.
In this way, when the target data belongs to the character subcategory, the electronic equipment detects whether the target data comprises preset target keywords or not, and if so, the target data is backed up.
For example, if the target application is WeChat, the backup category set by the user is the second category, the category of the target data set by the user is the character subcategory, the target keyword for filtering is "spring festival", and the backup data amount is the whole text, the electronic device will perform the whole backup on all texts including "spring festival" in the data received by the WeChat.
Step 205, if it is determined that the category of the target data is the image subcategory and the similarity between the target data and the preset reference image data is greater than or equal to a preset first threshold, backing up the target data.
In the embodiment of the present invention, if the backup category selected by the user includes the picture subcategory after the backup category is selected, an upload option of the picture is displayed to determine a reference picture for filtering.
In this way, when the target data belongs to the image subcategory, the electronic device detects the similarity between the target data and the reference image, and if the similarity is greater than or equal to the preset first threshold, the target data is backed up.
For example, if the target application is WeChat, the backup category set by the user is the second category, the category of the target data set by the user is the image subcategory, and the reference image used for screening is the relevant image of the cat. Then, the electronic device will backup all the pictures with similarity greater than or equal to the first threshold value with the reference picture in the pictures received by the WeChat, and then the electronic device is most likely to backup all the pictures including cats.
In step 206, if it is determined that the category of the target data is an audio subcategory and the similarity between the target data and the preset reference audio data is greater than or equal to a preset second threshold, the target data is backed up.
In the embodiment of the invention, if the backup category selected by the user comprises the audio subcategory after the backup category is selected, the uploading option of the audio is displayed so as to determine the reference audio for screening.
In this way, when the target data belongs to the audio subcategory, the electronic device detects the similarity between the target data and the reference audio, and if the similarity is greater than or equal to the preset second threshold, the target data is backed up.
Specifically, the similarity between the target data and the reference audio may be detected by means of voiceprint matching. Different audios have different voiceprints, and the similarity of the different audios can be determined by acquiring the voiceprints among the different audios.
Step 207, if it is determined that the category of the target data is a video subcategory and the similarity between the target data and the preset reference video data is greater than or equal to a preset third threshold, backing up the target data.
In the embodiment of the invention, if the backup category selected by the user comprises the video subcategory after the backup category is selected, the uploading option of the video is displayed so as to determine the reference video for screening.
In this way, when the target data belongs to the video subcategory, the electronic device detects the similarity between the target data and the reference video, and if the similarity is greater than or equal to the preset second threshold, the target data is backed up.
Specifically, objects such as persons, animals, landscapes, and the like included in the video picture may be acquired, and then the similarity of the videos may be determined according to the similarity of the objects in the video picture.
By setting the data types of the backup categories, the backup target data can be selected more accurately, so that a user can quickly acquire required useful data from the backup data; in addition, the backup data is further screened in the mode, so that the backup data volume is greatly reduced, and the storage pressure of the electronic equipment is reduced.
Step 208, if a target input in a target control of the target application program is received, determining data corresponding to the target input from the backed-up target data.
In the embodiment of the present invention, step 208 may refer to step 103, which is not described herein again.
Step 209, showing the data corresponding to the target input.
In the embodiment of the present invention, step 209 may refer to step 104, which is not described herein again.
Optionally, after the backing up the target data, the method further includes:
and if the target application program exits abnormally when the user is detected to input data in the target application program, filling the backed-up target data into the corresponding input area after the target application program is restarted.
In the embodiment of the invention, if the user inputs data in the target application program, the target application program suddenly exits for various reasons, or the electronic device suddenly goes down and crashes, at this time, the user can restart the target application program. Because the input data of the user in the target application program is backed up, the electronic device can automatically fill the backed-up target data into the corresponding input area of the target application program. Therefore, the user can continue to perform input operation at the previous editing position, so that when the target application program exits abnormally, the user does not need to input data again, unnecessary repeated work is avoided, and the input efficiency is improved.
In summary, the backup method provided in the embodiment of the present invention has the beneficial effects of the backup method in fig. 1, and can select the target data to be backed up more accurately by setting the data type of the backup category, so that the user can quickly obtain the required useful data from the backup data; in addition, the backup data is further screened in such a way, so that the backup data volume is greatly reduced, and the storage pressure of the electronic equipment is reduced; and if the target application program exits abnormally when the user is detected to input data in the target application program, the target application program is filled with the backed-up target data into the corresponding input area after the target application program is restarted, so that the user does not need to input data again when the target application program exits abnormally, unnecessary repeated work is avoided, and the input efficiency is improved.
Referring to fig. 6, which is one of the structural block diagrams of the electronic device according to the embodiment of the present invention, the electronic device 300 may specifically include:
a first determining module 301, configured to determine whether target data of a target application satisfies a preset screening condition, where the screening condition corresponds to the target application one to one;
the backup module 302 is configured to backup the target data to obtain backed-up target data if the target data meets a preset screening condition;
a second determining module 303, configured to determine, if a target input in a target control of the target application is received, data corresponding to the target input from the backed-up target data;
and a display module 304, configured to display data corresponding to the target input.
The electronic device provided by the embodiment of the present invention can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
In this way, the electronic device provided by the embodiment of the present invention determines whether target data of a target application program meets a preset screening condition, where the screening condition corresponds to the target application program one to one; if the target data meet the preset screening condition, backing up the target data to obtain backed-up target data; and if the target input in the target control of the target application program is received, determining data corresponding to the target input from the backed-up target data, and displaying the data corresponding to the target input. In the method, as long as the target data meet the preset screening condition, the target data are backed up, so that the data input by the user cannot be lost under the condition that the application program is abnormally exited when the user inputs the data, the user does not need to edit again, and the smoothness and the interaction efficiency of the input data are improved; moreover, the target data can be automatically backed up according to the screening conditions, so that manual backup is not needed when a user operates a target application program, human-computer interaction is smoother, and interaction efficiency and user experience are improved.
Referring to fig. 7, a second block diagram of the electronic device according to the embodiment of the present invention is shown on the basis of fig. 6. The screening condition is preset and comprises the following modules:
a setting module 305, configured to receive a setting operation for a backup category, where the backup category includes: at least one of a first category and a second category; the first category is used for screening data input in the target application program, and the second category is used for screening data received by the target application program;
a screening condition determining module 306, configured to use the backup category as a screening condition.
The second determining module 303 includes:
a receiving submodule 3031, configured to receive an input of selecting a target display category from a target control of the target application, where the target display category is at least one of the backup categories;
the determining submodule 3032 is configured to determine, from the backed-up target data, data corresponding to the target display category.
The backup module 302 includes:
the first backup submodule 3021 is configured to backup the target data if the category of the target data is the text subcategory and the target data includes a preset keyword;
a second backup submodule 3022, configured to backup the target data if the category of the target data is the picture subcategory and a similarity between the target data and preset reference picture data is greater than or equal to a preset first threshold;
a third backup submodule 3023, configured to backup the target data if the category of the target data is an audio subcategory and a similarity between the target data and preset reference audio data is greater than or equal to a preset second threshold;
the fourth backup sub-module 3024 is configured to backup the target data if the category of the target data is a video sub-category and a similarity between the target data and preset reference video data is greater than or equal to a preset third threshold.
The electronic device 300 further comprises:
and the filling module is used for filling the backed-up target data into the corresponding input area after the target application program is restarted if the target application program exits abnormally when the data input by the user in the target application program is detected.
The electronic device provided in the embodiment of the present invention can implement each process implemented in the method embodiment of fig. 5, and is not described here again to avoid repetition.
The electronic device according to the embodiment of the present invention not only has the beneficial effects of the electronic device in fig. 6, but also can select the target data to be backed up more accurately by setting the data type of the backup category, so that the user can quickly obtain the required useful data from the backup data; in addition, the backup data is further screened in such a way, so that the backup data volume is greatly reduced, and the storage pressure of the electronic equipment is reduced; and if the target application program exits abnormally when the user is detected to input data in the target application program, the target application program is filled with the backed-up target data into the corresponding input area after the target application program is restarted, so that the user does not need to input data again when the target application program exits abnormally, unnecessary repeated work is avoided, and the input efficiency is improved.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device in which various embodiments of the present invention are implemented.
The electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, sound output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 8 does not constitute a limitation of the electronic device, and that the electronic device 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 electronic device 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.
Wherein, the processor 410 is configured to:
determining whether target data of a target application program meets preset screening conditions, wherein the screening conditions correspond to the target application program one to one;
if the target data meet the preset screening condition, backing up the target data to obtain backed-up target data;
if the target input in the target control of the target application program is received, determining data corresponding to the target input from the backed-up target data and controlling the display unit 406 to display the data.
In the embodiment of the invention, whether target data of a target application program meet preset screening conditions is determined, wherein the screening conditions correspond to the target application program one by one; if the target data meet the preset screening condition, backing up the target data to obtain backed-up target data; and if target input in a target control of the target application program is received, determining data corresponding to the target input from the backed-up target data. In the method, as long as the target data meet the preset screening condition, the target data are backed up, so that the data input by the user cannot be lost under the condition that the application program is abnormally exited when the user inputs the data, the user does not need to edit again, and the smoothness and the interaction efficiency of the input data are improved; moreover, the target data can be automatically backed up according to the screening conditions, so that manual backup is not needed when a user operates a target application program, human-computer interaction is smoother, and interaction efficiency and user experience are improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 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 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 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. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 402, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The sound output unit 403 may convert sound data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into a sound signal and output as sound. Also, the sound output unit 403 may also provide sound output related to a specific function performed by the electronic apparatus 400 (e.g., a call signal reception sound, a message reception sound, etc.). The sound output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive a sound or video signal. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into sound data. The processed voice data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The electronic device 400 also includes at least one sensor 405, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 4061 or backlight when the electronic apparatus 400 is moved to the ear. As one type of motion sensor, an 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 an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, 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 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch panel 4071 transmits the touch operation to the processor 410 to determine the category of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the category of the touch event. Although in fig. 8, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 408 is an interface for connecting an external device to the electronic apparatus 400. 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, a sound input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program 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 voice data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 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 410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs or modules stored in the memory 409 and calling data stored in the memory 409, thereby integrally monitoring the electronic device. Processor 410 may include one or more processing units; preferably, the processor 410 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 110.
The electronic device 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 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 electronic device 400 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when the computer program is executed by the processor 410, the processes of the display method embodiment are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
Based on the hardware structure of the electronic device, the embodiments of the present invention will be described in detail below.
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 display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated 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 (10)

1. A backup method applied to an electronic device is characterized by comprising the following steps:
determining whether target data of a target application program meets preset screening conditions, wherein the screening conditions correspond to the target application program one to one;
if the target data meet the preset screening condition, backing up the target data to obtain backed-up target data;
if target input in a target control of the target application program is received, determining data corresponding to the target input from the backed-up target data;
and displaying data corresponding to the target input.
2. The method of claim 1, wherein presetting the screening condition comprises the steps of:
receiving a setting operation for a backup category, wherein the backup category comprises: at least one of a first category and a second category; the first category is used for screening data input in the target application program, and the second category is used for screening data received by the target application program;
and taking the backup category as a screening condition.
3. The method of claim 2, wherein if a target input in a target control of the target application is received, determining data corresponding to the target input from the backed-up target data comprises:
receiving input of selecting a target display category from target controls of the target application program, wherein the target display category is at least one of the backup categories;
and determining data corresponding to the target display category from the backed-up target data.
4. The method of claim 2, wherein the first category or the second category comprises: at least one of a text subcategory, a picture subcategory, an audio subcategory, and a video subcategory; if the target data meet the preset screening condition, backing up the target data to obtain backed-up target data, including:
if the category of the target data is determined to be the character subcategory and the target data comprises preset keywords, backing up the target data;
if the type of the target data is determined to be the image subcategory and the similarity between the target data and preset reference image data is greater than or equal to a preset first threshold value, backing up the target data;
if the category of the target data is determined to be an audio subcategory and the similarity between the target data and preset reference audio data is greater than or equal to a preset second threshold value, backing up the target data;
if the category of the target data is determined to be a video subcategory and the similarity between the target data and the preset reference video data is greater than or equal to a preset third threshold, backing up the target data.
5. The method of claim 1, further comprising, after backing up the target data:
and if the target application program exits abnormally when the user is detected to input data in the target application program, filling the backed-up target data into the corresponding input area after the target application program is restarted.
6. An electronic device, characterized in that the electronic device comprises:
the device comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining whether target data of a target application program meet preset screening conditions, and the screening conditions are in one-to-one correspondence with the target application program;
the backup module is used for backing up the target data to obtain backed-up target data if the target data meets preset screening conditions;
a second determining module, configured to determine, if a target input to a target control of the target application is received, data corresponding to the target input from the backed-up target data;
and the display module is used for displaying the data corresponding to the target input.
7. The electronic device of claim 6, wherein presetting the filtering condition comprises:
a setting module, configured to receive a setting operation for a backup category, where the backup category includes: at least one of a first category and a second category; the first category is used for screening data input in the target application program, and the second category is used for screening data received by the target application program;
and the screening condition determining module is used for taking the backup category as a screening condition.
8. The electronic device of claim 7, wherein the second determining module comprises:
the receiving submodule is used for receiving input of selecting a target display category from a target control of the target application program, wherein the target display category is at least one of the backup categories;
and the determining submodule is used for determining data corresponding to the target display category from the backed-up target data.
9. The electronic device of claim 7, wherein the first category or the second category comprises: at least one of a text subcategory, a picture subcategory, an audio subcategory, and a video subcategory; the backup module includes:
the first backup submodule is used for backing up the target data if the category of the target data is determined to be the character subcategory and the target data comprises preset keywords;
the second backup submodule is used for backing up the target data if the type of the target data is determined to be the image subcategory and the similarity between the target data and preset reference image data is greater than or equal to a preset first threshold value;
the third backup submodule is used for backing up the target data if the category of the target data is determined to be an audio subcategory and the similarity between the target data and preset reference audio data is greater than or equal to a preset second threshold value;
and the fourth backup submodule is used for backing up the target data if the category of the target data is determined to be the video subcategory and the similarity between the target data and the preset reference video data is greater than or equal to a preset third threshold value.
10. The electronic device of claim 6, further comprising:
and the filling module is used for filling the backed-up target data into the corresponding input area after the target application program is restarted if the target application program exits abnormally when the data input by the user in the target application program is detected.
CN201911103190.9A 2019-11-12 2019-11-12 Backup method and electronic equipment Pending CN110851304A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911103190.9A CN110851304A (en) 2019-11-12 2019-11-12 Backup method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911103190.9A CN110851304A (en) 2019-11-12 2019-11-12 Backup method and electronic equipment

Publications (1)

Publication Number Publication Date
CN110851304A true CN110851304A (en) 2020-02-28

Family

ID=69600223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911103190.9A Pending CN110851304A (en) 2019-11-12 2019-11-12 Backup method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110851304A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1209569A1 (en) * 2000-04-12 2002-05-29 Annex Systems Incorporated Data backup/recovery system
US20080034018A1 (en) * 2006-08-04 2008-02-07 Pavel Cisler Managing backup of content
CN102789454A (en) * 2011-05-16 2012-11-21 腾讯科技(北京)有限公司 Immediate storage method and system for content in input box of browser webpage
CN102841819A (en) * 2011-06-20 2012-12-26 富泰华工业(深圳)有限公司 Electronic device and method for preventing data of electronic device from losing
CN103034568A (en) * 2012-12-14 2013-04-10 北京奇虎科技有限公司 Method and device for recovering input data of browser
CN103369722A (en) * 2012-03-28 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Mobile terminal control method and mobile terminal control apparatus
US20170169072A1 (en) * 2015-12-09 2017-06-15 Business Objects Software Ltd. Ephemeral store-based auto-save for applications with a persistence layer
WO2018076819A1 (en) * 2016-10-25 2018-05-03 广东欧珀移动通信有限公司 Data upload method, apparatus, storage medium, electronic device and system
CN108989554A (en) * 2018-06-29 2018-12-11 维沃移动通信有限公司 A kind of information processing method and terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1209569A1 (en) * 2000-04-12 2002-05-29 Annex Systems Incorporated Data backup/recovery system
US20080034018A1 (en) * 2006-08-04 2008-02-07 Pavel Cisler Managing backup of content
CN102789454A (en) * 2011-05-16 2012-11-21 腾讯科技(北京)有限公司 Immediate storage method and system for content in input box of browser webpage
CN102841819A (en) * 2011-06-20 2012-12-26 富泰华工业(深圳)有限公司 Electronic device and method for preventing data of electronic device from losing
CN103369722A (en) * 2012-03-28 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Mobile terminal control method and mobile terminal control apparatus
CN103034568A (en) * 2012-12-14 2013-04-10 北京奇虎科技有限公司 Method and device for recovering input data of browser
US20170169072A1 (en) * 2015-12-09 2017-06-15 Business Objects Software Ltd. Ephemeral store-based auto-save for applications with a persistence layer
WO2018076819A1 (en) * 2016-10-25 2018-05-03 广东欧珀移动通信有限公司 Data upload method, apparatus, storage medium, electronic device and system
CN108989554A (en) * 2018-06-29 2018-12-11 维沃移动通信有限公司 A kind of information processing method and terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张巨俭 等: "《Visual Basic数据库应用系统开发案例教程》", 31 January 2019, 中国铁道出版社 *
李勇 等,: "《PowerBuilder 8.0彻底研究》", 31 January 2003, 中国铁道出版社 *

Similar Documents

Publication Publication Date Title
US11630561B2 (en) Image editing method and terminal
CN110557683B (en) Video playing control method and electronic equipment
CN111143015B (en) Screen capturing method and electronic equipment
CN110855921B (en) Video recording control method and electronic equipment
CN109814786B (en) Image storage method and terminal equipment
US11250046B2 (en) Image viewing method and mobile terminal
CN111324235A (en) Screen refreshing frequency adjusting method and electronic equipment
CN108762877B (en) Control method of mobile terminal interface and mobile terminal
CN109523253B (en) Payment method and device
CN109271262B (en) Display method and terminal
CN109189303B (en) Text editing method and mobile terminal
CN111124223A (en) Application interface switching method and electronic equipment
CN108132749B (en) Image editing method and mobile terminal
CN107728877B (en) Application recommendation method and mobile terminal
CN110569119B (en) Background application program management method and terminal
CN110062281B (en) Play progress adjusting method and terminal equipment thereof
CN110096203B (en) Screenshot method and mobile terminal
US20220083207A1 (en) Editing method and mobile terminal
CN111050214A (en) Video playing method and electronic equipment
CN110825474A (en) Interface display method and device and electronic equipment
CN110333803B (en) Multimedia object selection method and terminal equipment
US20230087022A1 (en) Text language type switching method and apparatus, device, and storage medium
CN110825288A (en) Image screening processing method and electronic equipment
CN108319409B (en) Application program control method and mobile terminal
CN108089799B (en) Control method of screen edge control and mobile terminal

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200228

RJ01 Rejection of invention patent application after publication