CN110704767B - Page opening method and device, electronic equipment and storage medium - Google Patents

Page opening method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110704767B
CN110704767B CN201910944103.6A CN201910944103A CN110704767B CN 110704767 B CN110704767 B CN 110704767B CN 201910944103 A CN201910944103 A CN 201910944103A CN 110704767 B CN110704767 B CN 110704767B
Authority
CN
China
Prior art keywords
page
opening
target page
context environment
workflow
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910944103.6A
Other languages
Chinese (zh)
Other versions
CN110704767A (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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910944103.6A priority Critical patent/CN110704767B/en
Publication of CN110704767A publication Critical patent/CN110704767A/en
Application granted granted Critical
Publication of CN110704767B publication Critical patent/CN110704767B/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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the disclosure discloses a page opening method, a page opening device, an electronic device and a storage medium, wherein the page opening method comprises the following steps: when a page opening request for opening a target page is received, determining a context environment corresponding to the page opening request; if the context environment does not support opening the target page, starting a managed workflow; initializing the context environment of the target page based on the managed workflow, and opening the target page according to the initialized context environment. The technical scheme of the embodiment of the disclosure overcomes the defect that the conventional page navigation based on base class View design is incompatible with the native workflow navigation of an android system, so that the conventional page navigation cannot be conveniently migrated in the project reconstruction process, and achieves the effect that when the context environment is incompatible with the page to be opened, the context environment is compatible with the page to be opened by initializing the context environment, so that the corresponding page can be conveniently opened.

Description

Page opening method and device, electronic equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computer application, and in particular relates to a page opening method and device, an electronic device and a storage medium.
Background
The smart phone and the wireless network not only solve the problem of two-party or multi-party communication, but also provide more choices for the learning, working, entertainment and the like of the user. At present, research on smart phones not only improves hardware of the smart phones, but also continuously optimizes an operating system of the smart phones, and research personnel of application software also need to continuously optimize the application software because the compatibility problem of the application software and the operating system needs to be considered.
Currently, the android system occupies a small market share as one of the main operating systems of the smart phone. Therefore, many application software can be developed and optimized for the android system. In the course of implementing the present disclosure, the inventors found that the following drawbacks exist in the prior art: if a page navigation scheme is designed based on a new user operation interface component, the situation that the page navigation scheme is incompatible with the native workflow navigation of an android system occurs, so that the page navigation cannot be conveniently migrated in the project reconstruction process.
Disclosure of Invention
The disclosure provides a page opening method, a page opening device, electronic equipment and a storage medium, which are used for solving the technical problem that page navigation based on base class View design is incompatible with workflow navigation native to an android system, realizing the technical effects of compatibility with workflow navigation native to the android system and convenient migration in a project reconstruction process.
In a first aspect, an embodiment of the present disclosure provides a page opening method, where the page opening method includes:
when a page opening request for opening a target page is received, determining a context environment corresponding to the page opening request;
if the context environment does not support opening the target page, starting a managed workflow;
initializing the context environment of the target page based on the managed workflow, and opening the target page according to the initialized context environment.
In a second aspect, an embodiment of the present disclosure further provides a page opening apparatus, where the apparatus includes:
the device comprises a request receiving module, a processing module and a processing module, wherein the request receiving module is used for determining a context environment corresponding to a page opening request when the page opening request for opening a target page is received;
a hosting starting module, configured to start a hosting workflow if the contextual environment does not support opening of the target page;
and the page opening module is used for initializing the context environment of the target page based on the managed workflow and opening the target page according to the initialized context environment.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, including:
one or more processing devices;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processing devices, the one or more processing devices are caused to implement the page opening method according to any embodiment of the disclosure.
In a fourth aspect, the embodiments of the present disclosure further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the page opening method according to any embodiment of the present disclosure.
According to the technical scheme of the embodiment of the disclosure, when a page opening request for opening a target page is received, a context environment corresponding to the page opening request is determined at first; if the context environment does not support opening the target page, starting a managed workflow; and further, initializing the context environment of the target page based on the managed workflow, and opening the target page according to the initialized context environment. By using the mode of starting the managed workflow, the defect that the conventional page navigation based on the base class View design is incompatible with the workflow navigation native to the android system, so that the migration cannot be conveniently carried out in the project reconstruction process is overcome, and the effects that when the context environment is incompatible with the page to be opened, the context environment is compatible with the page to be opened by initializing the context environment are achieved, so that the corresponding page can be conveniently opened.
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.
Fig. 1 is a flowchart of a page opening method according to a first embodiment of the present disclosure;
fig. 2 is a flowchart of a page opening method provided in the second embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a page opening apparatus according to a third embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth 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 different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed 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.
Example one
Fig. 1 is a flowchart of a page opening method according to an embodiment of the present disclosure. The disclosed embodiments may be applicable to the case that the current context environment is not compatible with the page to be opened, and the method may be performed by a page opening apparatus, which may be implemented in software and/or hardware, and may be configured in an electronic device. As shown in fig. 1, the method may include the steps of:
s110, when a page opening request for opening a target page is received, determining a context environment corresponding to the page opening request.
The target page is a page corresponding to the page opening request, and preferably may be a page with which the user can interact, that is, a page with which the user can perform a corresponding operation. Illustratively, the user can perform operations such as modifying information, editing display content, or viewing video through the target page. The page opening request may be triggered by a user operating an icon control, a website or a link, or may be automatically triggered by the system based on a preset condition, which is not specifically limited herein.
In this embodiment, the context environment may be an environment in which the process executes, and may exemplarily be each variable and data, including all register variables, file and memory information opened by the process, and the like. Whether a corresponding target page can be opened based on the context environment is determined by determining the context environment corresponding to the page opening request.
And S120, if the contextual environment does not support the opening of the target page, starting a managed workflow.
In this embodiment, if the determined current context environment is not compatible with the context environment required for responding to the page opening request, it is determined that the current context environment does not support opening of the target page. At this point, a pre-created managed workflow may preferably be initiated.
The hosting workflow may be a workflow hosting a corresponding delegation task, and may be used to assist in processing tasks that cannot be processed in the current environment. In this embodiment, a task of opening a target page, which cannot be processed by a current context environment, may be processed by a managed workflow, where a context environment compatible with the target page may be obtained based on the managed workflow.
S130, initializing the context environment of the target page based on the managed workflow, and opening the target page according to the initialized context environment.
Specifically, the managed workflow may be compatible with an original workflow supporting opening of the target page, and the managed workflow may acquire a context environment supporting the target page, such as variables, files, and memory information, from the original workflow. Initializing the context environment of the target page by using the context environment acquired by the managed workflow, and opening the target page according to the initialized context environment. Preferably, the context environment for initializing the target page may be a context environment for creating a support target page in the managed workflow.
Taking the system as an Android system, the page navigation is designed and developed based on the Activity, and the page corresponding to the page opening request is designed and developed based on the base class View as an example, the process is specifically explained as follows:
according to the traditional page navigation based on Activity design and development, when a page opening request triggered by a user is received, a target page corresponding to the page opening request is a page designed and developed based on a base class View. Because the base class View is incompatible with Activity and there is no workflow Activity to interact with native workflow Activity, the context environment of the traditional mode designed based on Activity does not support opening the target page. Based on this, a pre-created Activity for hosting may be launched, the Activity for hosting being compatible with the target page, which may create a contextual environment for the target page. And opening the target page based on the created context environment so as to finish the display of the target page.
It should be noted that the page navigation may be understood as a control capable of responding to a page open request, and may be understood as a management page or a control page responsible for managing or controlling at least one page.
In the page opening method provided by this embodiment, when a page opening request for opening a target page is received, a context environment corresponding to the page opening request is determined; if the context environment does not support opening the target page, starting a managed workflow; initializing the context environment of the target page based on the managed workflow, and opening the target page according to the initialized context environment. By using the mode of starting the managed workflow, the defect that the conventional page navigation based on the base class View design is incompatible with the workflow navigation native to the android system, so that the migration cannot be conveniently carried out in the project reconstruction process is overcome, and the effects that when the context environment is incompatible with the page to be opened, the context environment is compatible with the page to be opened by initializing the context environment are achieved, so that the corresponding page can be conveniently opened.
On the basis of the foregoing embodiments, further, when a page close request for closing the target page is received, the managed workflow is closed to close the target page.
The page close request can be preferably triggered by a close button or a preset gesture on the page.
In this embodiment, once the managed workflow is closed, the context environment which can support opening of the target page cannot be acquired, and accordingly, the target page cannot be acquired. Based on this, preferably, when a page close request is received, the target page may be closed by closing the managed workflow.
Still taking the system as an Android system, the page navigation is designed and developed based on the Activity, and the page corresponding to the page opening request is designed and developed based on the base class View as an example, the process is specifically explained as follows:
the method comprises the steps that a page opening request is received through page navigation based on Activity design development, a target page based on base class View design development is opened based on started Activity for hosting, a page closing request is received, and at the moment, the target page is closed through the page navigation based on Activity design development in a mode of closing the Activity for hosting.
On the basis of the above embodiments, the method further includes:
if the contextual environment supports opening the target page, the target page is opened.
And when a page closing request for closing the target page is received, closing the target page.
For example, if the determined current context environment is compatible with the context environment required in response to the page open request, it is determined that the current context environment supports opening the target page. At this time, the target page may preferably be opened. Accordingly, when a page close request is received, since the target page is not opened based on the managed workflow, the target page can be closed in direct response to the page close request.
Taking the system as an Android system, the page navigation is designed and developed based on the Activity, and the page corresponding to the page opening request is designed and developed based on the base class View as an example, the process is specifically explained as follows:
after the page navigation developed based on the Activity design receives the page opening request, determining that the current context environment is compatible with the context environment responding to the page opening request, and at the moment, directly responding to the page opening request and opening the target page. And when the page closing request is received, directly responding to the page closing request and closing the target page.
On the basis of the foregoing embodiments, further, after opening the target page according to the initialized context, the method further includes: and displaying the target page for the user to view.
Example two
Fig. 2 is a flowchart of a page opening method provided in the second embodiment of the present disclosure. The embodiment of the present disclosure may be combined with various alternatives in one or more of the above embodiments, in the embodiment of the present disclosure, before the initiating the managed workflow, further including: and when the target page is determined to be based on the workflow navigation implementation, creating a managed workflow.
And opening the target page according to the initialized context environment, including: and determining a page to be opened corresponding to the target page according to the initialized context environment, and opening the page to be opened.
As shown in fig. 2, the method may include the steps of:
s210, when a page opening request for opening a target page is received, determining a context environment corresponding to the page opening request.
S220, if the context environment does not support the opening of the target page, and when the target page is determined to be based on the workflow navigation implementation, a managed workflow is created.
After determining that the context environment does not support the opening target page, in order to improve the hosting accuracy, preferably, an original workflow navigation supporting the opening target page may be determined, and a hosted workflow compatible with the original workflow navigation is created according to the determined original workflow navigation. Based on the created managed workflow, a target page may be opened.
And S230, starting a managed workflow.
S240, initializing a context environment of the target page based on the managed workflow, determining a page to be opened corresponding to the target page according to the initialized context environment, and opening the page to be opened.
And the page to be opened is the target page to be opened finally.
Taking the system as an Android system, the page navigation is designed and developed based on the Activity, and the page corresponding to the page opening request is designed and developed based on the base class View as an example, the process is specifically explained as follows:
according to the traditional page navigation based on Activity design and development, a page opening request triggered by a user is received, and a target page corresponding to the page opening request is a page designed and developed based on a base class View. Since the base class View is incompatible with Activity, the contextual environment of the legacy mode designed based on Activity does not support opening the target page. Based on the above, according to the View corresponding to the target page, an Activity for hosting compatible with the View can be created, and the Activity for hosting can be started, and the Activity for hosting can create the context environment of the target page. And determining a page to be opened corresponding to the target page based on the created context environment, and opening the page to be opened.
In the page opening method provided by this embodiment, when a page opening request for opening a target page is received, a context environment corresponding to the page opening request is determined; if the context environment does not support the opening of the target page, and when the target page is determined to be based on the workflow navigation implementation, a managed workflow is created, and the managed workflow is started; initializing a context environment of a target page based on the managed workflow, determining a page to be opened corresponding to the target page according to the initialized context environment, and opening the page to be opened. By means of the method, the managed workflow to be created is determined according to the workflow navigation corresponding to the page to be opened, and the managed workflow is started, the defect that the existing page navigation based on base class View design is incompatible with the workflow navigation native to an android system, so that the migration cannot be conveniently carried out in the project reconstruction process is overcome, when the context environment is incompatible with the page to be opened, the managed workflow is created in a targeted mode, the context environment is initialized by using the managed workflow, the context environment is compatible with the page to be opened, and therefore the effect of conveniently opening the corresponding page is achieved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a page opening apparatus according to a third embodiment of the present disclosure. The embodiment of the disclosure can be applied to the situation that the current context environment is not compatible with the page to be opened. The apparatus may be implemented in software and/or hardware, and may be configured in an electronic device. As shown in fig. 3, the apparatus may include:
a request receiving module 310, configured to, when a page opening request for opening a target page is received, determine a context environment corresponding to the page opening request;
a hosting initiation module 320 for initiating a hosting workflow if the contextual environment does not support opening of the target page;
the page opening module 330 is configured to initialize a context environment of the target page based on the managed workflow, and open the target page according to the initialized context environment.
In the page opening apparatus provided in this embodiment, when a page opening request for opening a target page is received, a request receiving module is used to determine a context environment corresponding to the page opening request; if the context environment does not support opening the target page, starting a managed workflow by using a managed starting module; and initializing the context environment of the target page based on the managed workflow by using a page opening module, and opening the target page according to the initialized context environment. By using the mode of starting the managed workflow, the defect that the conventional page navigation based on the base class View design is incompatible with the workflow navigation native to the android system, so that the migration cannot be conveniently carried out in the project reconstruction process is overcome, and the effects that when the context environment is incompatible with the page to be opened, the context environment is compatible with the page to be opened by initializing the context environment are achieved, so that the corresponding page can be conveniently opened.
On the basis of the above technical solution, optionally, the apparatus may further include: and the page closing module is used for closing the managed workflow to close the target page when receiving a page closing request for closing the target page.
Based on the foregoing technical solution, optionally, the apparatus may further include a managed workflow creating module, configured to create a managed workflow when it is determined that the target page is based on a workflow navigation implementation before the managed workflow is started.
On the basis of the above technical solution, optionally, the page opening module 330 may be specifically configured to: and determining a page to be opened corresponding to the target page according to the initialized context environment, and opening the page to be opened.
On the basis of the above technical solution, optionally, the page opening module 330 may be further configured to: if the contextual environment supports opening the target page, the target page is opened.
On the basis of the above technical solution, optionally, the page closing module may be further configured to: and when a page closing request for closing the target page is received, closing the target page.
On the basis of the above technical solution, optionally, the apparatus may further include a page display module, configured to display the target page after the target page is opened according to the initialized context environment.
The page opening device provided by the embodiment of the disclosure can execute the page opening method provided by the embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Referring now to FIG. 4, a block diagram of an electronic device 400 suitable for use in implementing embodiments of the present disclosure is shown. The electronic device in the embodiments of the present disclosure may include, but is not limited to, devices such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like. The electronic device shown in fig. 4 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.
As shown in fig. 4, the electronic device 400 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage device 406 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 406 including, for example, magnetic tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 400 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 via the communication means 409, or from the storage means 406, or from the ROM 402. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 401.
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 interconnect 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: when a page opening request for opening a target page is received, determining a context environment corresponding to the page opening request; if the context environment does not support opening the target page, starting a managed workflow; initializing the context environment of the target page based on the managed workflow, and opening the target page according to the initialized context environment.
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 methods, apparatus, electronic devices, 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, units and sub-units described in the embodiments of the present disclosure may be implemented by software, or may be implemented by hardware. Where the name of a module, unit or sub-unit does not in some cases constitute a limitation on the module, unit or sub-unit itself, for example, the managed launch module may also be described as a "module that launches a managed workflow if the contextual environment does not support opening of a target page".
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 example provides a page opening method, including:
when a page opening request for opening a target page is received, determining a context environment corresponding to the page opening request;
if the context environment does not support opening the target page, starting a managed workflow;
initializing the context environment of the target page based on the managed workflow, and opening the target page according to the initialized context environment.
According to one or more embodiments of the present disclosure, example two provides a page opening method, and on the basis of the page opening method of example one, the page opening method further includes:
and when a page closing request for closing the target page is received, closing the managed workflow to close the target page.
According to one or more embodiments of the present disclosure, example three provides a page opening method, and on the basis of the page opening method of example one, before starting the managed workflow, the method further includes:
when it is determined that the target page is based on the workflow navigation implementation, a managed workflow is created.
According to one or more embodiments of the present disclosure, example four provides a page opening method, and on the basis of the page opening method of example one, opening a target page according to an initialized context environment includes:
and determining a page to be opened corresponding to the target page according to the initialized context environment, and opening the page to be opened.
According to one or more embodiments of the present disclosure, example five provides a page opening method, and on the basis of the page opening method of example one, the page opening method further includes:
if the contextual environment supports opening the target page, the target page is opened.
According to one or more embodiments of the present disclosure, example six provides a page opening method, and on the basis of the page opening method of example five, the method further includes:
and when a page closing request for closing the target page is received, closing the target page.
Example seven provides a page opening method according to one or more embodiments of the present disclosure, and on the basis of the page opening method of example one or example five, after opening the target page according to the initialized context environment, the method further includes:
and displaying the target page.
Example eight provides, in accordance with one or more embodiments of the present disclosure, a page opening apparatus, comprising:
the device comprises a request receiving module, a processing module and a processing module, wherein the request receiving module is used for determining a context environment corresponding to a page opening request when the page opening request for opening a target page is received;
the hosting starting module is used for starting the hosting workflow if the context environment does not support the opening of the target page;
and the page opening module is used for initializing the context environment of the target page based on the managed workflow and opening the target page according to the initialized context environment.
Example nine provides, in accordance with one or more embodiments of the present disclosure, an electronic device, comprising:
one or more processing devices;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processing devices, the one or more processing devices are caused to implement the page opening method as in any of examples one to seven.
Example ten provides, according to one or more embodiments of the present disclosure, a computer-readable storage medium having stored thereon a computer program that, when executed by a processor, implements a page opening method as in any of examples one to seven.
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 page opening method is characterized by comprising the following steps:
when a page opening request for opening a target page is received, determining a context environment corresponding to the page opening request;
if the context environment does not support opening the target page, starting a managed workflow;
initializing the context environment of the target page based on the managed workflow, and opening the target page according to the initialized context environment.
2. The method of claim 1, further comprising:
and when a page closing request for closing a target page is received, closing the managed workflow to close the target page.
3. The method of claim 1, further comprising, prior to the initiating the managed workflow:
and when the target page is determined to be based on the workflow navigation implementation, creating a managed workflow.
4. The method of claim 1, wherein opening the target page according to the initialized context comprises:
and determining a page to be opened corresponding to the target page according to the initialized context environment, and opening the page to be opened.
5. The method of claim 1, further comprising:
and if the context environment supports opening the target page, opening the target page.
6. The method of claim 5, further comprising:
and when a page closing request for closing the target page is received, closing the target page.
7. The method according to claim 1 or 5, further comprising, after opening the target page according to the initialized context:
and displaying the target page.
8. A page opening apparatus, comprising:
the device comprises a request receiving module, a processing module and a processing module, wherein the request receiving module is used for determining a context environment corresponding to a page opening request when the page opening request for opening a target page is received;
a hosting starting module, configured to start a hosting workflow if the contextual environment does not support opening of the target page;
and the page opening module is used for initializing the context environment of the target page based on the managed workflow and opening the target page according to the initialized context environment.
9. An electronic device, comprising:
one or more processing devices;
a memory for storing one or more programs;
when executed by the one or more processing devices, cause the one or more processing devices to implement the page opening method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the page opening method according to any one of claims 1 to 7.
CN201910944103.6A 2019-09-30 2019-09-30 Page opening method and device, electronic equipment and storage medium Active CN110704767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910944103.6A CN110704767B (en) 2019-09-30 2019-09-30 Page opening method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910944103.6A CN110704767B (en) 2019-09-30 2019-09-30 Page opening method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110704767A CN110704767A (en) 2020-01-17
CN110704767B true CN110704767B (en) 2022-02-15

Family

ID=69196592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910944103.6A Active CN110704767B (en) 2019-09-30 2019-09-30 Page opening method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110704767B (en)

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8812658B1 (en) * 2011-05-20 2014-08-19 Amazon Technologies, Inc. Pre-fetching of network page content
CN104125198B (en) * 2013-04-25 2017-10-24 华为技术有限公司 Web player plug-in unit reorientation method, server and client side
CN103500194A (en) * 2013-09-17 2014-01-08 北京奇虎科技有限公司 Method, device and browser for loading webpage
CN105630461A (en) * 2014-10-27 2016-06-01 航天信息股份有限公司 Managing method of android application interface
CN104484479A (en) * 2014-12-31 2015-04-01 小米科技有限责任公司 Webpage browsing processing method and device
CN106372076B (en) * 2015-07-22 2021-10-15 腾讯科技(深圳)有限公司 Method and device for switching web pages in browser
CN105867956A (en) * 2015-10-28 2016-08-17 乐视网信息技术(北京)股份有限公司 Method and device for showing plugin view element in host application page
CN107220356A (en) * 2017-06-02 2017-09-29 山大鲁能信息科技有限公司 The webpage fit method and its system of a kind of mobile phone terminal
CN107729014B (en) * 2017-09-06 2021-03-30 天津五八到家信息技术有限公司 Page jump method and structure based on Android
CN107943552A (en) * 2017-11-16 2018-04-20 腾讯科技(成都)有限公司 The page switching method and mobile terminal of a kind of mobile terminal
CN108062371A (en) * 2017-12-12 2018-05-22 华南理工大学 A kind of Android device web page data processing system and its data processing method

Also Published As

Publication number Publication date
CN110704767A (en) 2020-01-17

Similar Documents

Publication Publication Date Title
US11856152B2 (en) Video special effect configuration file generation method and apparatus, and video rendering method and apparatus
CN110516159B (en) Information recommendation method and device, electronic equipment and storage medium
US20220043898A1 (en) Methods and apparatuses for acquiring information
CN110070592B (en) Generation method and device of special effect package and hardware device
CN112162666B (en) Terminal control method, device, terminal and storage medium
CN111309416B (en) Information display method, device and equipment of application interface and readable medium
CN110865846B (en) Application management method, device, terminal, system and storage medium
CN111580883B (en) Application program starting method, device, computer system and medium
CN112732302A (en) Configuration updating method and device of application program and electronic equipment
CN111158824A (en) Interface display method, device, equipment and medium
CN113391860A (en) Service request processing method and device, electronic equipment and computer storage medium
CN113010300A (en) Image effect refreshing method and device, electronic equipment and computer readable storage medium
CN110704767B (en) Page opening method and device, electronic equipment and storage medium
CN115576458A (en) Application window display method, device, equipment and medium
CN115328558A (en) Starting method and device and electronic equipment
CN111290692B (en) Picture display method and device, electronic equipment and computer readable medium
CN111290812B (en) Display method, device, terminal and storage medium of application control
CN114089891A (en) Display control method and device and electronic equipment
CN110113416B (en) Method and device for displaying information
CN110619079B (en) Method and device for pushing information
CN112822328A (en) Data display method and device and electronic equipment
CN111399730A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111240718A (en) Theme updating method and device, electronic equipment and medium
CN111240758A (en) Material display method and device, electronic equipment and storage medium
CN114116590B (en) Data acquisition method, device, vehicle, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant