CN114510308B - Method, device, equipment and medium for storing application page by mobile terminal - Google Patents
Method, device, equipment and medium for storing application page by mobile terminal Download PDFInfo
- Publication number
- CN114510308B CN114510308B CN202210107729.3A CN202210107729A CN114510308B CN 114510308 B CN114510308 B CN 114510308B CN 202210107729 A CN202210107729 A CN 202210107729A CN 114510308 B CN114510308 B CN 114510308B
- Authority
- CN
- China
- Prior art keywords
- page
- control
- information
- target page
- mobile terminal
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The disclosure provides a method, a device, electronic equipment, a storage medium and a program product for storing an application page in a mobile terminal, and relates to the computer technology, in particular to the field of mobile terminal application. The implementation scheme is as follows: receiving a request for storing a target page displayed in an application program; in response to the request, determining a control type of a control for displaying page content in the target page, wherein the control type indicates whether the control is a native control of an operating system of the mobile terminal; performing an acquisition operation corresponding to the control type to acquire page information of a target page, wherein the page information describes the space layout of the control and the page content displayed by the control; based on page information of the target page, obtaining a reconstructed version of the target page; the reconstructed version is stored as a target page.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a mobile terminal application field, and in particular, to a method, an apparatus, an electronic device, a storage medium, and a program product for storing an application page in a mobile terminal.
Background
In recent years, with rapid development of computer technology, functions of an application program on a mobile terminal have become more and more abundant, and when the mobile terminal uses the application program, a user sometimes needs to save the entire content of an application page, such as text, pictures, and hyperlinks corresponding to the text and the pictures. However, the existing schemes are all based on the webpage end for storing the application page, and are not specific to the application of the mobile terminal, so that the mobile terminal cannot store page information in the application program, and the experience of a user is poor.
The approaches described in this section are not necessarily approaches that have been previously conceived or pursued. Unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art merely by virtue of their inclusion in this section. Similarly, the problems mentioned in this section should not be considered as having been recognized in any prior art unless otherwise indicated.
Disclosure of Invention
The present disclosure provides a method, apparatus, electronic device, computer readable storage medium, and computer program product for content interaction with a non-native rendering engine.
According to an aspect of the present disclosure, there is provided a method of content interaction with a non-native rendering engine, the method comprising: receiving a request for storing a target page displayed in an application program; in response to the request, determining a control type of a control for displaying page content in the target page, wherein the control type indicates whether the control is a native control of an operating system of the mobile terminal; performing an acquisition operation corresponding to the control type to acquire page information of a target page, wherein the page information describes the space layout of the control and the page content displayed by the control; based on page information of the target page, obtaining a reconstructed version of the target page; the reconstructed version is stored as a target page.
According to another aspect of the present disclosure, there is provided an apparatus for storing an application page in a mobile terminal, the apparatus comprising: the first unit is configured to receive a request for storing a target page displayed in an application program; a second unit configured to determine, in response to the request, a control type of a control for displaying page content in the target page, the control type indicating whether the control is a native control of an operating system of the mobile terminal; the third unit is configured to execute an acquisition operation corresponding to the control type so as to acquire page information of the target page, wherein the page information describes the space layout of the control and the page content displayed by the control; a fourth unit configured to obtain a reconstructed version of the target page based on page information of the target page; and a fifth unit configured to store the reconstructed version as a target page.
According to another aspect of the present disclosure, there is provided an electronic device including: a memory, a processor and a computer program stored on the memory, wherein the processor is configured to execute the computer program to implement a method of storing application pages at a mobile terminal as described above.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform a method of storing an application page at a mobile terminal as described above.
According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program, when being executed by a processor, implements a method of storing application pages at a mobile terminal as described above.
According to one or more embodiments of the present disclosure, structured storage of application page information in a mobile terminal is achieved, so that the method and apparatus of the embodiments of the present disclosure are applicable to various operating systems and various application programs of the mobile terminal, and in different application programs, the application program page can be stored, thereby improving user experience.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The accompanying drawings illustrate exemplary embodiments and, together with the description, serve to explain exemplary implementations of the embodiments. The illustrated embodiments are for exemplary purposes only and do not limit the scope of the claims. Throughout the drawings, identical reference numerals designate similar, but not necessarily identical, elements.
FIG. 1 illustrates a schematic diagram of an exemplary system in which various methods described herein may be implemented, in accordance with an embodiment of the present disclosure;
FIG. 2 illustrates a flow chart of a method of storing application pages at a mobile terminal according to an embodiment of the present disclosure;
FIG. 3 illustrates a flowchart of a method of performing an acquisition operation corresponding to a control type in the method of FIG. 2, according to an embodiment of the present disclosure;
FIG. 4 shows a schematic diagram of a process of performing a get operation with a native control according to an embodiment of the present disclosure;
FIG. 5 shows a block diagram of an apparatus for storing application pages at a mobile terminal according to an embodiment of the present disclosure;
fig. 6 illustrates a block diagram of an exemplary electronic device that can be used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the present disclosure, the use of the terms "first," "second," and the like to describe various elements is not intended to limit the positional relationship, timing relationship, or importance relationship of the elements, unless otherwise indicated, and such terms are merely used to distinguish one element from another. In some examples, a first element and a second element may refer to the same instance of the element, and in some cases, they may also refer to different instances based on the description of the context.
The terminology used in the description of the various examples in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context clearly indicates otherwise, the elements may be one or more if the number of the elements is not specifically limited. Furthermore, the term "and/or" as used in this disclosure encompasses any and all possible combinations of the listed items.
The user may generate a page for saving the current electronic device display when using the electronic device, and the page may be a page at a web page end or an application page in the mobile terminal. In the prior art, there is no implementation scheme for saving page information in an application of a mobile terminal device for the mobile terminal. Thus limiting the use of the user and resulting in a poor user experience.
In order to solve the above problems, the present inventors propose a method for storing application pages in a mobile terminal, which can structurally store mobile terminal application page information. By this method, the above-mentioned problems can be alleviated, reduced or even eliminated.
Embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
Fig. 1 illustrates a schematic diagram of an exemplary system 100 in which various methods and apparatus described herein may be implemented, in accordance with an embodiment of the present disclosure. Referring to fig. 1, the system 100 includes one or more client devices 101, 102, 103, 104, 105, and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. Client devices 101, 102, 103, 104, 105, and 106 may be configured to execute one or more applications.
In an embodiment of the present disclosure, the server 120 may run one or more services or software applications that enable execution of a method of analyzing page information of a target page input by a user and generating a reconstructed version of the target page based on the page information of the target page.
In some embodiments, server 120 may also provide other services or software applications that may include non-virtual environments and virtual environments. In some embodiments, these services may be provided as web-based services or cloud services, for example, provided to users of client devices 101, 102, 103, 104, 105, and/or 106 under a software as a service (SaaS) model.
In the configuration shown in fig. 1, server 120 may include one or more components that implement the functions performed by server 120. These components may include software components, hardware components, or a combination thereof that are executable by one or more processors. A user operating client devices 101, 102, 103, 104, 105, and/or 106 may in turn utilize one or more client applications to interact with server 120 to utilize the services provided by these components. It should be appreciated that a variety of different system configurations are possible, which may differ from system 100. Accordingly, FIG. 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.
The user may receive page information of a target page input by the user using the client devices 101, 102, 103, 104, 105 and/or 106 and forward to the server 120, receive audio information transmitted by the server and information defining how to render the avatar after the page information of the target page input by the user is processed by the server 120, and render based on the information, output the avatar and the action to the user. The client device may provide an interface that enables a user of the client device to interact with the client device. The client device may also output information to the user via the interface. Although fig. 1 depicts only six client devices, those skilled in the art will appreciate that the present disclosure may support any number of client devices.
Client devices 101, 102, 103, 104, 105, and/or 106 may include various types of computer devices, such as portable handheld devices, general purpose computers (such as personal computers and laptop computers), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, gaming systems, thin clients, various messaging devices, sensors or other sensing devices, and the like. These computer devices may run various types and versions of software applications and operating systems, such as MICROSOFT Windows, APPLE iOS, UNIX-like operating systems, linux, or Linux-like operating systems (e.g., GOOGLE Chrome OS); or include various mobile operating systems such as MICROSOFT Windows Mobile OS, iOS, windows Phone, android. Portable handheld devices may include cellular telephones, smart phones, tablet computers, personal Digital Assistants (PDAs), and the like. Wearable devices may include head mounted displays (such as smart glasses) and other devices. The gaming system may include various handheld gaming devices, internet-enabled gaming devices, and the like. The client device is capable of executing a variety of different applications, such as various Internet-related applications, communication applications (e.g., email applications), short Message Service (SMS) applications, and may use a variety of communication protocols.
Network 110 may be any type of network known to those skilled in the art that may support data communications using any of a number of available protocols, including but not limited to TCP/IP, SNA, IPX, etc. For example only, the one or more networks 110 may be a Local Area Network (LAN), an ethernet-based network, a token ring, a Wide Area Network (WAN), the internet, a virtual network, a Virtual Private Network (VPN), an intranet, an extranet, a Public Switched Telephone Network (PSTN), an infrared network, a wireless network (e.g., bluetooth, WIFI), and/or any combination of these and/or other networks.
The server 120 may include one or more general purpose computers, special purpose server computers (e.g., PC (personal computer) servers, UNIX servers, mid-end servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and/or combination. The server 120 may include one or more virtual machines running a virtual operating system, or other computing architecture that involves virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain virtual storage devices of the server). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.
The computing units in server 120 may run one or more operating systems including any of the operating systems described above as well as any commercially available server operating systems. Server 120 may also run any of a variety of additional server applications and/or middle tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, etc.
In some implementations, server 120 may include one or more applications to analyze and consolidate data feeds and/or event updates received from users of client devices 101, 102, 103, 104, 105, and 106. Server 120 may also include one or more applications to display data feeds and/or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and 106.
In some implementations, the server 120 may be a server of a distributed system or a server that incorporates a blockchain. The server 120 may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. The cloud server is a host product in a cloud computing service system, so as to solve the defects of large management difficulty and weak service expansibility in the traditional physical host and virtual private server (VPS, virtual Private Server) service.
The system 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of databases 130 may be used to store information such as audio files and video files. The data store 130 may reside in a variety of locations. For example, the data store used by the server 120 may be local to the server 120, or may be remote from the server 120 and may communicate with the server 120 via a network-based or dedicated connection. The data store 130 may be of different types. In some embodiments, the data store used by server 120 may be a database, such as a relational database. One or more of these databases may store, update, and retrieve the databases and data from the databases in response to the commands.
In some embodiments, one or more of databases 130 may also be used by applications to store application data. The databases used by the application may be different types of databases, such as key value stores, object stores, or conventional stores supported by the file system.
The system 100 of fig. 1 may be configured and operated in various ways to enable application of the various methods and apparatus described in accordance with the present disclosure.
According to one aspect of the present disclosure, a method of storing an application page at a mobile terminal is provided. Fig. 2 illustrates a flowchart of a method 200 of storing an application page at a mobile terminal according to an embodiment of the present disclosure. The method 200 may be applied to any of the client devices 101, 102, 103, 104, 105, and 106 in fig. 1. As shown in fig. 2, the method 200 may include the steps of:
in step 201, a request to store a target page presented within an application is received.
In one example, a user may issue a request to save a target page to a mobile terminal device while using the mobile terminal device, such as by way of a gesture, voice, key press, or touch. It will be appreciated that the target page is not only a page of the application that the user is browsing, but may be a page within a user-specified application.
In step 202, in response to the request, a control type for a control that exposes page content in the target page is determined, the control type indicating whether the control is a native control of an operating system of the mobile terminal.
At present, an application program of the mobile terminal displays page information through a control. Applications on mobile terminal devices mainly use two types of controls, a Webview control and a native control of the operating system of the mobile terminal. So when an application program is implemented by different controls, page information of the application program needs to be acquired through different schemes.
In one example, the mobile terminal device, upon receiving the storage request, can determine the control type that exposes the page content in the target page by crawling the application's data packets and analyzing the data packets.
Alternatively or additionally, in another example, the mobile terminal device may also determine the control type that exposes the page content in the target page by analyzing the code of the application page layout boundary interface.
In step 203, an acquiring operation corresponding to the control type is performed to acquire page information of the target page, where the page information describes a spatial layout of the control and page content exhibited by the control.
In some examples, the page information includes, but is not limited to, size information of the controls, mutual positional relationship information between the controls, and information of whether the controls are visible, as well as text information, picture information presented by the controls.
The execution of the acquisition operation corresponding to the control type in step 203 will be described in detail later with reference to fig. 3 and 4.
In step 204, a reconstructed version of the target page is obtained based on the page information of the target page.
According to some embodiments, the mobile terminal transmits page information of the target page to the server.
In some examples, after obtaining information such as size information of the controls, mutual position relation information between the controls and information whether the controls are visible or not, and page information of a target page such as text information and picture information displayed by the controls, the mobile terminal sends all data to the server through a data packet.
According to some embodiments, a reconstructed version is received from a server, wherein the reconstructed version is generated by the server de-redundancy page information for a target page and reconstructing the page based on the de-redundant page information.
In some examples, the server may first remove redundant page information after receiving a data packet including page information sent by the mobile terminal. In some examples, the repeated page information may be that the mobile terminal repeatedly collects the size information of the controls, the mutual position relation information between the controls and the information of whether the controls are visible or not, and the page information of the target page such as text information and picture information displayed by the controls when collecting the page information. And finally, reconstructing the page based on the page information after removing the redundancy to obtain a reconstructed version of the target page.
In step 205, the reconstructed version is stored as the target page.
And after obtaining the reconstructed version of the target page, the server sends the reconstructed version to the mobile terminal equipment. And the mobile terminal equipment stores the reconstructed version after receiving the reconstructed version.
By the method, the page of the application program is stored in the mobile terminal, and pictures and characters in the stored page can be copied.
Fig. 3 illustrates a flowchart of a method 203 of acquisition operations corresponding to a control type in execution in the method 200 of fig. 2, according to an embodiment of the present disclosure. The method 203 may comprise the following steps.
In step 301, in response to the control type indicating control being a native control of an operating system of the mobile terminal, page information of an initial page corresponding to a target page is obtained, where the initial page is a page displayed in an application program when a request is received.
Referring to fig. 4, fig. 4 shows a schematic diagram of a process 400 of performing a fetch operation with a native control according to an embodiment of the present disclosure. In fig. 4, 402-409 are all different child controls. 401 is a slider control and 403-405 are child controls of 401. Page 410 and page 411 respectively show two pages of an application of the mobile terminal.
In one example, page 410 is the page when the mobile terminal receives a storage request for a presentation page within the application. After the mobile terminal determines that the control for displaying the page of the application is a native control, the mobile terminal may obtain all of the page information in page 410.
In step 302, at least one of the native controls for controlling the sliding operation is determined.
Continuing with the above example, the mobile terminal, after obtaining the page information, may also determine whether a slip control exists on the page 410. In fig. 4, the mobile terminal will also determine a slip control 401.
In step 303, for each sliding control, page information of a plurality of additional pages obtained after the sliding operation of the sliding control on the basis of the initial page is obtained.
With continued reference to the above example, in FIG. 4, page 411 is obtained after sliding the slider control 401 in page 410. In page 411, child control 403 can be seen hidden at this time because it was slid, but new child control 409 is loaded. Page 411 can be considered an additional page to the initial page at this point. After the page 410 is changed to the page 411, the mobile terminal may also acquire page information of the page 411.
In practice, some text and pictures of applications in mobile terminal devices are accompanied by hyperlinks to jump to the corresponding page, so the page information also includes the hyperlink information presented by the native control.
According to some embodiments, the page information of the target page includes hyperlink information exposed by the native control, and performing the obtaining operation corresponding to the control type further includes: traversing each child control clicking on any one of the native controls to obtain hyperlink information exhibited by any one of the native controls.
In the example of FIG. 4, all of the controls 401-409 in page 401 are native controls. In order to acquire the hyperlink of the page information, the mobile terminal may perform traversal clicking on all the child controls 402-408 displayed in the page 410 in a JS injection manner. And finally, obtaining the hyperlink information of the page information through the feedback result.
At present, pages of many mobile terminal applications also show page contents through a Webview control, so the Webview control is also widely used in the applications of the mobile terminals.
According to some embodiments, in step 203, performing the acquisition operation corresponding to the control type may include: and responding to the control type indicating control as a Webview control different from the native control of the operating system of the mobile terminal, and acquiring page information of the target page.
Since Webview is a presentation of a page by loading an html file, the mobile terminal can directly acquire the entire contents including the initial page and all additional pages when acquiring page information.
According to some embodiments, the page information of the target page includes hyperlink information exposed by the Webview control, and performing the obtaining operation corresponding to the control type further includes: clicking on each child control in any one of the Webview controls is traversed to obtain hyperlink information presented by any one of the Webview controls.
In one example, all of the controls 401-409 in page 401 are Webview controls. Referring to fig. 4, in order to obtain the hyperlink of the page information, the mobile terminal further performs traversal clicking on all the child controls 402-408 displayed in the page 410 in a JS injection manner. And finally, obtaining the hyperlink information of the page information through the feedback result.
According to another aspect of the disclosure, an apparatus for storing an application page in a mobile terminal is also provided. Fig. 5 shows a block diagram of an apparatus 500 for storing an application page at a mobile terminal according to an embodiment of the present disclosure. As shown in fig. 5, the apparatus 500 includes: the first unit is configured to receive a request for storing a target page displayed in an application program; a second unit configured to determine, in response to the request, a control type of a control for displaying page content in the target page, the control type indicating whether the control is a native control of an operating system of the mobile terminal; the third unit is configured to execute an acquisition operation corresponding to the control type so as to acquire page information of the target page, wherein the page information describes the space layout of the control and the page content displayed by the control; a fourth unit configured to obtain a reconstructed version of the target page based on page information of the target page; and a fifth unit configured to store the reconstructed version as a target page.
According to some embodiments, the third unit may comprise: the first subunit is configured to respond to the control type indicating control being a native control of an operating system of the mobile terminal, acquire page information of an initial page corresponding to the target page, wherein the initial page is a page displayed in the application program when a request is received. A second subunit configured to determine at least one of the native controls for controlling a sliding operation; and a third subunit configured to acquire, for each sliding control, page information of a plurality of additional pages obtained after a sliding operation of the sliding control on the basis of the initial page.
According to some embodiments, the third unit may comprise: and the fourth subunit is configured to traverse each child control clicking any one of the native controls to obtain hyperlink information exhibited by any one of the native controls.
According to some embodiments, the third unit may comprise: and a fifth subunit configured to obtain page information of the target page in response to the control type indicating control being a Webview control different from a native control of an operating system of the mobile terminal.
According to some embodiments, the third unit may comprise: and a sixth subunit configured to traverse and click each of the any one of the Webview controls to obtain the hyperlink information presented by the any one of the Webview controls.
According to some embodiments, the fourth unit may comprise: a seventh subunit configured to send page information of the target page to the server; and an eighth subunit configured to receive the reconstructed version from the server, wherein the reconstructed version is generated by the server de-redundancy the page information of the target page and reconstructing the page based on the de-redundant page information.
According to embodiments of the present disclosure, there is also provided an electronic device, a readable storage medium and a computer program product.
Referring to fig. 6, a block diagram of an electronic device 600 that may be a server or a client of the present disclosure, which is an example of a hardware device that may be applied to aspects of the present disclosure, will now be described. Electronic devices are intended to represent various forms of digital electronic computer devices, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the apparatus 600 includes a computing unit 601 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 602 or a computer program loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 may also be stored. The computing unit 601, ROM 602, and RAM 603 are connected to each other by a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Various components in the device 600 are connected to the I/O interface 605, including: an input unit 606, an output unit 607, a storage unit 608, and a communication unit 609. The input unit 606 may be any type of device capable of inputting information to the device 600, the input unit 606 may receive input numeric or character information and generate key signal inputs related to user settings and/or function control of the electronic device, and may include, but is not limited to, a mouse, a keyboard, a touch screen, a trackpad, a trackball, a joystick, a microphone, and/or a remote control. The output unit 607 may be any type of device capable of presenting information and may include, but is not limited to, a display, speakers, video/audio output terminals, vibrators, and/or printers. Storage unit 608 may include, but is not limited to, magnetic disks, optical disks. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers and/or chipsets, such as bluetooth (TM) devices, 802.11 devices, wiFi devices, wiMax devices, cellular communication devices, and/or the like.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as method 200. For example, in some embodiments, the method 200 may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. One or more of the steps of the method 200 described above may be performed when a computer program is loaded into RAM 603 and executed by the computing unit 601. Alternatively, in other embodiments, computing unit 601 may be configured to perform method 200 by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
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.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
Although embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it is to be understood that the foregoing methods, systems, and apparatus are merely exemplary embodiments or examples, and that the scope of the present invention is not limited by these embodiments or examples but only by the claims following the grant and their equivalents. Various elements of the embodiments or examples may be omitted or replaced with equivalent elements thereof. Furthermore, the steps may be performed in a different order than described in the present disclosure. Further, various elements of the embodiments or examples may be combined in various ways. It is important that as technology evolves, many of the elements described herein may be replaced by equivalent elements that appear after the disclosure.
Claims (8)
1. A method of storing an application page at a mobile terminal, comprising:
receiving a request for storing a target page displayed in an application program;
determining a control type of a control for displaying page content in the target page in response to the request, wherein the control type indicates whether the control is a native control of an operating system of the mobile terminal;
executing an acquisition operation corresponding to the control type to acquire page information of the target page, wherein the page information describes the spatial layout of the control and page content displayed by the control, and the executing the acquisition operation corresponding to the control type comprises the following steps:
responding to the control type indicating that the control is a native control of an operating system of the mobile terminal, acquiring page information of an initial page corresponding to the target page, wherein the initial page is a page displayed in the application program when the request is received;
determining at least one sliding control for controlling sliding operation in the native controls;
for each sliding control, acquiring page information of a plurality of additional pages obtained after the sliding operation of the sliding control on the basis of the initial page; and
acquiring the page information of the target page in response to the control type indicating that the control is a Webview control different from a native control of an operating system of the mobile terminal, wherein the page information of the target page comprises hyperlink information exhibited by the Webview control, and executing the acquiring operation corresponding to the control type further comprises:
traversing and clicking each sub-control in any one of the Webview controls to obtain the hyperlink information displayed by any one of the Webview controls;
based on the page information of the target page, obtaining a reconstructed version of the target page; and
and storing the reconstructed version as the target page.
2. The method of claim 1, wherein the control type indicates that the control is a native control of an operating system of the mobile terminal, acquiring page information of the target page, the page information of the target page including hyperlink information exposed by the native control, and performing the acquiring operation corresponding to the control type further comprises:
traversing each child control clicking on any one of the native controls to obtain the hyperlink information exhibited by the any one of the native controls.
3. The method of claim 1 or 2, wherein obtaining the reconstructed version of the target page based on page information of the target page comprises:
the page information of the target page is sent to a server; and
the reconstructed version is received from the server, wherein the reconstructed version is generated by the server de-redundancy page information for the target page and reconstructing a page based on the de-redundant page information.
4. An apparatus for storing an application page in a mobile terminal, comprising:
the first unit is configured to receive a request for storing a target page displayed in an application program;
a second unit configured to determine, in response to the request, a control type of a control for exposing page content in the target page, the control type indicating whether the control is a native control of an operating system of the mobile terminal;
a third unit configured to perform an acquiring operation corresponding to the control type to acquire page information of the target page, where the page information describes a spatial layout of the control and page content exhibited by the control, and the third unit includes:
the first subunit is configured to respond to the control type to indicate that the control is a native control of an operating system of the mobile terminal, and acquire page information of an initial page corresponding to the target page, wherein the initial page is a page displayed in the application program when the request is received;
a second subunit configured to determine at least one of the native controls for controlling a sliding operation;
the third subunit is configured to acquire, for each sliding control, page information of a plurality of additional pages obtained after the sliding operation of the sliding control on the basis of the initial page;
a fifth subunit, configured to obtain page information of the target page in response to the control type indicating that the control is a Webview control different from a native control of an operating system of the mobile terminal, where the page information of the target page includes hyperlink information exhibited by the Webview control; and
a sixth subunit configured to traverse and click each sub-control in any one Webview control to obtain the hyperlink information displayed by any one Webview;
a fourth unit configured to obtain a reconstructed version of the target page based on page information of the target page; and
and a fifth unit configured to store the reconstructed version as the target page.
5. The apparatus of claim 4, wherein the control type indicates that the control is a native control of an operating system of the mobile terminal, the page information of the target page is obtained, the page information of the target page includes hyperlink information exhibited by the native control, and the third unit further comprises:
and a fourth subunit configured to traverse each child control clicking on any one of the native controls to obtain the hyperlink information exhibited by the any one of the native controls.
6. The apparatus of claim 4 or 5, wherein the fourth unit comprises:
a seventh subunit configured to send page information of the target page to a server; and
an eighth subunit configured to receive the reconstructed version from the server, wherein the reconstructed version is generated by the server de-redundancy page information of the target page and reconstructing a page based on the de-redundant page information.
7. An electronic device, comprising:
a memory, a processor and a computer program stored on the memory,
wherein the processor is configured to execute the computer program to implement the method of any of claims 1-3.
8. A non-transitory computer readable storage medium storing computer instructions which, when executed by a computer, cause the computer to perform the method of any of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210107729.3A CN114510308B (en) | 2022-01-28 | 2022-01-28 | Method, device, equipment and medium for storing application page by mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210107729.3A CN114510308B (en) | 2022-01-28 | 2022-01-28 | Method, device, equipment and medium for storing application page by mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114510308A CN114510308A (en) | 2022-05-17 |
CN114510308B true CN114510308B (en) | 2023-10-03 |
Family
ID=81552651
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210107729.3A Active CN114510308B (en) | 2022-01-28 | 2022-01-28 | Method, device, equipment and medium for storing application page by mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114510308B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116466958B (en) * | 2023-03-21 | 2023-11-21 | 摩尔线程智能科技(北京)有限责任公司 | Construction method and device of An Zhuo Rongqi, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020253389A1 (en) * | 2019-06-19 | 2020-12-24 | 深圳壹账通智能科技有限公司 | Page translation method and apparatus, medium, and electronic device |
CN113515441A (en) * | 2021-03-11 | 2021-10-19 | 卓望数码技术(深圳)有限公司 | Application information acquisition method and system, electronic equipment and storage medium |
CN113641936A (en) * | 2021-08-12 | 2021-11-12 | 百度在线网络技术(北京)有限公司 | Method and device for page jump, electronic equipment and storage medium |
-
2022
- 2022-01-28 CN CN202210107729.3A patent/CN114510308B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020253389A1 (en) * | 2019-06-19 | 2020-12-24 | 深圳壹账通智能科技有限公司 | Page translation method and apparatus, medium, and electronic device |
CN113515441A (en) * | 2021-03-11 | 2021-10-19 | 卓望数码技术(深圳)有限公司 | Application information acquisition method and system, electronic equipment and storage medium |
CN113641936A (en) * | 2021-08-12 | 2021-11-12 | 百度在线网络技术(北京)有限公司 | Method and device for page jump, electronic equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
A low hardware cost wear-leveling algorithm for application of smart mobile terminals;Hongfei Zou等;《IEEE Xplore》;全文 * |
基于HTML5的响应式Web页面重组适配技术研究;蒋凌燕;查英华;;计算机与现代化(02);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN114510308A (en) | 2022-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113986788B (en) | Data processing method and device, chip, electronic equipment and medium | |
CN112948018A (en) | Dynamic library loading method, device, equipment and medium for small program | |
CN115601555A (en) | Image processing method and apparatus, device and medium | |
CN116306396A (en) | Chip verification method and device, equipment and medium | |
CN114510308B (en) | Method, device, equipment and medium for storing application page by mobile terminal | |
CN113641936A (en) | Method and device for page jump, electronic equipment and storage medium | |
CN113641929B (en) | Page rendering method, device, electronic equipment and computer readable storage medium | |
US20240095141A1 (en) | Displaying information flow | |
CN115756696A (en) | Information processing method, device, equipment and medium | |
CN113436604B (en) | Method and device for broadcasting content, electronic equipment and storage medium | |
CN114429678A (en) | Model training method and device, electronic device and medium | |
CN114092556A (en) | Method, apparatus, electronic device, medium for determining human body posture | |
CN113254469A (en) | Data screening method and device, equipment and medium | |
CN115334159B (en) | Method, apparatus, device and medium for processing stream data | |
CN113961189A (en) | Webpage editing method and device | |
CN114218516B (en) | Webpage processing method and device, electronic equipment and storage medium | |
CN118732909A (en) | Page display method, device, equipment and medium | |
CN112667196B (en) | Information display method and device, electronic equipment and medium | |
CN113126865B (en) | Note generation method and device in video learning process, electronic equipment and medium | |
CN113312050B (en) | Content display method, device, equipment and medium | |
CN113961633A (en) | Data processing method, system, electronic device and computer storage medium | |
CN116541090A (en) | Data processing method, device, equipment and medium | |
CN116129245A (en) | Image deconvolution method and device, equipment and medium | |
CN118278361A (en) | Document generation method, device, electronic equipment and medium | |
CN116775026A (en) | Page generation method, device, electronic equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |