CN108460128B - Document management method and device, electronic device and readable storage medium - Google Patents

Document management method and device, electronic device and readable storage medium Download PDF

Info

Publication number
CN108460128B
CN108460128B CN201810171009.7A CN201810171009A CN108460128B CN 108460128 B CN108460128 B CN 108460128B CN 201810171009 A CN201810171009 A CN 201810171009A CN 108460128 B CN108460128 B CN 108460128B
Authority
CN
China
Prior art keywords
document
icon
application program
target document
module
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
CN201810171009.7A
Other languages
Chinese (zh)
Other versions
CN108460128A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810171009.7A priority Critical patent/CN108460128B/en
Publication of CN108460128A publication Critical patent/CN108460128A/en
Application granted granted Critical
Publication of CN108460128B publication Critical patent/CN108460128B/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/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a document management method and device, an electronic device and a readable storage medium, wherein the method comprises the following steps: the icon attribute of each document in the document management module is checked, for a target document with a null icon attribute, an application program matched with the target document is searched from network resources, and the icon of the application program is added in the display content of the target document in the document management module. Compared with the prior art, the icon of the application program matched with the target document is added to the target document with the empty icon attribute in the display content of the target document by checking the icon attribute of each document in the document management template, and the icon of the application program capable of opening the target document can be directly checked due to the fact that the application program matched with the target document can open the target document, so that the appropriate application program can be quickly and accurately found, the application program does not need to be manually selected by a user, and the success rate is high.

Description

Document management method and device, electronic device and readable storage medium
Technical Field
The present invention relates to the field of document management technologies, and in particular, to a document management method and apparatus, an electronic apparatus, and a readable storage medium.
Background
In an electronic device, various Applications (APPs) used by a user on a daily basis have a fixed data format, and an operating system identifies different documents by unique file extensions registered in the system by the applications. When a user opens a document in an electronic device, the operating system will determine which application to open the document based on the file extension of the document.
At present, when a user opens a document, the document may not be opened, in this case, an operating system may prompt the user to select an application program from an existing application program list to try to open the document, however, a mode selected by the user cannot quickly and accurately find a suitable application program, and a success rate is low.
Disclosure of Invention
The embodiment of the invention provides a document management method and device, an electronic device and a readable storage medium, which can solve the problem that a user cannot quickly and accurately find a proper application program by selecting the application program under the condition that a document cannot be opened, and the success rate is low.
In order to achieve the above object, a first aspect of the embodiments of the present invention provides a document management method, including:
checking icon attributes of each document in the document management module;
searching an application program matched with the target document from the network resource for the target document with the detected icon attribute being empty;
and adding the icon of the application program in the display content of the target document in the document management module.
To achieve the above object, a second aspect of embodiments of the present invention provides a document management apparatus, including:
the checking module is used for checking the icon attribute of each document in the document management module;
the searching module is used for searching an application program matched with the target document from the network resource for the target document with the detected icon attribute being empty;
and the adding module is used for adding the icon of the application program in the display content of the target document in the document management module.
In order to achieve the above object, a third aspect of embodiments of the present invention provides an electronic device, a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the document management method according to the first aspect.
To achieve the above object, a fourth aspect of the embodiments of the present invention provides a readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps in the document management method according to the first aspect.
In the embodiment of the invention, the icon attribute of each document in the document management module is checked, for the target document with the empty icon attribute, an application program matched with the target document is searched from network resources, and the icon of the application program is added in the display content of the target document in the document management module. Compared with the prior art, the icon of the application program matched with the target document is added to the target document with the empty icon attribute in the display content of the target document by checking the icon attribute of each document in the document management template, and the icon of the application program capable of opening the target document can be directly checked due to the fact that the application program matched with the target document can open the target document, so that the appropriate application program can be quickly and accurately found, the application program does not need to be manually selected by a user, and the success rate is high.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a block diagram of an electronic device;
FIG. 2 is a flowchart of a document management method according to an embodiment of the present invention;
FIG. 3 is another flowchart illustrating a document management method according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a document management interface in an embodiment of the present invention;
FIG. 5 is a schematic view showing a configuration of a document managing apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic view showing another structure of the document managing apparatus according to the embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 invention.
Fig. 1 shows a block diagram of an electronic device. The video recording method based on multiple cameras provided by the embodiment of the present invention can be applied to the electronic device 10 shown in fig. 1, where the electronic device 10 may include, but is not limited to: the system comprises a smart phone, a notebook, a tablet computer, a wearable smart device and the like, wherein the smart phone, the notebook, the tablet computer and the wearable smart device are provided with a plurality of cameras and can record videos.
As shown in fig. 1, the electronic device 10 includes a memory 101, a memory controller 102, one or more processors 103 (only one of which is shown), a peripheral interface 104, a radio frequency module 105, a key module 106, an audio module 107, a touch screen 108, and a plurality of cameras 109. These components communicate with each other via one or more communication buses/signal lines 110.
It is to be understood that the structure shown in fig. 1 is merely an illustration and is not intended to limit the structure of the electronic device. The electronic device 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
The memory 101 may be used to store software programs and modules, such as program instructions/modules corresponding to the multi-camera-based video recording method and apparatus in the embodiment of the present invention, and the processor 103 executes various functional applications and data processing by running the software programs and modules stored in the memory 101, so as to implement the multi-camera-based video recording method implemented in the electronic apparatus 10.
Memory 101 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 101 may further include memory located remotely from the processor 103, which may be connected to the electronic device 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. Access to the memory 101 by the processor 103 and possibly other components may be under the control of the memory controller 102.
The peripheral interface 104 couples various input/output devices to the CPU and to the memory 101. The processor 103 executes various software, instructions within the memory 101 to perform various functions of the electronic device 10 and to perform data processing.
In some embodiments, the peripheral interface 104, the processor 103, and the memory controller 102 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The rf module 105 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The rf module 105 may include various existing circuit elements for performing these functions, such as an antenna, an rf transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The rf module 105 may communicate with various networks such as the internet, an intranet, a preset type of wireless network, or other devices through a preset type of wireless network. The preset types of wireless networks described above may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The Wireless network of the above-mentioned preset type may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), bluetooth, Wireless Fidelity (WiFi) (e.g., IEEE802.11 a, IEEE802.11 b, IEEE802.1 g and/or IEEE802.11 n), Voice over Internet protocol (VoIP), world wide web for Wireless Access (Wi-Max), other protocols for email, instant messaging, and short messaging, and any other suitable messaging protocol.
The key module 106 provides an interface for a user to input to the electronic device, and the user can press different keys to cause the electronic device 10 to perform different functions.
Audio module 107 provides an audio interface to a user that may include one or more microphones, one or more speakers, and audio circuitry. The audio circuitry receives audio data from the peripheral interface 104, converts the audio data to electrical information, and transmits the electrical information to the speaker. The speaker converts the electrical information into sound waves that the human ear can hear. The audio circuitry also receives electrical information from the microphone, converts the electrical information to voice data, and transmits the voice data to the peripheral interface 104 for further processing. The audio data may be retrieved from the memory 101 or through the radio frequency module 105. In addition, the audio data may also be stored in the memory 101 or transmitted through the radio frequency module 105. In some examples, audio module 107 may also include a headphone jack for providing an audio interface to headphones or other devices.
The touch screen 108 provides both an output and an input interface between the electronic device and the user. In particular, the touch screen 108 displays video output to the user, the content of which may include text, graphics, video, and any combination thereof. Some of the output results are for some of the user interface objects. The touch screen 108 also receives user inputs, such as user clicks, swipes, and other gesture operations, for the user interface objects to respond to these user inputs. The technique of detecting user input may be based on resistive, capacitive, or any other possible touch detection technique. Specific examples of touch screen 108 display units include, but are not limited to, liquid crystal displays or light emitting polymer displays.
The cameras 109 are used for taking still pictures or recording moving video documents, and are generally disposed on the back and the front of the electronic device 10, wherein the camera disposed on the front of the electronic device 10 is generally referred to as a front camera, and the camera disposed on the back of the electronic device 10 is generally referred to as a rear camera. It can be understood that, in practical applications, with the development of electronic device technology, the plurality of cameras may not be limited to be disposed on the front and back of the electronic device, but may be disposed on any other portion of the electronic device, such as a side surface.
Referring to fig. 2, fig. 2 is a schematic flow chart of a document management method according to an embodiment of the present invention, the method including:
step 201, checking the icon attribute of each document in the document management module;
in the embodiment of the present invention, the document management method is applied to a document management apparatus (hereinafter, simply referred to as a management apparatus) which is a program module and can be stored in a readable storage medium of an electronic apparatus, and a processor in the electronic apparatus can read and run the management apparatus in the readable storage medium to realize the document management method.
The electronic device generally refers to a mobile device, such as a smart phone, a PAD, a wearable device, and so on. The documents may be stored in the electronic device, typically in a document management module, which is used to manage the documents in the electronic device. Wherein the management module may be an application.
In the document management interface of the document management module, the display content of each document is displayed in a preset manner, and the display content at least includes a name of the document and a file extension of the document, for example, the display content may be "the first. Further, the display content further includes an icon attribute item, the icon attribute of the document may be null or non-null, and when the icon attribute of the document is non-null, it indicates that an application program capable of opening the document is installed in the electronic device, where the icon attribute is a type used for displaying the document and is a mode of being displayed by an icon, where the icon attribute includes: icon color, size, transparency, shading, etc. For example, for a text document, when the document management interface is displayed, the following are performed in sequence: document icon, document name, file extension. When the icon attribute of the document is empty, it indicates that an application capable of opening the document is not installed in the electronic device at this time, and at this time, since the type of the document is not clear, it is usually indicated as "? "replace the document icon, that is, when the icon attribute of the document is empty, the display contents of the document in the document management interface sequentially include: is there a Document name, file extension. It can be understood that the document to be managed according to the embodiment of the present invention is found based on the fact that the application program capable of opening the document is not installed when the icon attribute is empty.
Where file extensions are a mechanism for marking document type, typically a file extension is followed by a primary file name, separated by a separator. A file extension may be considered a type of metadata. Common file extensions are: txt, doc, doxc, PDF, PPT, etc.
Step 202, searching an application program matched with a target document from network resources for the target document with the checked icon attribute being empty;
step 203, adding the icon of the application program in the display content of the target document in the document management module.
In the embodiment of the present invention, the management apparatus checks the icon attribute of each document in the document management module. For a document with an icon attribute being non-empty, determining that an application program for opening the document is installed, and not processing the document, and for a document with an icon attribute being empty, taking the document as a target document, and searching for an application program matched with the target document from network resources.
Further, the management device further obtains an icon of an application program matched with the target document, and adds the icon to the display content of the target document in the document management module, so that in the document management interface, when the target document is displayed, the display content sequentially includes: is there a Document name, file extension, icon. Wherein, "? The "still indicates that the application capable of opening the target document is not installed, and the" icon "is used to indicate that the application capable of opening the target document can be opened using the application to which the icon belongs, so that the user can see at a glance which application capable of opening the target document is not installed and which application can open the target document. And further, if the clicking operation on the icon is detected, the downloading operation of the application program to which the icon belongs is triggered, the application program is installed after the installation package is downloaded, and after the application program is installed, if the target document is clicked, the installed application program is automatically called to open the target document.
In the embodiment of the invention, the management device checks the icon attribute of each document in the document management module, searches the application program matched with the target document from the network resource for the target document with the empty icon attribute, and adds the icon of the application program in the display content of the target document in the document management module. Compared with the prior art, the icon of the application program matched with the target document is added to the target document with the empty icon attribute in the display content of the target document by checking the icon attribute of each document in the document management template, and the icon of the application program capable of opening the target document can be directly checked due to the fact that the application program matched with the target document can open the target document, so that the appropriate application program can be quickly and accurately found, the application program does not need to be manually selected by a user, and the success rate is high.
Referring to fig. 3, another flow chart of the document management method according to the embodiment of the present invention is shown, where the method includes:
step 301, checking icon attributes of each document in the document management module;
it is understood that step 301 is similar to that described in step 201 in the embodiment shown in fig. 2, and is not described herein again.
Step 302, for the target document with the checked icon attribute being empty, acquiring the file extension name of the target document;
step 303, searching a file extension name of the target document in a preset file extension name list of the non-executable document; continuing to execute step 304 or step 305;
in the embodiment of the present invention, for the target document with the checked icon attribute being empty, the management apparatus may obtain the file extension of the target document, and specifically may obtain the file extension from the existing display content of the target document.
The document management module of the electronic device stores a non-executable document and an executable document, where the non-executable document generally refers to a document called by operating system operation or a document called by application program operation and cannot be opened, for example, a document with a file extension of bat. An executable document generally refers to a document that contains specific content within the document that is openable by an application that supports the file extension of the document, e.g., a doc document, a PPT document, etc. It is understood that "open" in the embodiment of the present invention refers to effective presentation of the content carried by the document.
Since the non-executable document cannot be opened, the non-executable document does not need to be opened, and even if the non-executable document is searched from network resources, the application program which can open the document cannot be searched, so that in order to avoid waste of searching resources, the management device searches a preset file extension list of the non-executable document for the file extension of a target document after checking the target document with an empty icon attribute, wherein the file extension list comprises all the file extensions of the existing non-executable document.
Step 304, if the file extension of the target document is found, adding an attribute identifier in the display content of the target document in the document management module, wherein the attribute identifier is used for identifying the target document as a non-executable document;
step 305, if the file extension of the target document is not found, searching an application program supporting the file extension from the network resource, and taking the searched application program as an application program matched with the target document; continuing to execute step 306;
in the embodiment of the present invention, if the file extension of the target document is found, it indicates that the target document is a non-executable document, and further, in order to avoid waste of system resources and user time caused by clicking and opening the target document by a user, the management device adds an attribute identifier to the display content of the target document in the document management module, where the attribute identifier is used to identify that the target document is a non-executable document. And further, if the user clicks the attribute identifier, additional information corresponding to the attribute identifier is displayed, for example: the file is an infeasible document and there are no applications that can open the document.
If the file extension of the target document is not found, the management device searches an application program capable of opening the file extension from the network resource, specifically, the management device sends the file extension to the server, and after the server receives the file extension, the server determines the type of the document with the file extension and searches the application program supporting the type. For example, if the file extension is doc, the searched application program capable of opening the file extension is an office application program. It is understood that if the application program capable of opening the file extension is not searched, the document corresponding to the file extension is indicated to belong to the non-executable document, and the document extension is added to the file extension list of the non-executable document.
Step 306, acquiring an icon of the application program, and generating a thumbnail of the icon by using the icon;
step 307, adding a thumbnail of the icon to the display content of the target document in the document management module.
In the embodiment of the invention, after the application program matched with the target document is searched, the icon of the application program is obtained, the thumbnail is generated by using the icon, and the thumbnail of the icon is added in the display content of the target document in the document management module.
It can be understood that the management device may check the icon attribute of each document in the document management module at preset time intervals, and perform no processing for the document with the non-empty icon attribute, and perform processing according to the technical scheme in the embodiment of the present invention for the document with the empty icon attribute. Or, the management device checks each newly stored document each time it is monitored that a new document is stored in the document management module.
In the embodiment of the invention, the icon of the application program matched with the target document is added to the target document with the empty icon attribute in the display content of the target document by checking the icon attribute of each document in the document management template, and the application program matched with the target document can open the target document, so that the icon of the application program capable of opening the target document can be directly checked, the proper application program can be quickly and accurately found, the application program does not need to be manually selected by a user, and the success rate is high. And whether the target document is a non-executable document or not is determined, so that the occupation of system resources can be effectively reduced, and the time of a user is saved.
In the embodiment of the invention, the thumbnail in the display content is an application program which is required to be used for reminding a user to open a document. On the basis of fig. 2 and 3, after the thumbnail of the icon is added, the following steps can be further continuously executed
Step A: responding to an instruction of entering a document management module, and displaying each document in a document management interface according to the display content of each document in the document management module;
and B: and responding to a click instruction of the thumbnail, and downloading an application program corresponding to the thumbnail.
In the embodiment of the present invention, if a user wants to view a document, a command entering the document management module may be generated by clicking or in other manners, and the management device, in response to the command entering the document management module, displays each document in the document management interface according to the display content of each document in the document management module, please refer to fig. 4, which is a schematic diagram of the document management interface in the embodiment of the present invention, where a document "configmanager. "indicate its icon attribute is empty, the circle containing the" X "shape behind the document is the attribute mark, and marks the document as a non-executable document, and if the user clicks the attribute mark or places the cursor on the attribute mark, the additional information corresponding to the attribute mark will be displayed, that is," the file is a non-executable document, and there is no application program capable of opening the document ". It is to be understood that fig. 4 is a schematic diagram of when the additional information triggers display. Where the document "popt 1207. xmnd" is an actionable document, "? "indicates that the icon attribute is null, no application program capable of opening the document is installed in the electronic device, an abbreviated diagram of the application program capable of opening the document is marked as the application program capable of opening the document, and the application program capable of opening the document is an application program named as the" thinking guide diagram ".
If the user clicks the thumbnail, a click instruction is generated, and the management device responds to a response instruction of the thumbnail and downloads the application program corresponding to the thumbnail. It can be understood that the management device may first display the prompt information to confirm whether the application program corresponding to the thumbnail needs to be downloaded, and if the user confirms that the application program needs to be downloaded, the management device may download the installation package of the corresponding application program by using the thumbnail and install the application program.
In the embodiment of the invention, for the situation that the application program capable of opening the target document is not installed, the user does not need to select which installed application program is used for trying to open the target document, but the thumbnail of the application program capable of opening the target document is added to the display content in advance, so that the user can visually check which application program the target document needs to be opened through.
Referring to fig. 5, a schematic structural diagram of a document management apparatus according to an embodiment of the present invention is shown, the apparatus including:
a checking module 501, configured to check icon attributes of each document in the document management module;
a searching module 502, configured to search, for a target document with an empty icon attribute, an application program that is matched with the target document from a network resource;
an adding module 503, configured to add an icon of the application program to the display content of the target document in the document management module.
In the document management interface of the document management module, the display content of each document is displayed in a preset manner, and the display content at least includes a name of the document and a file extension of the document, for example, the display content may be "the first. Further, the display content further includes an icon attribute item, the icon attribute of the document may be null or non-null, and when the icon attribute of the document is non-null, it indicates that an application program capable of opening the document is installed in the electronic device, where the icon attribute is a type used for displaying the document and is a mode of being displayed by an icon, where the icon attribute includes: icon color, size, transparency, shading, etc. For example, for a text document, when the document management interface is displayed, the following are performed in sequence: document icon, document name, file extension. When the icon attribute of the document is empty, it indicates that an application capable of opening the document is not installed in the electronic device at this time, and at this time, since the type of the document is not clear, it is usually indicated as "? "replace the document icon, that is, when the icon attribute of the document is empty, the display contents of the document in the document management interface sequentially include: is there a Document name, file extension. It can be understood that the document to be managed according to the embodiment of the present invention is found based on the fact that the application program capable of opening the document is not installed when the icon attribute is empty.
Where file extensions are a mechanism for marking document type, typically a file extension is followed by a primary file name, separated by a separator. A file extension may be considered a type of metadata. Common file extensions are: txt, doc, doxc, PDF, PPT, etc.
In an embodiment of the present invention, the checking module 501 will check the icon attributes of each document in the document management module. For a document with an icon attribute being non-empty, determining that an application program for opening the document is installed, and not processing the document, and for a document with an icon attribute being empty, the search module 502 takes the document as a target document and searches for an application program matching the target document from network resources, it can be understood that the application program matching the target document refers to an application program capable of opening the target document.
Further, the adding module 503 will obtain an icon of an application program matched with the target document, and add the icon to the display content of the target document in the document management module, so that in the document management interface, when the target document is displayed, the display content sequentially includes: is there a Document name, file extension, icon. Wherein, "? The "still indicates that the application capable of opening the target document is not installed, and the" icon "is used to indicate that the application capable of opening the target document can be opened using the application to which the icon belongs, so that the user can see at a glance which application capable of opening the target document is not installed and which application can open the target document. And further, if the clicking operation on the icon is detected, the downloading operation of the application program to which the icon belongs is triggered, the application program is installed after the installation package is downloaded, and after the application program is installed, if the target document is clicked, the installed application program is automatically called to open the target document.
In the embodiment of the invention, the management device checks the icon attribute of each document in the document management module, searches the application program matched with the target document from the network resource for the target document with the empty icon attribute, and adds the icon of the application program in the display content of the target document in the document management module. Compared with the prior art, the icon of the application program matched with the target document is added to the target document with the empty icon attribute in the display content of the target document by checking the icon attribute of each document in the document management template, and the icon of the application program capable of opening the target document can be directly checked due to the fact that the application program matched with the target document can open the target document, so that the appropriate application program can be quickly and accurately found, the application program does not need to be manually selected by a user, and the success rate is high.
Referring to FIG. 6, another structural diagram of a document management apparatus according to an embodiment of the present invention is shown, the apparatus including: as shown in the embodiment of fig. 5, the checking module 501, the searching module 502 and the adding module 503 are similar to those described in the embodiment of fig. 5, and are not repeated here.
In this embodiment of the present invention, the searching module 502 includes:
an obtaining module 601, configured to obtain a file extension of the target document;
and the software searching module 602 is configured to search the network resource for an application program that supports the file extension, and use the searched application program as an application program that matches the target document.
Further, the searching module 502 further comprises:
the searching module 603 is configured to search, after the obtaining module 601, a file extension of the target document in a file extension list of a preset non-executable document;
an identifier adding module 604, configured to add an attribute identifier to the display content of the target document in the document management module if the file extension of the target document is found, where the attribute identifier is used to identify that the target document is a non-executable document;
and the software searching module 602 is specifically configured to search, if the file extension of the target document is not found, an application program supporting the file extension from the network resource, and use the searched application program as the application program matched with the target document.
In the embodiment of the present invention, the adding module 503 includes:
an obtaining and generating module 605, configured to obtain an icon of the application program, and generate an abbreviated graph of the icon by using the icon;
a thumbnail adding module 606, configured to add a thumbnail of the icon in the display content of the target document in the document management module.
In the embodiment of the present invention, for a target document with an empty icon attribute, the obtaining module 601 obtains a file extension of the target document, which may be specifically obtained from existing display content of the target document.
The document management module of the electronic device stores a non-executable document and an executable document, where the non-executable document generally refers to a document called by operating system operation or a document called by application program operation and cannot be opened, for example, a document with a file extension of bat. An executable document generally refers to a document that contains specific content within the document that is openable by an application that supports the file extension of the document, e.g., a doc document, a PPT document, etc. It is understood that "open" in the embodiment of the present invention refers to effective presentation of the content carried by the document.
Since the non-executable document cannot be opened, and does not need to be opened, even if the search is performed from the network resource, the application program which can open the document cannot be searched, so that, in order to avoid wasting the search resource, after the target document with an empty icon attribute is checked, the searching module 603 searches the file extension of the target document in a preset file extension list of the non-executable document, wherein the file extension list contains all the file extensions of the existing non-executable documents.
In the embodiment of the present invention, if the file extension of the target document is found, it indicates that the target document is a non-executable document, and further, to avoid waste of system resources and user time caused by clicking to open the target document by a user, the identifier adding module 604 adds an attribute identifier to the display content of the target document in the document management module, where the attribute identifier is used to identify that the target document is a non-executable document. And further, if the user clicks the attribute identifier, additional information corresponding to the attribute identifier is displayed, for example: the file is an infeasible document and there are no applications that can open the document.
If the file extension of the target document is not found, the software search module 602 searches for an application program that can open the file extension from the network resource, specifically, the software search module 602 sends the file extension to the server, and after receiving the file extension, the server determines the type of the document having the file extension and searches for the application program that supports the type. For example, if the file extension is doc, the searched application program capable of opening the file extension is an office application program. It is understood that if the application program capable of opening the file extension is not searched, the document corresponding to the file extension is indicated to belong to the non-executable document, and the document extension is added to the file extension list of the non-executable document.
In the embodiment of the present invention, after searching for an application program matching a target document, the obtaining and generating module 605 obtains an icon of the application program, generates a thumbnail by using the icon, and the thumbnail adding module 606 adds the thumbnail of the icon in the presentation content of the target document in the document management module.
It can be understood that the management device may check the icon attribute of each document in the document management module at preset time intervals, and perform no processing for the document with the non-empty icon attribute, and perform processing according to the technical scheme in the embodiment of the present invention for the document with the empty icon attribute. Or, the management device checks each newly stored document each time it is monitored that a new document is stored in the document management module.
In the embodiment of the invention, the icon of the application program matched with the target document is added to the target document with the empty icon attribute in the display content of the target document by checking the icon attribute of each document in the document management template, and the application program matched with the target document can open the target document, so that the icon of the application program capable of opening the target document can be directly checked, the proper application program can be quickly and accurately found, the application program does not need to be manually selected by a user, and the success rate is high. And whether the target document is a non-executable document or not is determined, so that the occupation of system resources can be effectively reduced, and the time of a user is saved.
In the embodiment of the present invention, the thumbnail in the display content is an application program to be used for reminding the user to open the document, and on the basis of fig. 5 and 6, the apparatus further includes:
the display module is used for responding to an instruction of entering the document management module and displaying each document in a document management interface according to the display content of each document in the document management module;
and the downloading module is used for responding to a click instruction of the thumbnail and downloading the application program corresponding to the thumbnail.
In the embodiment of the present invention, if a user wants to view a document, a command entering the document management module may be generated by clicking or in other manners, and the presentation module, in response to the command entering the document management module, presents each document in the document management interface according to the presentation content of each document in the document management module, please refer to fig. 4, which is a schematic diagram of the document management interface in the embodiment of the present invention, where a document "configmanager. "indicate its icon attribute is empty, the circle containing the" X "shape behind the document is the attribute mark, and marks the document as a non-executable document, and if the user clicks the attribute mark or places the cursor on the attribute mark, the additional information corresponding to the attribute mark will be displayed, that is," the file is a non-executable document, and there is no application program capable of opening the document ". It is to be understood that fig. 4 is a schematic diagram of when the additional information triggers display. Where the document "popt 1207. xmnd" is an actionable document, "? "indicates that the icon attribute is null, no application program capable of opening the document is installed in the electronic device, an abbreviated diagram of the application program capable of opening the document is marked as the application program capable of opening the document, and the application program capable of opening the document is an application program named as the" thinking guide diagram ".
If the user clicks the thumbnail, a click instruction is generated, and the downloading module responds to the response instruction of the thumbnail and downloads the application program corresponding to the thumbnail. It can be understood that the management device may first display the prompt information to confirm whether the application program corresponding to the thumbnail needs to be downloaded, and if the user confirms that the application program needs to be downloaded, the management device may download the installation package of the corresponding application program by using the thumbnail and install the application program.
In the embodiment of the invention, for the situation that the application program capable of opening the target document is not installed, the user does not need to select which installed application program is used for trying to open the target document, but the thumbnail of the application program capable of opening the target document is added to the display content in advance, so that the user can visually check which application program the target document needs to be opened through.
An embodiment of the present invention further provides an electronic apparatus, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the document management method described in the embodiment shown in fig. 2 or fig. 3.
Embodiments of the present invention also provide a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the document management method in the embodiments shown in fig. 2 or fig. 3.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present invention is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no acts or modules are necessarily required of the invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the above description, for a person skilled in the art, there are variations on the specific implementation and application scope according to the concepts of the embodiments of the present invention, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A document management method, characterized in that the method comprises:
checking icon attributes of each document in the document management module;
searching an application program matched with the target document from the network resource for the target document with the detected icon attribute being empty;
adding an icon of the application program in the display content of the target document in the document management module;
wherein, the adding the icon of the application program further comprises: responding to an instruction of entering a document management module, and displaying each document in a document management interface according to the display content of each document in the document management module; and responding to a click instruction of the icon, and downloading the application program corresponding to the icon.
2. The method of claim 1, wherein searching for an icon of an application matching the target document from a network resource comprises:
acquiring a file extension of the target document;
and searching the application programs supporting the file extension from the network resources, and taking the searched application programs as the application programs matched with the target document.
3. The method of claim 2, wherein obtaining the file extension of the target document further comprises:
searching a file extension name of the target document in a preset file extension name list of the non-executable document;
if the file extension of the target document is found, adding an attribute identifier in the display content of the target document in the document management module, wherein the attribute identifier is used for identifying the target document as a non-executable document;
and if the file extension of the target document is not found, continuing to execute the step of searching the application program supporting the file extension from the network resource and taking the searched application program as the application program matched with the target document.
4. The method according to any one of claims 1 to 3, wherein the adding of the icon of the application program in the display content of the target document in the document management module comprises:
acquiring an icon of the application program, and generating a thumbnail of the icon by using the icon;
and adding a thumbnail of the icon in the display content of the target document in the document management module.
5. A document management apparatus, characterized in that the apparatus comprises:
the checking module is used for checking the icon attribute of each document in the document management module;
the searching module is used for searching an application program matched with the target document from the network resource for the target document with the detected icon attribute being empty;
the adding module is used for adding the icon of the application program in the display content of the target document in the document management module;
wherein the apparatus further comprises:
the display module is used for responding to an instruction of entering the document management module and displaying each document in a document management interface according to the display content of each document in the document management module;
and the downloading module is used for responding to the click instruction of the icon and downloading the application program corresponding to the icon.
6. The apparatus of claim 5, wherein the search module comprises:
the acquisition module is used for acquiring the file extension name of the target document;
and the software searching module is used for searching the application programs supporting the file extension from the network resources and taking the searched application programs as the application programs matched with the target document.
7. The apparatus of claim 6, wherein the search module further comprises:
the searching module is used for searching the file extension name of the target document in a preset file extension name list of the non-executable document after the acquiring module;
the identification adding module is used for adding an attribute identification in the display content of the target document in the document management module if the file extension of the target document is found, wherein the attribute identification is used for identifying the target document as a non-executable document;
the software searching module is specifically configured to search, if the file extension of the target document is not found, an application program supporting the file extension from the network resource, and use the searched application program as the application program matched with the target document.
8. The apparatus of any one of claims 5 to 7, wherein the adding module comprises:
the acquisition generation module is used for acquiring the icon of the application program and generating a thumbnail of the icon by using the icon;
and the thumbnail adding module is used for adding the thumbnails of the icons in the display content of the target document in the document management module.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the document management method according to any one of claims 1 to 4 when executing the computer program.
10. A readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, realizing the steps of the document management method according to any one of claims 1 to 4.
CN201810171009.7A 2018-03-01 2018-03-01 Document management method and device, electronic device and readable storage medium Active CN108460128B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810171009.7A CN108460128B (en) 2018-03-01 2018-03-01 Document management method and device, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810171009.7A CN108460128B (en) 2018-03-01 2018-03-01 Document management method and device, electronic device and readable storage medium

Publications (2)

Publication Number Publication Date
CN108460128A CN108460128A (en) 2018-08-28
CN108460128B true CN108460128B (en) 2020-11-20

Family

ID=63217008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810171009.7A Active CN108460128B (en) 2018-03-01 2018-03-01 Document management method and device, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN108460128B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408465B (en) * 2018-10-29 2021-07-13 Oppo广东移动通信有限公司 File attribution information recording method, device, storage medium and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011096079A (en) * 2009-10-30 2011-05-12 Nomura Research Institute Ltd File open system
CN102799468A (en) * 2011-05-27 2012-11-28 腾讯科技(深圳)有限公司 Method and device for opening unknown file
CN103106094A (en) * 2013-03-06 2013-05-15 广东欧珀移动通信有限公司 File opening method and intelligent mobile terminal
CN106095456A (en) * 2016-06-17 2016-11-09 北京奇虎科技有限公司 User is guided to download the method for application program, device and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9384195B2 (en) * 2008-11-18 2016-07-05 At&T Intellectual Property I, L.P. Multimedia file drop in a wireless device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011096079A (en) * 2009-10-30 2011-05-12 Nomura Research Institute Ltd File open system
CN102799468A (en) * 2011-05-27 2012-11-28 腾讯科技(深圳)有限公司 Method and device for opening unknown file
CN103106094A (en) * 2013-03-06 2013-05-15 广东欧珀移动通信有限公司 File opening method and intelligent mobile terminal
CN106095456A (en) * 2016-06-17 2016-11-09 北京奇虎科技有限公司 User is guided to download the method for application program, device and mobile terminal

Also Published As

Publication number Publication date
CN108460128A (en) 2018-08-28

Similar Documents

Publication Publication Date Title
WO2020211709A1 (en) Method and electronic apparatus for adding annotation
US20170235435A1 (en) Electronic device and method of application data display therefor
US11347685B2 (en) File management method and apparatus
US20150213127A1 (en) Method for providing search result and electronic device using the same
US20150193424A1 (en) Method of changing dynamic screen layout and electronic device
CN109917980B (en) Multi-page display method and device
US11144195B2 (en) Fast data copying method and electronic device
EP3097470B1 (en) Electronic device and user interface display method for the same
CN105701122A (en) Log collection method, apparatus and system
WO2019105457A1 (en) Image processing method, computer device and computer readable storage medium
CN107239351B (en) Pasting method and device
WO2022078295A1 (en) Device recommendation method and electronic device
CN114327189A (en) Operation method, intelligent terminal and storage medium
CN108763297A (en) Web page resources processing method, device and mobile terminal
EP3511840B1 (en) Data processing method, electronic device, and computer-readable storage medium
US10931610B2 (en) Method, device, user terminal and electronic device for sharing online image
CN105468606B (en) Webpage saving method and device
CN108460128B (en) Document management method and device, electronic device and readable storage medium
US20150112997A1 (en) Method for content control and electronic device thereof
JP6544871B2 (en) Information display method, terminal, and server
CN114117269B (en) Memo information collection method and device, electronic equipment and storage medium
EP4351117A1 (en) Information display method and apparatus, and electronic device
US20240104058A1 (en) File connection method and apparatus, terminal device, and storage medium
CN105320707B (en) Hot word prompting method and device based on instant messaging
CN109948095B (en) Method, device, terminal and storage medium for displaying webpage content

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant