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

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

Info

Publication number
CN111274503A
CN111274503A CN202010065373.2A CN202010065373A CN111274503A CN 111274503 A CN111274503 A CN 111274503A CN 202010065373 A CN202010065373 A CN 202010065373A CN 111274503 A CN111274503 A CN 111274503A
Authority
CN
China
Prior art keywords
navigation
app
navigation stack
data
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.)
Granted
Application number
CN202010065373.2A
Other languages
Chinese (zh)
Other versions
CN111274503B (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 Infinite Light Field 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 Infinite Light Field Technology Co Ltd filed Critical Beijing Infinite Light Field 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

Images

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 data processing 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 the page corresponding to the navigation stack according to the state information, wherein the data on the navigation stack and the page corresponding to the navigation stack are used for constructing a current scene; and when the starting recovery operation of the APP is detected, recovering the current scene according to the stored navigation stack and the data on the page corresponding to the navigation stack. The method has the function of restoring the application program after the abnormal restart or the normal manual restart, so that the application program can restore the page and the data on the page before the abnormal restart or the normal restart.

Description

Data processing method and device, electronic equipment and computer readable medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data processing method and apparatus, an electronic device, and a computer-readable medium.
Background
In the prior art, in some scenes, such as the function of registering information, a user fills in a plurality of contents in a plurality of pages, the application crashes suddenly, and when the user opens the page again, some contents return to zero; or the user browses a very important house source, forgets to collect the house source, has no history recording function, and even if the user has a history record, the current scene cannot be restored and recovered; in the prior art, only the error information is reported, and no further processing is carried out.
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 rights scheme is described, and the rights scheme is not described.
The present disclosure addresses the shortcomings of the existing approaches, and provides a method, an apparatus, an electronic device, and a computer-readable medium for processing data, so as to solve the problem of how to recover an application program from 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, including:
acquiring state information of an application program APP;
storing the navigation stack of the APP and data on the page corresponding to the navigation stack according to the state information, wherein the data on the navigation stack and the page corresponding to the navigation stack are used for constructing a current scene;
and when the starting recovery operation of the APP is detected, recovering the current scene 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 the 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 data on the navigation stack and the page corresponding to the navigation stack are used for constructing a current scene;
and the third processing module is used for performing 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 operating instructions;
and the processor is used for executing the data processing method of the first aspect of the disclosure by calling the operation instruction.
In a fourth aspect, the present disclosure provides a computer readable medium storing a computer program for 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 the page corresponding to the navigation stack according to the state information, wherein the data on the navigation stack and the page corresponding to the navigation stack are used for constructing a current scene; and when the starting recovery operation of the APP is detected, recovering the current scene according to the stored navigation stack and the data on the page corresponding to the navigation stack. Therefore, the application program has a recovery function after abnormal restart or normal manual restart, so that the application program can recover the page and the data on the page before the abnormal restart or the normal restart.
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 various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings used in the description of the embodiments of the present disclosure will be briefly described below.
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present 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 are shown in the 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 rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the 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. Moreover, 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 "include" and variations thereof as used herein are 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". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing the devices, modules or units, and are not used for limiting the devices, modules or units to be different devices, modules or units, and also for limiting the sequence or interdependence relationship of the functions executed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Example one
The embodiment of the present disclosure provides a data processing method, a flowchart of the method is shown in fig. 1, and the method includes:
s101, state information of the application program APP is obtained.
In the embodiment of the present disclosure, APP (Application) mainly refers to software installed on a smartphone, and APP is a main means for providing a richer use experience for a user.
And S102, storing the navigation stack of the APP and data on the page corresponding to the navigation stack according to the state information, wherein the data on the navigation stack and the page corresponding to the navigation stack are used for constructing the 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 the scattered content and the function into a finished system with a structure.
S103, when the starting recovery operation of the APP is detected, recovery processing is carried out on the current scene according to the stored navigation stack and the data on the page corresponding to the navigation stack.
In the embodiment of the present disclosure, the current scenario includes the hierarchical relationship of the stored pages and the data on the pages.
In the embodiment of the disclosure, state information of an application program APP is obtained; storing the navigation stack of the APP and data on the page corresponding to the navigation stack according to the state information, wherein the data on the navigation stack and the page corresponding to the navigation stack are used for constructing a current scene; and when the starting recovery operation of the APP is detected, recovering the current scene according to the stored navigation stack and the data on the page corresponding to the navigation stack. Therefore, the application program has a recovery function after abnormal restart or normal manual restart, so that the application program can recover the page and the data on the page before the abnormal restart or the normal restart.
In an embodiment of the present disclosure, the status information includes at least one of:
the APP is abnormal and the APP exits off;
the APP is normal and the APP exits off.
In the embodiment of the present 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 the pages corresponding to the navigation stack.
In the embodiment of the present disclosure, according to the state information, the navigation stack of the APP and the data on the page corresponding to the navigation stack are stored, including:
and when the APP is abnormal and the APP quits 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 exits abnormally, 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, and the non-start recovery operation is used for indicating that the terminal does not recover the current scene.
In the embodiment of the disclosure, when the application program APP exits abnormally, a page corresponding to the current navigation stack is traversed, and all pages and data information on the navigation path are stored locally; when the App is started next time, prompting a user whether to recover the page and the information data caused by the last abnormity; and if the user selects recovery, the navigation stack and the data information on the page are taken out from the local to carry out scene recovery one by one, and if the user selects no recovery, 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 abnormally restarted or normally and manually restarted, the application program has a recovery function, after the APP is abnormally quitted, when the APP is started next time, a user is prompted whether to recover a page and data on the page caused by the last abnormal operation, when the user selects recovery, a navigation stack is locally taken out, and the page and the data on the page are subjected to scene recovery one by one, so that the page and the data on the page before the application program is abnormally restarted or normally restarted are recovered; and when the user selects that the recovery is not needed, deleting the locally cached page and the data on the page.
Example two
Based on the same inventive concept, the embodiment of the present disclosure further provides a data processing apparatus, 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 APP;
a second processing module 302, 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;
a third processing module 303, configured to, when a start recovery operation of the APP is detected, perform recovery processing on the current scene according to the stored navigation stack and 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 off;
the APP is normal and the APP exits off.
In the embodiment of the present 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 the pages corresponding to the navigation stack.
In the embodiment of the present disclosure, the second processing module 302 is specifically configured to, when the APP is abnormal and the APP exits from being closed, traverse a page corresponding to the navigation path of the navigation stack, and store the navigation path of the navigation stack and data on the page corresponding to the navigation path of the navigation stack in 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 detecting a non-start recovery operation of the APP, where the non-start recovery operation is used to indicate that the terminal does not recover 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 the page corresponding to the navigation stack according to the state information, wherein the data on the navigation stack and the page corresponding to the navigation stack are used for constructing a current scene; and when the starting recovery operation of the APP is detected, recovering the current scene according to the stored navigation stack and the data on the page corresponding to the navigation stack. Therefore, the application program has a recovery function after abnormal restart or normal manual restart, so that the application program can recover the page and the data on the page before the abnormal restart or the normal restart.
For the content that is not described in detail in the data processing apparatus provided in the embodiment of the present disclosure, reference may be made to the data processing method provided in the first embodiment, and the beneficial effects that can be achieved by the data processing apparatus provided in the embodiment of the present disclosure are the same as the data processing method provided in the first embodiment, and are not described again here.
EXAMPLE III
Referring now to FIG. 3, a block diagram of an electronic device 800 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The electronic device includes: a memory and a processor, wherein the processor may be referred to as the processing device 801 described below, and the memory may include at least one of a Read Only Memory (ROM)802, a Random Access Memory (RAM)803, and a storage device 808, as shown in fig. 3:
the electronic device 800 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 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 bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 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 illustrates 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 alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 present 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 contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, 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 communications 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 network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled 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 the page corresponding to the navigation stack according to the state information, wherein the data on the navigation stack and the page corresponding to the navigation stack are used for constructing a current scene; and when the starting recovery operation of the APP is detected, recovering the current scene according to the stored navigation stack and the data on the page corresponding to the navigation stack.
Computer program code for carrying out operations for the present disclosure may be written in any combination of 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart 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 described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the designation of a module or unit does not in some cases constitute a limitation of the unit itself.
The functions described herein above 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: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), 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. A 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.
According to one or more embodiments of the present disclosure, an embodiment provides a method of data processing, including:
acquiring state information of an application program APP;
storing the navigation stack of the APP and data on the page corresponding to the navigation stack according to the state information, wherein the data on the navigation stack and the page corresponding to the navigation stack are used for constructing a current scene;
and when the starting recovery operation of the APP is detected, recovering the current scene 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 off;
the APP is normal and the APP exits off.
In the embodiment of the present 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 the pages corresponding to the navigation stack.
In the embodiment of the present disclosure, the second processing module 302 is specifically configured to, when the APP is abnormal and the APP exits from being closed, traverse a page corresponding to the navigation path of the navigation stack, and store the navigation path of the navigation stack and data on the page corresponding to the navigation path of the navigation stack in 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 detecting a non-start recovery operation of the APP, where the non-start recovery operation is used to indicate that the terminal does not recover the current scene.
According to one or more embodiments of the present disclosure, a second embodiment provides an apparatus for data processing, including:
the first processing module is used for acquiring the 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 data on the navigation stack and the page corresponding to the navigation stack are used for constructing a current scene;
and the third processing module is used for performing 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 off;
the APP is normal and the APP exits off.
In the embodiment of the present 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 the pages corresponding to the navigation stack.
In the embodiment of the present disclosure, the second processing module is specifically configured to, when the APP is abnormal and the APP exits from being closed, traverse a page corresponding to the navigation path of the navigation stack, and store the navigation path of the navigation stack and data on the page corresponding to the navigation path of the navigation stack in the terminal.
In an 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-startup recovery operation of the APP is detected, where the non-startup recovery operation is used to instruct the terminal not to recover the current scene.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while 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. Under 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 limitations on the scope of the 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 disclosed as example forms of implementing the claims.

Claims (10)

1. A data processing method is applied to a terminal, and is characterized by comprising the following steps:
acquiring state information of an application program APP;
storing the navigation stack of the APP and data on the page corresponding to the navigation stack according to the state information, wherein the data on the navigation stack and the page corresponding to the navigation stack are used for constructing a current scene;
and when the starting recovery operation of the APP is detected, recovering the current scene according to the stored navigation stack and the data on the page corresponding to the navigation stack.
2. The method of claim 1, wherein the status information comprises at least one of:
the APP is abnormal and the APP exits off;
the APP is normal and the APP exits off.
3. The method of claim 1, wherein the current scene comprises a navigation bar constructed by the navigation stack and data on pages corresponding to the navigation stack, and wherein the navigation stack comprises a stack structure of the navigation bar, and the stack structure is used for representing a hierarchical relationship between the pages corresponding to the navigation stack.
4. The method according to claim 1 or 2, wherein the storing the navigation stack of the APP and the data on the page corresponding to the navigation stack according to the state information includes:
and when the APP is abnormal and the APP quits 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.
5. The method of claim 1, further comprising:
and when the non-starting recovery operation of the APP is detected, deleting the navigation stack and data on the page corresponding to the navigation stack from the terminal, wherein the non-starting recovery operation is used for indicating the terminal not to recover the current scene.
6. A data processing device applied to a terminal is characterized by comprising:
the first processing module is used for acquiring the 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 data on the navigation stack and the page corresponding to the navigation stack are used for constructing a current scene;
and the third processing module is used for performing 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.
7. The apparatus of claim 6, comprising:
and the second processing module is used for 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 when the APP is abnormal and the APP quits closing.
8. The apparatus of claim 6, comprising:
the third processing module is configured to delete the navigation stack and data on a page corresponding to the navigation stack from the terminal when detecting a non-startup recovery operation of the APP, where the non-startup recovery operation is used to instruct the terminal not to recover the current scene.
9. An electronic device, comprising: a processor, a memory;
the memory for storing a computer program;
the processor is configured to execute the data processing method according to any one of claims 1 to 5 by calling the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored which, when being executed by a processor, is adapted to carry out the method of data processing according to any one of claims 1-5.
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 true CN111274503A (en) 2020-06-12
CN111274503B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360384A (en) * 2021-06-12 2021-09-07 四川虹美智能科技有限公司 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
CN113849339A (en) * 2020-06-28 2021-12-28 华为技术有限公司 Method, device and storage medium for recovering running state of application program

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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113849339A (en) * 2020-06-28 2021-12-28 华为技术有限公司 Method, device and storage medium for recovering running state of application program
WO2022001504A1 (en) * 2020-06-28 2022-01-06 华为技术有限公司 Method and apparatus for restoring running state of application program, and storage medium
CN113360384A (en) * 2021-06-12 2021-09-07 四川虹美智能科技有限公司 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

Also Published As

Publication number Publication date
CN111274503B (en) 2024-02-20

Similar Documents

Publication Publication Date Title
CN111274503B (en) Data processing method, device, electronic equipment and computer readable medium
CN110633126B (en) Information display method and device and electronic equipment
CN111459364B (en) Icon updating method and device and electronic equipment
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
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN111163336B (en) Video resource pushing method and device, electronic equipment and computer readable medium
CN110554918B (en) Current limiting method, current limiting device, electronic equipment and computer readable storage medium
CN111858381B (en) Application fault tolerance capability test method, electronic device and medium
CN111460432B (en) On-line document authority control method, device, equipment and computer readable medium
CN111756953A (en) Video processing method, device, equipment and computer readable medium
CN110717126A (en) Page browsing method and device, electronic equipment and computer readable storage medium
CN110647702A (en) Picture preloading method and device, electronic equipment and readable medium
CN112241229B (en) Terminal display control method, device, terminal and storage medium
CN111444457B (en) Data release method and device, storage medium and electronic equipment
CN114861106A (en) Information processing method, device, electronic equipment and storage medium
CN114611483A (en) Method and device for automatically upgrading nuclear power DCS control logic diagram and function diagram association
CN111538717A (en) Data processing method and device, electronic equipment and computer readable medium
CN111626787B (en) Resource issuing method, device, medium and equipment
CN113419992B (en) File clearing configuration page display method and device, electronic equipment and medium
CN111367555B (en) Assertion method, assertion device, electronic equipment and computer readable medium
CN115877988A (en) Content resource duplication elimination method and device, electronic equipment and storage medium
CN114186158A (en) Page resource preloading method and device, storage medium and electronic equipment
CN116821379A (en) Multimedia data processing method and device, electronic equipment and medium
CN116405737A (en) Interaction method, interaction device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
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.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant