CN111190866A - Application document display method, device, equipment and storage medium - Google Patents

Application document display method, device, equipment and storage medium Download PDF

Info

Publication number
CN111190866A
CN111190866A CN201911414008.1A CN201911414008A CN111190866A CN 111190866 A CN111190866 A CN 111190866A CN 201911414008 A CN201911414008 A CN 201911414008A CN 111190866 A CN111190866 A CN 111190866A
Authority
CN
China
Prior art keywords
document
application
plug
preview
browsing
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.)
Pending
Application number
CN201911414008.1A
Other languages
Chinese (zh)
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.)
Uusafe Co ltd
Original Assignee
Uusafe 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 Uusafe Co ltd filed Critical Uusafe Co ltd
Priority to CN201911414008.1A priority Critical patent/CN111190866A/en
Publication of CN111190866A publication Critical patent/CN111190866A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses an application document display method. The method includes responding to a request to display a document through an application; judging the type of the document to be displayed through the document preview plug-in to obtain a document type judgment result; loading a document browsing plug-in according to the document type judgment result; and calling the document browsing plug-in to display the content of the document. The application also provides a device, equipment and a storage medium for implementing the application document display method. The method and the device solve the technical problem that privacy leakage is possibly caused when the document browsing service is provided in a mode of installing the third-party App or integrating the third-party App in the related technology.

Description

Application document display method, device, equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for displaying an application document.
Background
With the development of mobile device communication technology, the convenience of using mobile devices is continuously improved, and the types of services that can be processed by using mobile devices are becoming wide. A user typically needs to browse through a document while using an application in a mobile device. Document browsing services are generally provided in the related art by installing a third party Application (generally abbreviated as App) or integrating a third party App. If the document is processed by the third party App, privacy and safety are difficult to guarantee, the document is easy to leak, and an additional App needs to be installed, so that a user may generate a conflicting emotion; and if the user adopts a security policy of forbidding sharing the document to the third-party application on the application, the third-party App cannot be called to browse the document. If a third-party Software Development Kit (usually abbreviated as SDK) is integrated in an application, additional Development and maintenance work is required, and the Development work load is increased.
Aiming at the problems that privacy leakage, poor user experience and heavy development burden are possibly caused by adopting a third party App installation or third party App integration mode to provide document browsing service in the related technology, no effective solution is provided at present.
Disclosure of Invention
It is a primary objective of the present application to provide an application document display method, apparatus, device and storage medium to solve at least one of the above problems.
In order to achieve the above object, according to one aspect of the present application, there is provided an application document display method including: responding to a request to display a document by an application; judging the type of the document to be displayed through the document preview plug-in to obtain a document type judgment result; loading a document browsing plug-in according to the document type judgment result; and calling the document browsing plug-in to display the content of the document.
Further, as the method described above, before responding to the request for displaying the document by the application, the method further includes: and packaging the document preview plug-in into an android application program package of the application.
Further, as in the foregoing method, before the packaging the document preview plug-in into an android application package of an application, the method further includes: adding the description of the document preview add-in to an application manifest file of the application; and configuring the document preview plug-in to run in an independent process mode.
Further, as in the foregoing method, the packaging the document preview plug-in into an android application package of an application includes: compiling the code of a frame module into an executable file, wherein the code of the frame module comprises the code of the document preview plug-in; packaging the executable file into the android application package; the judging the type of the document to be displayed through the document preview plug-in comprises the following steps: automatically loading the executable file; and judging the type of the document to be displayed through the executable file.
Further, as the method described above, before responding to the request for displaying the document by the application, the method further includes: packaging the document browsing plug-in and then placing the packaged document browsing plug-in a resource directory folder in the android application program package; the loading of the document browsing plug-in according to the document type judgment result comprises the following steps: judging whether the document browsing plug-in is loaded for the first time; if the document browsing plug-in is judged to be loaded for the first time, decompressing the packaged document browsing plug-in the resource directory folder; and storing the decompressed document browsing plug-in into an internal storage of the application.
Further, as in the foregoing method, after the determining whether the document browsing plug-in is loaded for the first time, the method further includes: and if the document browsing plug-in is not loaded for the first time, loading the document browsing plug-in the internal storage of the application through the frame module.
Further, as the foregoing method, the loading, by the framework module, the document browsing plug-in includes: dynamically loading the document browsing plug-in the internal storage of the application through the framework module.
In order to achieve the above object, according to another aspect of the present application, there is provided an application document display apparatus including a request response module and a framework module, wherein: a request response module for responding to a request for displaying a document by an application; the frame module is used for judging the type of the document to be displayed through the document preview plug-in to obtain a document type judgment result; the frame module is also used for loading a document browsing plug-in according to the document type judgment result; and the frame module is also used for calling the document browsing plug-in to display the content of the document.
In order to achieve the above object, according to another aspect of the present application, there is provided an apparatus comprising a memory and a processor, the memory having stored therein a computer program, wherein the processor is arranged to execute any of the above methods by the computer program.
In order to achieve the above object, according to another aspect of the present application, there is provided a storage medium having a computer program stored therein, wherein the computer program is configured to perform any of the above methods when executed.
In the embodiment of the application, after a request for displaying a document through an application is responded, a mode of judging the type of the document to be displayed through a document preview plug-in is adopted to obtain a document type judgment result, the document browsing plug-in is loaded according to the document type judgment result, and the document browsing plug-in is called to display the content of the document, so that the purpose of browsing the document through the application calling plug-in is achieved, the technical effect of safely browsing the document is achieved, and the technical problem that privacy is possibly leaked due to the fact that a document browsing service is provided through a mode of installing a third party App or integrating the third party App in the related technology is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and their description illustrate the embodiments of the invention and do not limit it. In the drawings:
FIG. 1 is a flowchart illustrating a method for displaying an application document according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating another application document display method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a further method for displaying an application document according to an embodiment of the present application;
FIG. 4 is a block diagram of an application document display apparatus according to an embodiment of the present application;
FIG. 5 is a block diagram of another application document display apparatus provided in one embodiment of the present application; and
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In this application, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings. These terms are used primarily to better describe the present application and its embodiments, and are not used to limit the indicated devices, elements or components to a particular orientation or to be constructed and operated in a particular orientation.
Moreover, some of the above terms may be used to indicate other meanings besides the orientation or positional relationship, for example, the term "on" may also be used to indicate some kind of attachment or connection relationship in some cases. The specific meaning of these terms in this application will be understood by those of ordinary skill in the art as appropriate.
Furthermore, the terms "mounted," "disposed," "provided," "connected," and "sleeved" are to be construed broadly. For example, it may be a fixed connection, a removable connection, or a unitary construction; can be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements or components. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
According to an embodiment of the present invention, an application document display method is provided, which supports application on a platform with a version of more than 4.0 (including 4.0) of Android (Android), as shown in fig. 1, the method includes the following steps:
in step S11, a request for displaying a document by an application is responded. When an Activity is launched on the Android platform, this "launch intent" is typically encapsulated using a uniform intent object. An intent-filter can be set in an Android package (abbreviated as Apk) xml file in an Android application package (Android application package), so that the Android package can respond to a document opening event of a user in any App on an Android platform, and a selection interface is displayed, so that the user can conveniently select the App which can open the document and integrates a document preview function.
In step S12, the type of the document to be displayed is judged by the document preview plug-in, and a document type judgment result is obtained. After a user selects an App which can open a document and is integrated with a document browsing frame module for realizing a document preview function, because the frame module in the App comprises a code realization of document preview Activity, a document preview plug-in can be automatically loaded when the App is operated, and the judgment of the document type is realized.
In step S13, the document browsing plug-in is loaded according to the document type determination result. The document browsing frame module in the App can dynamically load the document browsing plug-in corresponding to the document type after judging the document type.
In step S14, the document browsing plug-in is invoked to display the content of the document. The document browsing plug-in can be packaged and then put into an assets directory in the Apk, and is decompressed to be stored inside during initialization. The document browsing frame module can dynamically load the document browsing plug-in corresponding to the document type to display the document content after judging the document type.
From the above description, it can be seen that, in the embodiment of the present application, after a request for displaying a document by an application is responded, a manner of determining a type of the document to be displayed by using a document preview plug-in is employed to obtain a document type determination result, and a document browsing plug-in is loaded according to the document type determination result, and the document browsing plug-in is invoked to display content of the document, so that a purpose of invoking the plug-in by the application to browse the document is achieved, a technical effect of safely browsing the document is achieved, and a technical problem that privacy leakage may be caused by a manner of installing a third party App or integrating the third party App in related technologies is solved.
According to an embodiment of the present invention, another application document display method is further provided, the method supports application on a platform of an Android (Android) version 4.0 (including version 4.0) or more, as shown in fig. 2, the method includes the following steps:
in step S21, the description of the document preview plug-in is added to the application manifest file of the application.
In step S22, the document preview plug-in is configured to run as an independent process.
Xml is a main configuration list file of the whole application, and information contents such as package names, version numbers, components, rights and the like are contained in the xml. The manifest file is used to record application-related configuration information. And adding document preview Activity in the list, configuring an independent process to run, setting the intent-filter for opening the document, and automatically responding to the document opening operation.
In step S23, the document preview plug-in is packaged into the android application package of the application. In order to integrate the file preview and browsing functions with the application, a document browsing frame can be set in an android application package, and a frame module comprising codes of the file preview plug-in is compiled into an executable file, and then the executable file is packaged into the android application package, so that a runtime system can automatically load the file preview plug-in.
In step S24, a request for displaying a document by an application is responded. The method can respond to a document opening event of a user in any App on the Android platform, and displays a selection interface, so that the user can conveniently select the App which can open the document and integrates a document preview function.
In step S25, the executable file is automatically loaded. After a user selects App of the document browsing frame module which can open the document and integrates the document previewing function, the system can automatically load the document previewing plug-in the frame module by loading the executable file.
In step S26, the type of the document to be displayed is judged by the executable file, and a document type judgment result is obtained. The document preview plug-in may enable determination of the document type based on the suffix of the document name.
In step S27, the document browsing plug-in is loaded according to the document type determination result.
In step S28, the document browsing plug-in is invoked to display the content of the document. The document browsing plug-in can be packaged and then put into an assets directory in the Apk, and is decompressed to be stored inside during initialization. The document browsing frame module can dynamically load the document browsing plug-in corresponding to the document type to display the document content after judging the document type.
From the above description, it can be seen that, in the embodiment of the present application, the description of the document preview plugin is added to the application program list file of the application, the document preview plugin is configured to operate in an independent process mode, the document preview plugin is packaged in the android application package of the application, the executable file is automatically loaded after responding to the request for displaying the document through the application, the type of the document to be displayed is judged through the document preview plugin to obtain a document type judgment result, the document browsing plugin is loaded according to the document type judgment result, the content of the document is displayed by the document browsing plugin is called, the purpose of calling the browsing plugin after the document preview plugin is operated through the independent process is achieved, the technical effect of fast and safe browsing the document is achieved, and the problem that privacy disclosure may be caused by providing a document browsing service in a manner of installing a third party App or integrating the third party App in related technologies is solved, Poor stability, large development workload, slow loading speed and the like.
According to an embodiment of the present invention, another application document display method is further provided, the method supports application on a platform of an Android (Android) version 4.0 (including version 4.0) or more, as shown in fig. 3, the method includes the following steps:
in step S31, the document browsing plug-in is packaged and then placed in a resource directory folder in the android application package. The document browsing plug-in can be packaged and then put into an assets directory in the application Apk. The document browsing Activity can specify an independent process when packaged, independent of the process of the host App.
In step S32, the code of the framework module, which includes the code of the document preview plug-in, is compiled into an executable file.
In step S33, the executable file is packaged into the android application package. The document browsing framework module can be automatically packaged to the App, and the App does not need any development and docking work.
In order to integrate the file preview and browsing functions with the application, a document browsing frame can be set in an android application package, and a frame module comprising codes of the file preview plug-in is compiled into an executable file, and then the executable file is packaged into the android application package, so that a runtime system can automatically load the file preview plug-in.
In step S34, a request for displaying a document by an application is responded. Xml is a main configuration list file of the whole application, and information contents such as package names, version numbers, components, rights and the like are contained in the xml. The manifest file is used to record application-related configuration information. The intent-filter of the document opening can be set in the list, and the document opening operation is automatically responded. A user can click to open a document in any App in the system, the system pops up a selection interface, and the user can select the App integrated with the document preview frame module to open.
In step S35, the executable file is automatically loaded. After a user selects App of the document browsing frame module which can open the document and integrates the document previewing function, the system can automatically load the document previewing plug-in the frame module by loading the executable file.
In step S36, the type of the document to be displayed is judged by the executable file, and a document type judgment result is obtained.
In step S37, it is determined whether the document browsing plug-in is initially loaded.
In step S3811, if it is determined that the document browsing plug-in is loaded for the first time, the document browsing plug-in packaged in the resource directory folder is decompressed.
In step S3812, the decompressed document browsing plug-in is stored in the internal storage of the application.
In step S3821, if it is determined that the document browsing plug-in is not initially loaded, the document browsing plug-in the internal storage of the application is loaded through the framework module. At this time, it is explained that the document browsing plug-in packaged in the resource directory folder is decompressed during initial loading, and the decompressed document browsing plug-in is stored in the internal storage of the application.
Further, dynamically loading the document browsing plug-in the internal storage of the application through the framework module. And the document browsing plug-in is dynamically loaded only when needed, so that the occupation of the running memory of the App is optimized. The plug-in is loaded locally, does not need to be networked, and is safe and quick.
In step S39, the document browsing plug-in is invoked to display the content of the document.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
According to an embodiment of the present invention, there is also provided an apparatus for implementing the above method, as shown in fig. 4, the apparatus includes a request response module 41 and a framework module 42, wherein:
a request response module 41 for responding to a request for displaying a document by an application.
And the framework module 42 is used for judging the type of the document to be displayed through the document preview plug-in to obtain a document type judgment result.
The frame module 42 is further configured to load a document browsing plug-in according to the determination result of the document type.
And the frame module 42 is also used for calling the document browsing plug-in to display the content of the document.
According to an embodiment of the present invention, there is also provided an apparatus for implementing the above method, as shown in fig. 5, the apparatus includes a request response module 51, a framework module 52, a data packing module 53, and a parameter configuration module 54, where:
a parameter configuration module 54 for adding the description of the document preview plug-in to an application manifest file of the application; and configuring the document preview plug-in to run in an independent process mode.
And the data packaging module 53 is configured to package the document browsing plug-in and place the packaged document browsing plug-in a resource directory folder in the android application package.
And the data packaging module 53 is further configured to package the document preview plug-in into an android application package of the application.
The data packing module 53 is further configured to compile a code of the framework module into an executable file, where the code of the framework module includes a code of the document preview plug-in; and packing the executable file into an android application package.
A request response module 51 for responding to a request for displaying a document by an application.
And the framework module 52 is configured to determine the type of the document to be displayed through the document preview plug-in, and obtain a document type determination result.
A framework module 52, which is also used for automatically loading the executable file; the type of document to be displayed is determined by the executable file.
The framework module 52 is further configured to load a document browsing plug-in according to the determination result of the document type.
The frame module 52 is further configured to decompress the packaged document browsing plug-in the resource directory folder when it is determined that the document browsing plug-in is loaded for the first time; and storing the decompressed document browsing plug-in into an internal storage of the application.
The framework module 52 is further configured to load the document browsing plug-in the internal storage of the application through the framework module when it is determined that the document browsing plug-in is not loaded for the first time.
The framework module 52 is further configured to dynamically load the document browsing plug-in the internal storage of the application through the framework module when it is determined that the document browsing plug-in is not loaded for the first time.
And the framework module 52 is also used for calling the document browsing plug-in to display the content of the document.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present invention is not limited to any specific combination of hardware and software.
According to the embodiment of the invention, the electronic equipment for implementing the application document display method is also provided. Fig. 6 is a block diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 6, the electronic device may include: one or more processors 601 (only one is shown in the figure), and a memory 603, wherein the memory 603 may store a computer program, and the processor 601 may be configured to run the computer program to execute the application document display method according to the embodiment of the present invention. The memory 603 may be used to store computer programs and modules, such as program instructions/modules corresponding to the application document display method and apparatus in the embodiments of the present invention, and the processor 601 executes various functional applications and data processing by running the computer programs and modules stored in the memory 603, that is, implements the application document display method described above. The memory 603 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 603 may further include memory located remotely from the processor 601, which may be connected to the terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Optionally, as shown in fig. 6, the electronic device may further include: a transmission 605 and an input/output device 607. Wherein the transmission device 605 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 605 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices so as to communicate with the internet or a local area Network. In one example, the transmission device 605 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
It can be understood by those skilled in the art that the structure shown in fig. 6 is only an illustration, and the electronic device may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 6 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 6, or have a different configuration than shown in FIG. 6. Alternatively, in this embodiment, the memory 603 may be used for storing a computer program. Optionally, in this embodiment, the processor may be configured to execute a computer program to perform the following steps:
responding to a request to display a document by an application;
judging the type of the document to be displayed through the document preview plug-in to obtain a document type judgment result;
loading a document browsing plug-in according to the document type judgment result;
and calling the document browsing plug-in to display the content of the document.
According to an embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is configured to execute the steps of the application document display method in the above-mentioned embodiment when running.
Alternatively, in this embodiment, the storage medium may be located on at least one of the plurality of network devices in the network shown in the above-described embodiment. The storage medium may include: flash disks, Read-only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Alternatively, in the present embodiment, the storage medium is configured to store a computer program for executing the steps of:
responding to a request to display a document by an application;
judging the type of the document to be displayed through the document preview plug-in to obtain a document type judgment result;
loading a document browsing plug-in according to the document type judgment result;
and calling the document browsing plug-in to display the content of the document.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. An application document display method, comprising:
responding to a request to display a document by an application;
judging the type of the document to be displayed through the document preview plug-in to obtain a document type judgment result;
loading a document browsing plug-in according to the document type judgment result;
and calling the document browsing plug-in to display the content of the document.
2. The method of claim 1, wherein prior to said responding to the request to display the document by the application, the method further comprises:
and packaging the document preview plug-in into an android application program package of the application.
3. The method of claim 2, wherein prior to the packaging the document preview add-in into an android application package of an application, the method further comprises:
adding the description of the document preview add-in to an application manifest file of the application;
and configuring the document preview plug-in to run in an independent process mode.
4. The method of claim 2, wherein packaging the document preview add-in into an android application package of an application comprises:
compiling the code of a frame module into an executable file, wherein the code of the frame module comprises the code of the document preview plug-in;
packaging the executable file into the android application package;
the judging the type of the document to be displayed through the document preview plug-in comprises the following steps:
automatically loading the executable file;
and judging the type of the document to be displayed through the executable file.
5. The method of claim 4, wherein prior to said responding to the request to display the document by the application, the method further comprises:
packaging the document browsing plug-in and then placing the packaged document browsing plug-in a resource directory folder in the android application program package;
the loading of the document browsing plug-in according to the document type judgment result comprises the following steps:
judging whether the document browsing plug-in is loaded for the first time;
if the document browsing plug-in is judged to be loaded for the first time, decompressing the packaged document browsing plug-in the resource directory folder;
and storing the decompressed document browsing plug-in into an internal storage of the application.
6. The method of claim 5, wherein after said determining whether the document browsing plug-in is initially loaded, the method further comprises:
and if the document browsing plug-in is not loaded for the first time, loading the document browsing plug-in the internal storage of the application through the frame module.
7. The method of claim 6, wherein said loading, by said framework module, said document browsing plug-in comprises: dynamically loading the document browsing plug-in the internal storage of the application through the framework module.
8. An application document display apparatus comprising a request response module and a framework module, wherein:
a request response module for responding to a request for displaying a document by an application;
the frame module is used for judging the type of the document to be displayed through the document preview plug-in to obtain a document type judgment result;
the frame module is also used for loading a document browsing plug-in according to the document type judgment result;
and the frame module is also used for calling the document browsing plug-in to display the content of the document.
9. An apparatus comprising a memory and a processor, characterized in that the memory has stored therein a computer program, wherein the processor is arranged to execute the method of any of claims 1 to 7 by means of the computer program.
10. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 7 when executed.
CN201911414008.1A 2019-12-31 2019-12-31 Application document display method, device, equipment and storage medium Pending CN111190866A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911414008.1A CN111190866A (en) 2019-12-31 2019-12-31 Application document display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911414008.1A CN111190866A (en) 2019-12-31 2019-12-31 Application document display method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111190866A true CN111190866A (en) 2020-05-22

Family

ID=70709693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911414008.1A Pending CN111190866A (en) 2019-12-31 2019-12-31 Application document display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111190866A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112689199A (en) * 2020-12-23 2021-04-20 深圳市酷开网络科技股份有限公司 Method and device for loading plug-in of television homepage, television and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955466A (en) * 2012-03-06 2014-07-30 北京奇虎科技有限公司 Method and device for displaying document in browser
US20150082148A1 (en) * 2013-09-13 2015-03-19 Box, Inc. System and method for rendering document in web browser or mobile device regardless of third-party plug-in software
CN105589836A (en) * 2015-12-21 2016-05-18 华为技术有限公司 Document previewing method, terminal and server
CN107430520A (en) * 2015-03-30 2017-12-01 微软技术许可有限责任公司 Preview technology for the enhancing of application plug-in
CN110232161A (en) * 2019-04-25 2019-09-13 天津市职业大学 A kind of online method for previewing of document based on browser

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955466A (en) * 2012-03-06 2014-07-30 北京奇虎科技有限公司 Method and device for displaying document in browser
US20150082148A1 (en) * 2013-09-13 2015-03-19 Box, Inc. System and method for rendering document in web browser or mobile device regardless of third-party plug-in software
CN107430520A (en) * 2015-03-30 2017-12-01 微软技术许可有限责任公司 Preview technology for the enhancing of application plug-in
CN105589836A (en) * 2015-12-21 2016-05-18 华为技术有限公司 Document previewing method, terminal and server
CN110232161A (en) * 2019-04-25 2019-09-13 天津市职业大学 A kind of online method for previewing of document based on browser

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112689199A (en) * 2020-12-23 2021-04-20 深圳市酷开网络科技股份有限公司 Method and device for loading plug-in of television homepage, television and storage medium
CN112689199B (en) * 2020-12-23 2023-08-29 深圳市酷开网络科技股份有限公司 Plug-in loading method and device for television homepage, television and storage medium

Similar Documents

Publication Publication Date Title
CN109547570B (en) Service registration method, device, registration center management equipment and storage medium
US9439025B1 (en) Multi-step mobile device initiation with intermediate partial reset
CN104111944B (en) Page processing method and device and page generation method and device
CN110007980B (en) Method and device for realizing multi-service server
CN107741844B (en) Method and device for generating application installation package
CN108121594B (en) Process management method and device
WO2015030945A1 (en) Systems and methods for deferred and remote device branding
GB2457221A (en) Smart Card Web Server (SCWS) administration within a plurality of security domains
CN105404524A (en) Class loading and isolating method and apparatus in Java application
CN105302563A (en) Plug-in method and system for mobile application service
CN106230977B (en) A kind of client functionality loading method, system, client and server-side
CN108647032B (en) Application loading method and device, computer device and computer readable storage medium
CN106569856A (en) Method and device of loading application view resource file
CN107861742A (en) The operation method and terminal device of a kind of program
CN110968340A (en) Method and device for realizing multi-version dependence isolation
CN104580506B (en) Acquisition methods, cloud server and the client of offline map datum
EP2897053B1 (en) Device management method and apparatus
Khan et al. Android Architecture and Related Security Risks
CN107526584B (en) Data access method and device
CN104793998B (en) Terminal system resource management method and device
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
CN105607901B (en) Method and device for optimizing system memory and terminal equipment
CN111190866A (en) Application document display method, device, equipment and storage medium
CN114637549A (en) Data processing method, system and storage medium for service grid-based application
US20140019515A1 (en) Adaptive business logic configurator

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200522

RJ01 Rejection of invention patent application after publication