CN110609767B - Data recovery method and device for terminal - Google Patents

Data recovery method and device for terminal Download PDF

Info

Publication number
CN110609767B
CN110609767B CN201910876416.2A CN201910876416A CN110609767B CN 110609767 B CN110609767 B CN 110609767B CN 201910876416 A CN201910876416 A CN 201910876416A CN 110609767 B CN110609767 B CN 110609767B
Authority
CN
China
Prior art keywords
application
real
time
motion
data
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
CN201910876416.2A
Other languages
Chinese (zh)
Other versions
CN110609767A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201910876416.2A priority Critical patent/CN110609767B/en
Publication of CN110609767A publication Critical patent/CN110609767A/en
Application granted granted Critical
Publication of CN110609767B publication Critical patent/CN110609767B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a data recovery method and device of a terminal, relates to the technical field of intelligent terminals, and aims to solve the problem that real-time data and processes of applications are lost. In the method, temporary data generated in the application running process are copied into a local temporary file; after the application is switched to the background and the thread of the application is interrupted or temporary data of the application in the background is cleaned, the process of the application is restored; and restoring the real-time data of the application by utilizing the process according to the temporary data generated by the application in the local temporary file. According to the method, the real-time data generated in the running process of the application are copied in the local temporary folder, and after the terminal is cleaned by one key and the user manually cleans the application program or the terminal is restarted, the thread of the application can be recovered, and meanwhile, the real-time data of the application can be recovered through the thread and the temporary data in the local temporary folder.

Description

Data recovery method and device for terminal
Technical Field
The present application relates to the field of intelligent terminals, and in particular, to a method and an apparatus for recovering data from a terminal.
Background
The motion health application software of the terminal can support the real-time motion function of the user. The real-time motion function is to detect the motion state of the mobile phone by acquiring the mobile phone positioning, the mobile phone sensor, the gyroscope state and the like, and update and display the data of the motion time, the motion distance, the motion speed, the energy consumption, the motion track and the like of the user in real time.
However, when the user is using the real-time motion function, if the terminal is cleaned by one key, or the user manually cleans an application program, or the user restarts under abnormal conditions such as low power, the data generated by the real-time motion function will be cleaned, and the display interface of the real-time motion function will also be cleaned.
Disclosure of Invention
The embodiment of the application provides a data recovery method and device for a terminal, which are used for solving the problem of losing real-time data of an application.
In a first aspect, an embodiment of the present application provides a data recovery method for a terminal. The method comprises the following steps:
copying temporary data generated in the application running process into a local temporary file;
after the application is switched to the background and the thread of the application is interrupted or temporary data of the application in the background is cleaned, the process of the application is restored;
and restoring the real-time data of the application by utilizing the process according to the temporary data generated by the application in the local temporary file.
According to the method, the real-time data generated in the running process of the application are copied in the local temporary folder, and after the terminal is cleaned by one key and the user manually cleans the application program or the terminal is restarted, the thread of the application can be recovered, and meanwhile, the real-time data of the application can be recovered through the thread and the temporary data in the local temporary folder.
Optionally, after recovering the real-time data of the application by using the process, the method further includes:
and displaying real-time data of the application restored by the process in a display interface of the application.
According to the method, after a cleaning event or restarting of the terminal occurs, the display interface of the application can be pulled up again, real-time data is obtained through calculation according to the temporary data, the real-time data is displayed in the display interface, and a user can conveniently see the related real-time data in the display interface.
Optionally, if an interrupt occurs in a thread of an application in the background;
before resuming the process of the application, further comprising:
and receiving an instruction for starting the application.
According to the method, after receiving the instruction for starting the application, the process of the application can be recovered, and the real-time data of the application can be recovered according to the process of the application and the temporary data.
Optionally, copying temporary data generated in the application running process into a local temporary file, and further including:
and copying temporary data generated in the running process of the application positioned in the background white list into a local temporary file.
By the method, the application is added to the white list, so that the process of the application resides in the background and is not cleaned.
Optionally, the method further comprises:
and deleting temporary data corresponding to the application in the local temporary file after the application is closed.
According to the method, the space in the local temporary folder is limited, and the temporary data in the local temporary folder is deleted after the application is closed, so that the space can be saved.
In a second aspect, the embodiment of the application further provides a terminal. The terminal comprises:
the copying module is used for copying temporary data generated in the application running process into a local temporary file;
the process recovery module is used for recovering the process of the application after the application is switched to the background and the thread of the application is interrupted or temporary data of the application in the background is cleaned;
and the data recovery module is used for recovering the real-time data of the application by utilizing the process according to the temporary data generated by the application in the local temporary file.
Optionally, the terminal further includes:
and the display module is used for displaying the real-time data of the application restored by the process in the display interface of the application after the real-time data of the application is restored by the process.
Optionally, if an interrupt occurs in a thread of an application in the background;
the terminal further comprises:
and the receiving module is used for receiving an instruction for starting the application before the process of the application is restored.
Optionally, the copy module specifically includes:
and copying temporary data generated in the running process of the application positioned in the background white list into a local temporary file.
Optionally, the terminal further includes:
and the deleting module is used for deleting the temporary data corresponding to the application in the local temporary file after the application is closed.
In a third aspect, an embodiment of the present application further provides a terminal for data recovery, where the terminal includes a memory and a processor;
wherein the processor is used for reading the program in the memory and executing the following processes:
copying temporary data generated in the application running process into a local temporary file;
after the application is switched to the background and the thread of the application is interrupted or temporary data of the application in the background is cleaned, the process of the application is restored;
and restoring the real-time data of the application by utilizing the process according to the temporary data generated by the application in the local temporary file.
Optionally, the processor is further configured to:
and after the real-time data of the application is restored by using the process, displaying the real-time data of the application restored by using the process in a display interface of the application.
Optionally, if an interrupt occurs in a thread of an application in the background;
the processor is further configured to: an instruction to launch the application is received before the process of the application is resumed.
Optionally, the processor is further configured to:
and copying temporary data generated in the running process of the application positioned in the background white list into a local temporary file.
Optionally, the processor is further configured to:
and deleting temporary data corresponding to the application in the local temporary file after the application is closed.
In a fourth aspect, the present application also provides a computer storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of the first aspect.
In addition, the technical effects caused by any implementation manner of the second aspect to the third aspect may refer to the technical effects caused by different implementation manners of the first aspect, which are not described herein.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario of a data recovery method of a terminal in an embodiment of the present application;
fig. 2 is a schematic diagram of an application scenario of a data recovery method of a terminal according to an embodiment of the present application;
fig. 3 is one application scenario schematic diagram of a data recovery method of a terminal in an embodiment of the present application;
fig. 4 is a schematic diagram of an application scenario of a data recovery method of a terminal according to an embodiment of the present application;
fig. 5 is a schematic flow chart of a data recovery method of a terminal according to an embodiment of the present application;
fig. 6 is one of application scenarios of a data recovery method of a terminal according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a terminal according to an embodiment of the present application;
FIG. 8 is a block diagram of a terminal in an embodiment of the application;
fig. 9 shows a terminal for data recovery according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
The motion health application on the terminal can support the real-time motion tracking function of the user. The real-time motion function has high real-time requirement on data, and in some scenes, the problem of losing real-time motion data still exists:
1. after the terminal performs one-key cleaning, the generated real-time data can be cleaned, so that the real-time movement function is stopped;
2. the user manually cleans the real-time motion program, so that the real-time motion function is stopped;
3. after the terminal is restarted, the real-time data before restarting cannot be recovered.
In view of this, the embodiment of the application provides a data recovery method for a terminal. In the method, temporary data generated in the running process of the application are copied into a local temporary file, and after the thread of the application is interrupted or the data generated in the running process of the application is cleaned, the thread of the application is restored. And according to the temporary data of the application in the local temporary file, recovering the real-time data of the application by using the thread of the application.
According to the method, the real-time data generated in the running process of the application are copied in the local temporary folder, and after the terminal is cleaned by one key and the user manually cleans the application program or the terminal is restarted, the thread of the application can be recovered, and meanwhile, the real-time data of the application can be recovered through the thread and the temporary data in the local temporary folder.
Referring to fig. 1, a flow chart of a data recovery method of a terminal in an embodiment of the application may include the following steps:
step 101: and copying temporary data generated in the application running process into a local temporary file.
When the method is implemented, the application can be added into the white list, the application is allowed to reside in the background, and the background thread of the application is ensured not to be cleaned. Optionally, the application in the embodiment of the present application may be a local application, for example, an application with a high requirement on real-time performance of data, such as a sports health application of the terminal.
Step 102: and after the application is switched to the background and the thread of the application is interrupted or temporary data of the application in the background is cleaned, restoring the process of the application.
Step 103: and restoring the real-time data of the application by utilizing the process according to the temporary data generated by the application in the local temporary file.
According to the method, the application is added into the white list to allow the application to reside in the background, data generated when the application runs are copied into the local temporary folder, and after a cleaning event or abnormal restarting occurs to the terminal, the thread of the application can be recovered, and the real-time data of the application can be recovered.
In one possible embodiment, data generated by the application runtime may be copied into the terminal's own local temporary folder SharePoint. When the temporary data is copied to the local temporary folder, an identification of the application and a corresponding temporary folder are generated. When the temporary file is acquired, the corresponding temporary folder can be acquired according to the application identifier, and temporary data can be acquired in the corresponding temporary folder.
For example, taking a real-time motion application as an example, the data generated during real-time motion may include: start time (status_time), motion duration (time_used), motion type (sport_type), motion target (sport_target), motion distance (trace_distance), energy consumption (trace_carrier), motion track points (trace_points), etc., are copied into the SharePreference.
The path for acquiring the temporary data is as follows: sharedPrefrences sharedPrefs = context. Getsharedprefreeces ("pref_real_time_trace_data", context. Mo_private); string traceData = sharedprefs.getstring ("trace_data").
In one possible embodiment, after performing step 103, the real-time data recovered with the process may also be displayed in a display interface of the application.
When the method is implemented, the service of the application can restart the process of the application and can also restart the display interface of the application through the content data packet. The application process can calculate according to the temporary data to obtain real-time data. For example, the motion duration can be calculated by the starting time and the current time in the temporary data, and the motion distance can be calculated according to the motion track point and the current positioning point in the temporary data.
Fig. 2 is a schematic application scenario diagram of a data recovery method of a terminal according to an embodiment of the present application. In this scenario, the user copies the temporary data generated to the local temporary folder during the real-time movement. And switching the real-time motion application to the background, and cleaning the display interface and the data of the real-time motion after the cleaning event occurs at the terminal. The real-time motion service pulls up the real-time motion progress through the content and displays the real-time motion. And acquiring real-time data of the real-time motion through the process of the real-time motion and temporary data in the local temporary folder, and displaying the real-time data in a pulled-up display interface.
According to the method, after a cleaning event or restarting of the terminal occurs, the display interface of the application can be pulled up again, real-time data is obtained through calculation according to the temporary data, the real-time data is displayed in the display interface, and a user can conveniently see the related real-time data in the display interface.
The technical scheme provided in the embodiment of the application is further described below through two different scenes.
1. An interrupt occurs to a thread of an application:
after the terminal is restarted due to low power or abnormal reasons, the thread of the application is interrupted. After receiving an instruction for starting the application, if the local temporary folder stores a temporary file corresponding to the application, the user can restart the process of the application and the display interface of the application through the content.
Referring to fig. 3, a flow chart of a data recovery method of a terminal in an embodiment of the application may include the following steps:
step 301: and the real-time motion display interface receives a real-time motion instruction triggered by a user.
Step 302: the real-time motion display interface sends a command for starting the real-time motion to the real-time motion service.
Step 303: the real-time motion service generates real-time motion data of the user and copies the real-time motion data to a local temporary folder.
Step 304: the real-time motion display interface updates and displays the real-time motion data.
Step 305: after restarting the terminal, the motion health application main interface receives an instruction which is triggered by a user and enters the real-time motion interface.
Step 306: the exercise health application main interface detects temporary data, and re-pulls up the real-time exercise service and the real-time exercise display interface.
Step 307: the real-time motion service restores real-time data of real-time motion according to the temporary data.
Step 308: and updating and displaying the real-time data by the real-time motion display interface.
When the method is implemented, after the thread of the application is interrupted, an instruction for restarting the application needs to be received before the process of the application is restored.
Fig. 4 is a schematic application scenario diagram of a data recovery method of a terminal according to an embodiment of the present application. In the scene, after the terminal is restarted, when the user reenters the sports health application main interface, a prompt box pops up to prompt the user that the user has ongoing sports, and the user clicks the service of the application to be pulled up again after the user clicks the sports. If the user clicks to finish the movement, the service of the application is not pulled up again, the temporary data is copied to the database of the application, and the data corresponding to the application in the local temporary file is deleted.
According to the method, when the user interrupts the thread of the application due to the restart of the terminal and the like in the application using process, if the user needs to reenter the application, the service of the application can be restarted by the temporary data in the local temporary folder, and the temporary data of the application can be recovered.
2. Cleaning up temporary data of an application in the background:
in the application using process, after a user manually cleans the data to release the memory or the terminal automatically performs one-key cleaning, the display interface and the real-time data of the application can be cleaned. After the application is added to the white list, the process of the application is not cleaned and resides in the background.
Referring to fig. 5, a flow chart of a data recovery method of a terminal in an embodiment of the application may include the following steps:
step 501: and the real-time motion display interface receives a real-time motion instruction triggered by a user.
Step 502: the real-time motion display interface sends a command for starting the real-time motion to the real-time motion service.
Step 503: the real-time motion service generates real-time motion data of the user and copies the real-time motion data to a local temporary folder.
Step 504: the real-time motion display interface updates and displays the real-time motion data.
Step 505: after the temporary data of the application in the background is cleaned, the real-time motion service determines that the local temporary folder has the temporary data, and restarts the motion health application main interface.
Step 506: the sports health application main interface restarts the real-time sports display interface.
Step 507: the real-time motion service restores real-time data of real-time motion according to the temporary data.
Step 508: and updating and displaying the real-time data by the real-time motion display interface.
When the method is implemented, after the terminal receives an ending instruction triggered by a user, the temporary data in the local temporary folder are copied to the database of the application, and the temporary data in the local temporary folder are deleted.
Fig. 6 is a schematic application scenario diagram of a data recovery method of a terminal according to an embodiment of the present application. In this scenario, after the temporary data of the application in the background is cleaned, the display interface is pulled up again, and real-time data is displayed in the display interface. After the user clicks the "back" or "end" button, the process and services of the application are closed. And copying the temporary data into a database, and deleting the temporary data in the local temporary folder.
According to the method, after the terminal has a cleaning event, the display interface can be pulled up again according to the temporary data in the local temporary folder, and the real-time data can be updated. In addition, because the space in the local temporary folder is limited, deleting the temporary data in the local temporary folder after closing the application can avoid occupying the space of the local temporary folder.
Based on the same inventive concept, the embodiment of the application provides a terminal. Referring to fig. 7, a schematic diagram of a terminal according to an embodiment of the present application includes:
a copy module 701, configured to copy temporary data generated during an application running process to a local temporary file;
a process recovery module 702, configured to recover a process of the application after the application is switched to the background and a thread of the application is interrupted or temporary data of the application in the background is cleared;
and the data recovery module 703 is configured to recover real-time data of the application by using the process according to temporary data generated by the application in the local temporary file.
Optionally, the terminal further includes:
and the display module is used for displaying the real-time data of the application restored by the process in the display interface of the application after the real-time data of the application is restored by the process.
Optionally, if an interrupt occurs in a thread of an application in the background;
the terminal further comprises:
and the receiving module is used for receiving an instruction for starting the application before the process of the application is restored.
Optionally, the copy module 701 specifically includes:
and copying temporary data generated in the running process of the application positioned in the background white list into a local temporary file.
Optionally, the terminal further includes:
and the deleting module is used for deleting the temporary data corresponding to the application in the local temporary file after the application is closed.
Based on the same inventive concept, the embodiment of the application provides another terminal. Referring to fig. 8, a block diagram of a terminal according to an embodiment of the present application is shown. The terminal comprises: a memory 801 and a processor 802; wherein the memory 801 stores program code which, when executed by the processor 802, causes the processor 802 to perform the following process:
copying temporary data generated in the application running process into a local temporary file;
after the application is switched to the background and the thread of the application is interrupted or temporary data of the application in the background is cleaned, the process of the application is restored;
and restoring the real-time data of the application by utilizing the process according to the temporary data generated by the application in the local temporary file.
Optionally, the processor 802 is further configured to:
and after the real-time data of the application is restored by using the process, displaying the real-time data of the application restored by using the process in a display interface of the application.
Optionally, the processor 802 is further configured to:
if the thread of the application in the background is interrupted, before the process of the application is restored, an instruction for starting the application is received.
Optionally, the processor 802 is further configured to:
and copying temporary data generated in the running process of the application positioned in the background white list into a local temporary file.
Optionally, the processor 802 is further configured to:
and deleting temporary data corresponding to the application in the local temporary file after the application is closed.
Based on the same inventive concept, the embodiment of the application provides a terminal for data recovery. As shown in fig. 9, a terminal 900 for data recovery according to an embodiment of the present application includes: radio Frequency (RF) circuitry 910, power supply 920, processor 930, memory 940, input unit 950, display unit 960, camera 970, communication interface 980, and WiFi module 990. It will be appreciated by those skilled in the art that the structure of the terminal shown in fig. 9 is not limiting of the terminal, and that the terminal provided by the embodiments of the present application may include more or less components than those illustrated, or may combine some components, or may be arranged in different components.
The following describes the components of the terminal 900 in detail with reference to fig. 9:
the RF circuitry 910 may be used for receiving and transmitting data during a communication or session. Specifically, the RF circuit 910 sends the downlink data of the base station to the processor 930 for processing; in addition, uplink data to be transmitted is transmitted to the base station. Typically, the RF circuitry 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like.
In addition, the RF circuitry 910 may also communicate with networks and other terminals via wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), email, short message service (Short Messaging Service, SMS), and the like.
The WiFi technology belongs to a short-distance wireless transmission technology, and the terminal 900 may be connected to an Access Point (AP) through a WiFi module 990, so as to achieve Access to a data network. The WiFi module 990 may be used for receiving and transmitting data during communication.
The terminal 900 may be physically connected to other terminals through the communication interface 980. In some embodiments, the communication interface 980 is connected to the communication interfaces of the other terminals through a cable, so as to implement data transmission between the terminal 900 and the other terminals.
Since in the embodiment of the present application, the terminal 900 is capable of implementing a communication service and sending information to other contacts, the terminal 900 needs to have a data transmission function, that is, the terminal 900 needs to include a communication module. Although fig. 9 illustrates communication modules such as the RF circuit 910, the WiFi module 990, and the communication interface 980, it is understood that at least one of the above components or other communication modules (e.g., bluetooth module) for implementing communication are present in the terminal 900 for data transmission.
For example, when the terminal 900 is a mobile phone, the terminal 900 may include the RF circuit 910 and may further include the WiFi module 990; when the terminal 900 is a computer, the terminal 900 may include the communication interface 980 and may further include the WiFi module 990; when the terminal 900 is a tablet computer, the terminal 900 may include the WiFi module 990.
The memory 940 may be used to store software programs and modules. The processor 930 executes various functional applications and data processing of the terminal 900 by running software programs and modules stored in the memory 940, and when the processor 930 executes the program codes in the memory 940, part or all of the processes in fig. 1 of the embodiment of the present application can be implemented.
In some embodiments, the memory 940 may mainly include a storage program area and a storage data area. The storage program area can store an operating system, various application programs (such as communication application), a face recognition module and the like; the storage data area may store data created according to the use of the terminal (such as multimedia files such as various pictures, video files, and the like, and face information templates), etc.
In addition, the memory 940 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 input unit 950 may be used to receive numeric or character information input by a user and to generate key signal inputs related to user settings and function control of the terminal 900.
In some embodiments, the input unit 950 may include a touch panel 951 and other input terminals 952.
The touch panel 951, also referred to as a touch screen, may collect touch operations on or near the touch panel 951 (such as operations of a user using a finger, a stylus, or any other suitable object or accessory on or near the touch panel 951), and drive the corresponding connection device according to a preset program. In some embodiments, the touch panel 951 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 930, and can receive and execute commands sent from the processor 930. Further, the touch panel 951 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave.
In some embodiments, the other input terminals 952 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.
The display unit 960 may be used to display information input by a user or provided to the user and various menus of the terminal 900. The display unit 960 is a display system of the terminal 900, and is configured to present an interface to implement man-machine interaction.
Further, the touch panel 951 may cover the display panel 961, and after the touch panel 951 detects a touch operation thereon or thereabout, the touch panel 951 may be transferred to the processor 930 to determine a type of touch event, and then the processor 930 may provide a corresponding visual output on the display panel 961 according to the type of touch event.
Although in fig. 9, the touch panel 951 and the display panel 961 are two independent components to implement the input and output functions of the terminal 900, in some embodiments, the touch panel 951 may be integrated with the display panel 961 to implement the input and output functions of the terminal 900.
The processor 930 is a control center of the terminal 900, connects various components using various interfaces and lines, and performs various functions of the terminal 900 and processes data by running or executing software programs and/or modules stored in the memory 940 and calling data stored in the memory 940, thereby implementing various services based on the terminal.
In some embodiments, the processor 930 may include one or more processors. In some embodiments, the processor 930 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 930.
The camera 970 is configured to implement a photographing function of the terminal 900, and photograph pictures or videos. The camera 970 may also be used to perform a scanning function of the terminal 900 to scan a scanning object (two-dimensional code/bar code).
The terminal 900 also includes a power source 920 (e.g., a battery) for powering the various components. In some embodiments, the power supply 920 may be logically connected to the processor 930 through a power management system, so as to perform functions of managing charging, discharging, and power consumption through the power management system.
Although not shown, the terminal 900 may further include at least one sensor, audio circuit, etc., which will not be described herein.
The embodiment of the application also provides a computer readable nonvolatile storage medium, which comprises program code, wherein when the program code runs on a computing terminal, the program code is used for enabling the computing terminal to execute the steps of the data recovery method of the terminal.
The present application is described above with reference to block diagrams and/or flowchart illustrations of methods, apparatus (systems) and/or computer program products according to embodiments of the application. It will be understood that one block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, and/or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer and/or other programmable data processing apparatus, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the present application may be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). Still further, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of the present application, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. A data recovery method for a terminal, the method comprising:
copying temporary data generated in the running process of an application into a local temporary file, wherein the application is an application allowing a resident background;
after the application is switched to the background and the thread of the application is interrupted or temporary data of the application in the background is cleaned, the process of the application is restored;
restoring real-time data of the application by utilizing the process according to temporary data generated by the application in the local temporary file, wherein if the application is a real-time motion application, the real-time data of the real-time motion application is motion data of the current time, the motion data comprises motion duration and/or motion distance, and the motion duration is restored by utilizing the process of the real-time motion application according to the starting time and the current time in the temporary data generated by the real-time motion application; and the motion distance is recovered by utilizing the process of the real-time motion application according to the motion track point in the temporary data generated by the real-time motion application and the positioning point of the current time.
2. The method of claim 1, further comprising, after recovering the real-time data of the application with the process:
and displaying real-time data of the application restored by the process in a display interface of the application.
3. The method of claim 1, wherein if an interrupt occurs in a thread of an application in the background;
before resuming the process of the application, further comprising:
and receiving an instruction for starting the application.
4. The method of claim 1, wherein copying temporary data generated during the running of the application into the local temporary file further comprises:
and copying temporary data generated in the running process of the application positioned in the background white list into a local temporary file.
5. The method according to any one of claims 1 to 4, further comprising:
and deleting temporary data corresponding to the application in the local temporary file after the application is closed.
6. A terminal, the terminal comprising: a processor and a memory, wherein the memory stores program code that, when executed by the processor, causes the processor to perform the following process:
copying temporary data generated in the running process of an application into a local temporary file, wherein the application is an application allowing a resident background;
after the application is switched to the background and the thread of the application is interrupted or temporary data of the application in the background is cleaned, the process of the application is restored;
restoring real-time data of the application by utilizing the process according to temporary data generated by the application in the local temporary file, wherein if the application is a real-time motion application, the real-time data of the real-time motion application is motion data of the current time, the motion data comprises motion duration and/or motion distance, and the motion duration is restored by utilizing the process of the real-time motion application according to the starting time and the current time in the temporary data generated by the real-time motion application; and the motion distance is recovered by utilizing the process of the real-time motion application according to the motion track point in the temporary data generated by the real-time motion application and the positioning point of the current time.
7. The terminal of claim 6, wherein the processor is further configured to:
and after the real-time data of the application is restored by using the process, displaying the real-time data of the application restored by using the process in a display interface of the application.
8. The terminal of claim 6, wherein the processor is further configured to:
if the thread of the application in the background is interrupted, before the process of the application is restored, an instruction for starting the application is received.
9. The terminal of claim 6, wherein the processor is further configured to:
and copying temporary data generated in the running process of the application positioned in the background white list into a local temporary file.
10. The terminal according to any of the claims 6-9, wherein the processor is further configured to:
and deleting temporary data corresponding to the application in the local temporary file after the application is closed.
CN201910876416.2A 2019-09-17 2019-09-17 Data recovery method and device for terminal Active CN110609767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910876416.2A CN110609767B (en) 2019-09-17 2019-09-17 Data recovery method and device for terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910876416.2A CN110609767B (en) 2019-09-17 2019-09-17 Data recovery method and device for terminal

Publications (2)

Publication Number Publication Date
CN110609767A CN110609767A (en) 2019-12-24
CN110609767B true CN110609767B (en) 2023-10-20

Family

ID=68891458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910876416.2A Active CN110609767B (en) 2019-09-17 2019-09-17 Data recovery method and device for terminal

Country Status (1)

Country Link
CN (1) CN110609767B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363866B (en) * 2020-10-30 2024-01-09 广州视源电子科技股份有限公司 Terminal application data recovery method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052431A (en) * 2017-12-08 2018-05-18 北京奇虎科技有限公司 Terminal program exception closing information processing method, device, terminal
CN109165042A (en) * 2018-07-23 2019-01-08 努比亚技术有限公司 Restoration methods, terminal and computer readable storage medium are interrupted in a kind of application

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014067071A1 (en) * 2012-10-30 2014-05-08 深圳市多尼卡电子技术有限公司 Play control method and system for player

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052431A (en) * 2017-12-08 2018-05-18 北京奇虎科技有限公司 Terminal program exception closing information processing method, device, terminal
CN109165042A (en) * 2018-07-23 2019-01-08 努比亚技术有限公司 Restoration methods, terminal and computer readable storage medium are interrupted in a kind of application

Also Published As

Publication number Publication date
CN110609767A (en) 2019-12-24

Similar Documents

Publication Publication Date Title
US11025963B2 (en) Data processing method, apparatus, and system for live streaming page
CN111880870A (en) Method and device for controlling electronic equipment and electronic equipment
CN105677477A (en) Method and device for optimizing application program resources and electronic equipment
CN105490919A (en) Message withdrawal method and device
CN104469143A (en) Video sharing method and device
EP2990949A1 (en) Methods and devices for backing up file
CN108804244A (en) Data transmission method for uplink, device and storage medium
CN111669717B (en) Cloud mobile phone data sending method, computer device and storage medium
CN110609767B (en) Data recovery method and device for terminal
CN108513664B (en) The method and apparatus of image procossing
CN112579264B (en) Application program jumping method, terminal and computer storage medium
KR20140113810A (en) Terminal and method for synchronizing application thereof
CN112738865B (en) Service processing method and device and electronic equipment
US10362156B2 (en) Realization method and apparatus for operation function in two-way radio, and two-way radio terminal
CN110597480B (en) Custom voice instruction implementation method and terminal
CN112463199A (en) System upgrading method and terminal
CN108011860A (en) A kind of method and device for handling broadcast message
CN109194835A (en) A kind of control method, terminal device and computer storage medium
CN105426242A (en) Data transmission method and device
CN112099715B (en) Information processing method and device
CN112291758B (en) File sharing method, file sharing device and electronic equipment
CN111880912A (en) Method and device for controlling electronic equipment and electronic equipment
CN111726452B (en) Wireless local area network WiFi list ordering method and electronic equipment
CN111884906A (en) Information notification method and device and electronic equipment
CN107632795A (en) Method, equipment, mobile terminal and the computer-readable storage medium of mobile data

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
CB02 Change of applicant information

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Applicant after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Applicant before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant