CN111274503B - Data processing method, device, electronic equipment and computer readable medium - Google Patents

Data processing method, device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN111274503B
CN111274503B CN202010065373.2A CN202010065373A CN111274503B CN 111274503 B CN111274503 B CN 111274503B CN 202010065373 A CN202010065373 A CN 202010065373A CN 111274503 B CN111274503 B CN 111274503B
Authority
CN
China
Prior art keywords
navigation
app
data
navigation stack
stack
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
CN202010065373.2A
Other languages
Chinese (zh)
Other versions
CN111274503A (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.)
Beijing Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Youzhuju Network 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 Beijing Youzhuju Network Technology Co Ltd filed Critical Beijing Youzhuju Network Technology Co Ltd
Priority to CN202010065373.2A priority Critical patent/CN111274503B/en
Publication of CN111274503A publication Critical patent/CN111274503A/en
Application granted granted Critical
Publication of CN111274503B publication Critical patent/CN111274503B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/954Navigation, e.g. using categorised browsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Shopping interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/16Real estate

Abstract

The embodiment of the disclosure provides a data processing method, a device, an electronic device and a computer readable medium, wherein the method comprises the following steps: acquiring state information of an application program APP; storing the navigation stack of the APP and data on a page corresponding to the navigation stack according to the state information, wherein the navigation stack and the data on the page corresponding to the navigation stack are used for constructing a current scene; when the start recovery operation of the APP is detected, the current scene is recovered according to the stored navigation stack and the data on the page corresponding to the navigation stack. The method enables the application program to have a recovery function after abnormal restarting or normal artificial restarting, and enables the application program to recover the page and the data on the page before the abnormal restarting or the normal restarting.

Description

Data processing method, device, electronic equipment and computer readable medium
Technical Field
The present disclosure relates to the field of computer technology, and in particular, to a method, an apparatus, an electronic device, and a computer readable medium for data processing.
Background
In the prior art, under some scenes, such as the function of registering information, a user fills in a plurality of contents on a plurality of pages, and when an application suddenly crashes and is opened again, some of the contents are zeroed; or the user browses an important house source, but forgets to collect the house source, and has no history record function, so that even if a history record exists, the current scene cannot be restored and recovered; the prior art only reports the error information and does not perform further processing.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Only the independent scheme is described, and the slave scheme is not described.
The present disclosure addresses the shortcomings of the existing approaches by providing a method, apparatus, electronic device, and computer readable medium for data processing to solve the problem of how to restore an application to a page and data on the page before an exception or a normal restart.
In a first aspect, the present disclosure provides a method of data processing, comprising:
acquiring state information of an application program APP;
storing the navigation stack of the APP and data on a page corresponding to the navigation stack according to the state information, wherein the navigation stack and the data on the page corresponding to the navigation stack are used for constructing a current scene;
when the start recovery operation of the APP is detected, the current scene is recovered according to the stored navigation stack and the data on the page corresponding to the navigation stack.
In a second aspect, the present disclosure provides an apparatus for data processing, comprising:
the first processing module is used for acquiring state information of an application program APP;
the second processing module is used for storing the navigation stack of the APP and the data on the page corresponding to the navigation stack according to the state information, and the navigation stack and the data on the page corresponding to the navigation stack are used for constructing a current scene;
and the third processing module is used for carrying out recovery processing on the current scene according to the stored navigation stack and the data on the page corresponding to the navigation stack when the start recovery operation of the APP is detected.
In a third aspect, the present disclosure provides an electronic device comprising: a processor, a memory, and a bus;
a bus for connecting the processor and the memory;
a memory for storing operation instructions;
and a processor for executing the method of data processing of the first aspect of the present disclosure by invoking the operation instruction.
In a fourth aspect, the present disclosure provides a computer readable medium storing a computer program for use in performing the method of data processing of the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure has at least the following beneficial effects:
acquiring state information of an application program APP; storing the navigation stack of the APP and data on a page corresponding to the navigation stack according to the state information, wherein the navigation stack and the data on the page corresponding to the navigation stack are used for constructing a current scene; when the start recovery operation of the APP is detected, the current scene is recovered according to the stored navigation stack and the data on the page corresponding to the navigation stack. Thus, the application program has a recovery function after abnormal restarting or normal artificial restarting, so that the application program recovers the page and the data on the page before the abnormal restarting or the normal restarting.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings that are required to be used in the description of the embodiments of the present disclosure will be briefly introduced below.
FIG. 1 is a flow chart of a method for data processing according to an embodiment of the disclosure;
FIG. 2 is a schematic diagram of a data processing apparatus according to an embodiment of the disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are used merely to distinguish one device, module, or unit from another device, module, or unit, and are not intended to limit the order or interdependence of the functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Example 1
An embodiment of the present disclosure provides a method for processing data, a flowchart of which is shown in fig. 1, where the method includes:
s101, acquiring state information of an application program APP.
In the embodiment of the disclosure, APP (Application program) mainly refers to software installed on a smart phone, and APP is a main means for providing a richer use experience for a user.
S102, storing the navigation stack of the APP and data on a page corresponding to the navigation stack according to the state information, wherein the navigation stack and the data on the page corresponding to the navigation stack are used for constructing a current scene.
In the embodiment of the disclosure, the stack structure of the navigation stack of the APP represents the page hierarchy relationship; the navigation stack of the APP is used for organizing the content and the function of the APP, so that the content and the function of the APP are connected according to the information architecture diagram of the product and are displayed in front of a user, and the navigation stack of the APP organizes scattered content and function into a finished system with a structure.
S103, when the start recovery operation of the APP is detected, the current scene is recovered according to the stored navigation stack and the data on the page corresponding to the navigation stack.
In the disclosed embodiment, the current scenario includes a hierarchical relationship of stored pages and data on the pages.
In the embodiment of the disclosure, acquiring state information of an application program APP; storing the navigation stack of the APP and data on a page corresponding to the navigation stack according to the state information, wherein the navigation stack and the data on the page corresponding to the navigation stack are used for constructing a current scene; when the start recovery operation of the APP is detected, the current scene is recovered according to the stored navigation stack and the data on the page corresponding to the navigation stack. Thus, the application program has a recovery function after abnormal restarting or normal artificial restarting, so that the application program recovers the page and the data on the page before the abnormal restarting or the normal restarting.
In an embodiment of the present disclosure, the status information includes at least one of:
the APP is abnormal and the APP exits closing;
the APP is normal and the APP exits off.
In the embodiment of the disclosure, the current scene includes a navigation bar constructed by a navigation stack and data on pages corresponding to the navigation stack, the navigation stack includes a stack structure of the navigation bar, and the stack structure is used for representing a hierarchical relationship between pages corresponding to the navigation stack.
In the embodiment of the present disclosure, storing, according to status information, a navigation stack of an APP and data on a page corresponding to the navigation stack, includes:
when the APP is abnormal and the APP exits to be closed, traversing the page corresponding to the navigation path of the navigation stack, and storing the navigation path of the navigation stack and the data on the page corresponding to the navigation path of the navigation stack to the terminal.
In the embodiment of the disclosure, when the APP is abnormally exited, the current navigation stack page is traversed, and all pages on the navigation path and data on the pages are stored locally.
In the embodiment of the disclosure, when a non-start recovery operation of the APP is detected, the navigation stack and data on a page corresponding to the navigation stack are deleted from the terminal, where the non-start recovery operation is used to indicate that the terminal does not recover the current scene.
In the embodiment of the disclosure, when an application program APP exits abnormally, traversing a page corresponding to a current navigation stack, and storing all pages and data information on a navigation path to a local; prompting a user whether to recover the page and information data caused by the previous abnormality when starting the App next time; and if the user selects to recover, the navigation stack and the data information on the page are taken out from the local to recover the scene, and if the user selects to recover, the locally corresponding cache data is directly deleted.
The application of the embodiment of the disclosure has at least the following beneficial effects:
after the application program is restarted abnormally or is restarted normally by people, the application program has a recovery function, after the APP is restarted abnormally, the user is prompted whether to recover the page and the data on the page caused by the previous abnormality when the APP is started up next time, and when the user selects to recover, the navigation stack is taken out from the local, and scene recovery is carried out on the page and the data on the page one by one, so that the application program recovers the page and the data on the page before the abnormality or before the normal restart; and deleting the locally cached page and the data on the page when the user selects that recovery is not needed.
Example two
Based on the same inventive concept, the embodiment of the present disclosure further provides a data processing apparatus, and a schematic structural diagram of the apparatus is shown in fig. 2, and the data processing apparatus 30 includes a first processing module 301, a second processing module 302, and a third processing module 303.
A first processing module 301, configured to obtain state information of an application program APP;
the second processing module 302 is configured to store, according to the state information, a navigation stack of the APP and data on a page corresponding to the navigation stack, where the navigation stack and the data on the page corresponding to the navigation stack are used to construct a current scene;
and a third processing module 303, configured to perform recovery processing on the current scene according to the stored navigation stack and the data on the page corresponding to the navigation stack when the start recovery operation of the APP is detected.
In an embodiment of the present disclosure, the status information includes at least one of:
the APP is abnormal and the APP exits closing;
the APP is normal and the APP exits off.
In the embodiment of the disclosure, the current scene includes a navigation bar constructed by a navigation stack and data on pages corresponding to the navigation stack, the navigation stack includes a stack structure of the navigation bar, and the stack structure is used for representing a hierarchical relationship between pages corresponding to the navigation stack.
In this embodiment of the present disclosure, the second processing module 302 is specifically configured to traverse a page corresponding to a navigation path of the navigation stack when the APP is abnormal and the APP exits to be closed, and store the navigation path of the navigation stack and data on the page corresponding to the navigation path of the navigation stack to the terminal.
In this embodiment of the present disclosure, the third processing module 303 is specifically configured to delete the navigation stack and data on a page corresponding to the navigation stack from the terminal when a non-start restoration operation of the APP is detected, where the non-start restoration operation is used to indicate that the terminal does not restore the current scene.
The application of the embodiment of the disclosure has at least the following beneficial effects:
acquiring state information of an application program APP; storing the navigation stack of the APP and data on a page corresponding to the navigation stack according to the state information, wherein the navigation stack and the data on the page corresponding to the navigation stack are used for constructing a current scene; when the start recovery operation of the APP is detected, the current scene is recovered according to the stored navigation stack and the data on the page corresponding to the navigation stack. Thus, the application program has a recovery function after abnormal restarting or normal artificial restarting, so that the application program recovers the page and the data on the page before the abnormal restarting or the normal restarting.
The details of the data processing device provided in the embodiment of the present disclosure are not described in detail, and reference may be made to the method for processing data provided in the first embodiment, so that the beneficial effects that the data processing device provided in the embodiment of the present disclosure can achieve are the same as the method for processing data provided in the first embodiment, and are not described herein again.
Example III
Referring now to fig. 3, a schematic diagram of an electronic device 800 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
An electronic device includes: a memory and a processor, where the processor may be referred to as a processing device 801 described below, the memory may include at least one of Read Only Memory (ROM) 802, random Access Memory (RAM) 803, and storage device 808 described below, as shown in fig. 3 in particular:
the electronic device 800 may include a processing means (e.g., a central processor, a graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with programs stored in a Read Only Memory (ROM) 802 or loaded from a storage 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.
In general, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, etc.; storage 808 including, for example, magnetic tape, hard disk, etc.; communication means 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 shows an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication device 809, or installed from storage device 808, or installed from ROM 802. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 801.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring state information of an application program APP; storing the navigation stack of the APP and data on a page corresponding to the navigation stack according to the state information, wherein the navigation stack and the data on the page corresponding to the navigation stack are used for constructing a current scene; when the start recovery operation of the APP is detected, the current scene is recovered according to the stored navigation stack and the data on the page corresponding to the navigation stack.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each 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 special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Where the name of a module or unit does not in some cases constitute a limitation of the unit itself.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In accordance with one or more embodiments of the present disclosure, embodiment one provides a method of data processing, comprising:
acquiring state information of an application program APP;
storing the navigation stack of the APP and data on a page corresponding to the navigation stack according to the state information, wherein the navigation stack and the data on the page corresponding to the navigation stack are used for constructing a current scene;
when the start recovery operation of the APP is detected, the current scene is recovered according to the stored navigation stack and the data on the page corresponding to the navigation stack.
In an embodiment of the present disclosure, the status information includes at least one of:
the APP is abnormal and the APP exits closing;
the APP is normal and the APP exits off.
In the embodiment of the disclosure, the current scene includes a navigation bar constructed by a navigation stack and data on pages corresponding to the navigation stack, the navigation stack includes a stack structure of the navigation bar, and the stack structure is used for representing a hierarchical relationship between pages corresponding to the navigation stack.
In this embodiment of the present disclosure, the second processing module 302 is specifically configured to traverse a page corresponding to a navigation path of the navigation stack when the APP is abnormal and the APP exits to be closed, and store the navigation path of the navigation stack and data on the page corresponding to the navigation path of the navigation stack to the terminal.
In this embodiment of the present disclosure, the third processing module 303 is specifically configured to delete the navigation stack and data on a page corresponding to the navigation stack from the terminal when a non-start restoration operation of the APP is detected, where the non-start restoration operation is used to indicate that the terminal does not restore the current scene.
According to one or more embodiments of the present disclosure, an apparatus for data processing is provided in embodiment two, including:
the first processing module is used for acquiring state information of an application program APP;
the second processing module is used for storing the navigation stack of the APP and the data on the page corresponding to the navigation stack according to the state information, and the navigation stack and the data on the page corresponding to the navigation stack are used for constructing a current scene;
and the third processing module is used for carrying out recovery processing on the current scene according to the stored navigation stack and the data on the page corresponding to the navigation stack when the start recovery operation of the APP is detected.
In an embodiment of the present disclosure, the status information includes at least one of:
the APP is abnormal and the APP exits closing;
the APP is normal and the APP exits off.
In the embodiment of the disclosure, the current scene includes a navigation bar constructed by a navigation stack and data on pages corresponding to the navigation stack, the navigation stack includes a stack structure of the navigation bar, and the stack structure is used for representing a hierarchical relationship between pages corresponding to the navigation stack.
In this embodiment of the present disclosure, the second processing module is specifically configured to traverse a page corresponding to a navigation path of the navigation stack when the APP is abnormal and the APP exits to be closed, and store the navigation path of the navigation stack and data on the page corresponding to the navigation path of the navigation stack to the terminal.
In this embodiment of the present disclosure, the third processing module is specifically configured to delete the navigation stack and data on a page corresponding to the navigation stack from the terminal when a non-start restoration operation of the APP is detected, where the non-start restoration operation is used to indicate that the terminal does not restore the current scene.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (6)

1. A method for processing data, applied to a terminal, comprising:
acquiring state information of an application program APP;
storing a navigation stack of the APP and data on a page corresponding to the navigation stack according to the state information, wherein the navigation stack and the data on the page corresponding to the navigation stack are used for constructing a current scene;
when the start recovery operation of the APP is detected, carrying out recovery processing on the current scene according to the stored navigation stack and the data on the page corresponding to the navigation stack;
the storing, according to the state information, the navigation stack of the APP and the data on the page corresponding to the navigation stack includes:
when the APP is abnormal and the APP exits from closing, traversing a page corresponding to a navigation path of the navigation stack, and storing the navigation path of the navigation stack and data on the page corresponding to the navigation path of the navigation stack to the terminal;
wherein the method further comprises:
and deleting the navigation stack and the data on the page corresponding to the navigation stack from the terminal when the non-start recovery operation of the APP is detected, wherein the non-start recovery operation is used for indicating that the terminal does not recover the current scene.
2. The method of claim 1, wherein the status information comprises at least one of:
the APP is abnormal and the APP exits closing;
the APP is normal and the APP exits off.
3. The method of claim 1, wherein the current scene comprises a navigation bar constructed from the navigation stack and data on pages corresponding to the navigation stack, the navigation stack comprising a stack structure of the navigation bar, the stack structure representing a hierarchical relationship between pages corresponding to the navigation stack.
4. A data processing apparatus, applied to a terminal, comprising:
the first processing module is used for acquiring state information of an application program APP;
the second processing module is used for storing the navigation stack of the APP and the data on the page corresponding to the navigation stack according to the state information, and the navigation stack and the data on the page corresponding to the navigation stack are used for constructing a current scene;
the third processing module is used for carrying out recovery processing on the current scene according to the stored navigation stack and the data on the page corresponding to the navigation stack when the starting recovery operation of the APP is detected;
the second processing module is used for traversing the page corresponding to the navigation path of the navigation stack when the APP is abnormal and the APP exits to be closed, and storing the navigation path of the navigation stack and the data on the page corresponding to the navigation path of the navigation stack to the terminal;
the third processing module is configured to delete, when a non-startup restoration operation of the APP is detected, the navigation stack and data on a page corresponding to the navigation stack from the terminal, where the non-startup restoration operation is used to instruct the terminal not to restore the current scene.
5. An electronic device, comprising: a processor, a memory;
the memory is used for storing a computer program;
the processor being adapted to perform the method of data processing of any of the preceding claims 1-3 by invoking the computer program.
6. A computer-readable storage medium, characterized in that a computer program is stored for implementing a method of data processing according to any of claims 1-3 when being executed by a processor.
CN202010065373.2A 2020-01-20 2020-01-20 Data processing method, device, electronic equipment and computer readable medium Active CN111274503B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010065373.2A CN111274503B (en) 2020-01-20 2020-01-20 Data processing method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010065373.2A CN111274503B (en) 2020-01-20 2020-01-20 Data processing method, device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN111274503A CN111274503A (en) 2020-06-12
CN111274503B true CN111274503B (en) 2024-02-20

Family

ID=70999023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010065373.2A Active CN111274503B (en) 2020-01-20 2020-01-20 Data processing method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN111274503B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113849339B (en) * 2020-06-28 2023-07-11 华为技术有限公司 Method, device and storage medium for restoring running state of application program
CN113360384B (en) * 2021-06-12 2022-08-02 四川虹美智能科技有限公司 App operation stability protection method and device and computer readable medium
CN113485929A (en) * 2021-07-12 2021-10-08 北大方正集团有限公司 Data processing method, device, equipment, storage medium and program product

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468478A (en) * 2015-11-26 2016-04-06 北京京东尚科信息技术有限公司 Recovery method and apparatus for business data after application crash
CN106095568A (en) * 2016-06-01 2016-11-09 努比亚技术有限公司 Memory management device, mobile terminal and method
CN106371946A (en) * 2016-09-13 2017-02-01 乐视控股(北京)有限公司 Browser exception recovery processing method and device
CN106383752A (en) * 2016-08-24 2017-02-08 乐视控股(北京)有限公司 Browser page abnormity recovery processing method and device
CN108052431A (en) * 2017-12-08 2018-05-18 北京奇虎科技有限公司 Terminal program exception closing information processing method, device, terminal
CN108108268A (en) * 2017-11-28 2018-06-01 北京川上科技有限公司 Reboot process method and apparatus are exited in a kind of video record application
CN110147184A (en) * 2018-02-13 2019-08-20 北京京东尚科信息技术有限公司 Navigate the method to retract and control
CN110673986A (en) * 2019-09-23 2020-01-10 北京字节跳动网络技术有限公司 Memory operation abnormity capturing method, device, terminal and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468478A (en) * 2015-11-26 2016-04-06 北京京东尚科信息技术有限公司 Recovery method and apparatus for business data after application crash
CN106095568A (en) * 2016-06-01 2016-11-09 努比亚技术有限公司 Memory management device, mobile terminal and method
CN106383752A (en) * 2016-08-24 2017-02-08 乐视控股(北京)有限公司 Browser page abnormity recovery processing method and device
CN106371946A (en) * 2016-09-13 2017-02-01 乐视控股(北京)有限公司 Browser exception recovery processing method and device
CN108108268A (en) * 2017-11-28 2018-06-01 北京川上科技有限公司 Reboot process method and apparatus are exited in a kind of video record application
CN108052431A (en) * 2017-12-08 2018-05-18 北京奇虎科技有限公司 Terminal program exception closing information processing method, device, terminal
CN110147184A (en) * 2018-02-13 2019-08-20 北京京东尚科信息技术有限公司 Navigate the method to retract and control
CN110673986A (en) * 2019-09-23 2020-01-10 北京字节跳动网络技术有限公司 Memory operation abnormity capturing method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN111274503A (en) 2020-06-12

Similar Documents

Publication Publication Date Title
US20220253458A1 (en) Method and device for synchronizing node data
CN111274503B (en) Data processing method, device, electronic equipment and computer readable medium
CN111555940B (en) Client test method and device, electronic equipment and computer readable storage medium
CN111309415B (en) User Interface (UI) information processing method and device of application program and electronic equipment
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN111400625A (en) Page processing method and device, electronic equipment and computer readable storage medium
CN110727566A (en) Method, device, medium and electronic equipment for acquiring process crash information
US20230385080A1 (en) Method and apparatus for presenting information on lock screen interface, terminal, and storage medium
CN111460432B (en) On-line document authority control method, device, equipment and computer readable medium
CN111858381B (en) Application fault tolerance capability test method, electronic device and medium
CN112256372B (en) Information processing method and device and electronic equipment
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN110717126A (en) Page browsing method and device, electronic equipment and computer readable storage medium
CN111538717B (en) Data processing method, device, electronic equipment and computer readable medium
CN111626787B (en) Resource issuing method, device, medium and equipment
CN111367555B (en) Assertion method, assertion device, electronic equipment and computer readable medium
CN113419992B (en) File clearing configuration page display method and device, electronic equipment and medium
CN114385096B (en) Display control method, device, terminal and storage medium
CN112948108B (en) Request processing method and device and electronic equipment
CN116821379A (en) Multimedia data processing method and device, electronic equipment and medium
CN116821378A (en) Multimedia data processing method and device, electronic equipment and medium
CN116185519A (en) System configuration method, device, electronic equipment and computer readable medium
CN116405737A (en) Interaction method, interaction device, electronic equipment and storage medium
CN115877988A (en) Content resource duplication elimination method and device, electronic equipment and storage medium
CN117093284A (en) Plug-in calling method, device, medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230406

Address after: Room 802, Information Building, 13 Linyin North Street, Pinggu District, Beijing, 101299

Applicant after: Beijing youzhuju Network Technology Co.,Ltd.

Address before: No. 715, 7th floor, building 3, 52 Zhongguancun South Street, Haidian District, Beijing 100081

Applicant before: Beijing infinite light field technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant