CN106802812A - A kind of method of load document, device and electronic equipment - Google Patents

A kind of method of load document, device and electronic equipment Download PDF

Info

Publication number
CN106802812A
CN106802812A CN201611097725.2A CN201611097725A CN106802812A CN 106802812 A CN106802812 A CN 106802812A CN 201611097725 A CN201611097725 A CN 201611097725A CN 106802812 A CN106802812 A CN 106802812A
Authority
CN
China
Prior art keywords
living document
attribute information
document
data update
update notification
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
CN201611097725.2A
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.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
LeTV Holding Beijing Co Ltd
LeTV Information Technology Beijing Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin Co Ltd
LeTV Holding Beijing 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd, LeTV Holding Beijing Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201611097725.2A priority Critical patent/CN106802812A/en
Publication of CN106802812A publication Critical patent/CN106802812A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • 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/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the present invention provides a kind of method of load document, device and electronic equipment, is related to technical field of telecommunications, is invented to cause ANR when solving the problems, such as that load document is excessive.Main method includes:Loading function is set up, the loading function is performed by background thread;According to the loading function, the attribute information for obtaining living document in movable storage device is scanned, the attribute information includes file name, file type, storing path and coded format;According to the attribute information, the data update notification of the living document is generated;According to the data update notification, perform and update operational order.During the embodiment of the present invention is mainly used in load document.

Description

A kind of method of load document, device and electronic equipment
Technical field
The present embodiments relate to technical field of telecommunications, more particularly to a kind of method of load document, device and electronics Equipment.
Background technology
With widely using for the electronic equipments such as TV, computer, document management software as an APP for management resource, There is very important status, comprising many different types of files, such as video, music, picture etc. in usual file management Deng.Document management software, can manage the file of electronic equipment internal storage, it is also possible to manage the external shifting such as USB flash disk, mobile hard disk The file of dynamic storage device.Because external mobile storage device typically has larger memory space, once movable storage device The file of storage is excessive, it may be difficult to certain specific file is searched in catalogue.In order to effectively show the file under file, lead to Cross formulation classifying rules, the different types of file of classification displaying, such as visual classification mouthful, audio classification mouth, picture classification mouthful etc. Deng raising search efficiency.
In the prior art, in file during classification searching video file, attribute letter is extracted from video file is found Breath, attribute information is filled into in including the list on UI (User Interface, user interface), then in list Attribute information carry out permutatation, such as file size, generate time, title etc..By classification searching, reduce single look-up Data volume during file, so as to improve search efficiency.
By the research to prior art, inventor is sent out during now into file directory, if current directory changes not The situations of change such as file increase, reduction can be timely responded to using database update mechanism, it is necessary to reload all of file, Current file directory is blank catalogue before loading terminates, and is taken during load document more long.If desired load File is more, can cause ANR (Application Not Responding programs are without response) problem.
The content of the invention
A kind of load document method, device and electronic equipment are provided in the embodiment of the present invention, to solve in the prior art Load document it is excessive when cause the problem of ANR.
The embodiment of the invention discloses following technical scheme:
In a first aspect, a kind of method of load document is the embodiment of the invention provides, including:Loading function is set up, it is described Loading function is performed by background thread;According to the loading function, living document in acquisition movable storage device is scanned Attribute information, the attribute information include file name, file type, storing path and coded format;According to the attribute Information, generates the data update notification of the living document;According to the data update notification, perform and update operational order.
In the above method, loading function is performed in background thread, be not take up UI display resources, UI display effects are not influenceed. Simultaneously using the method for data update notification, the file for changing only is processed, reduce data processing amount, increased file process Speed, it is to avoid the appearance of ANR problems.
Further, it is described according to the loading function, it is scanned the category for obtaining living document in movable storage device Property information, including:If the electronic equipment is connected with the movable storage device, hung for the movable storage device is distributed Carry path;According to the loading function, the living document under the carry path is scanned;Mark the renewal side of the living document Formula updates to increase;Parse the attribute information of the living document.By the carry path for movable storage device distributing uniform, The convenient living document unified management in movable storage device.
Further, it is described according to the loading function, it is scanned the category for obtaining living document in movable storage device Property information, also includes:If the electronic equipment is disconnected with the movable storage device, search under the carry path The living document;The update mode of the living document under the carry path is marked to be updated to delete.When removal is moved After dynamic storage device, the update mode of living document under unified mark carry path is dynamic in unified renewal movable storage device State file, reduces the treating capacity of data, there is provided treatment effeciency.
Further, it is described according to the attribute information, the data update notification of the living document is generated, including:Look into Look for the update mode of the living document;According to the update mode and the attribute information, generate the data and update logical Know.Update mode is added in data update notification, in order to subsequently to the quick place of living document in data update notification Reason.
Further, it is described according to the data update notification, perform and update operational order, including:According to the data The update mode in update notification, performs the renewal operation of the living document.Improve the treatment speed of data update notification Degree.
Further, after the data update notification of the living document according to the attribute information, is generated, the side Method also includes:Search the file type in the attribute information;According to the file type, the association of the living document is judged Application program;The data update notification is sent to the affiliate application.Closed by the association between application program System, sends data update notification so that the synchronous loading in the electronic device of same living document.
Further, described according to the data update notification, execution is updated after operational order, including:Obtain and work as The directory file name of the catalogue file in preceding catalogue;According to preset queueing discipline, by directory file name sequence;According to The result of the sequence, rearranges catalogue file described in the current directory.By setting presetting rule by the dynamic File is ranked up so that arrangement mode more meets reading habit.
Second aspect, the embodiment of the present invention additionally provides a kind of device of load document, including:Unit is set up, for building Vertical loading function, the loading function is performed by background thread;Acquiring unit, for according to the loading function, being swept The attribute information for obtaining living document in movable storage device is retouched, the attribute information includes file name, file type, preservation Path and coded format;Generation unit, for according to the attribute information, generating the data update notification of the living document; Execution unit, for according to the data update notification, performing and updating operational order.
The third aspect, the embodiment of the present invention additionally provides a kind of electronic equipment, including:At least one communication interface;With institute State at least one bus that at least one communication interface is connected;At least one treatment being connected with least one bus Device;At least one memory being connected with least one bus, wherein, the processor is configured as:Set up loading Function, the loading function is performed by background thread;According to the loading function, it is scanned in acquisition movable storage device The attribute information of living document, the attribute information includes file name, file type, storing path and coded format;According to The attribute information, generates the data update notification of the living document;According to the data update notification, perform and update operation Instruction.
Fourth aspect, the embodiment of the present invention additionally provides a kind of nonvolatile computer storage media, and be stored with computer Executable instruction, the computer executable instructions are used for the method for performing the application any of the above-described load document.
5th aspect, the embodiment of the present invention additionally provides a kind of computer program product, the computer program product bag Calculation procedure of the storage on non-transient computer readable storage medium storing program for executing is included, the computer program includes programmed instruction, works as institute When stating programmed instruction and being computer-executed, make that the computer performs that above-mentioned any one embodiment of first aspect provides is described The method of load document.
Technical scheme provided in an embodiment of the present invention can include the following benefits:
A kind of method of load document provided in an embodiment of the present invention, device and electronic equipment, by setting up loading function, Then the attribute information of living document in movable storage device is scanned and obtained according to loading function, further according to attribute letter Breath, generates the data update notification of living document, is performed finally according to data update notification and updates operational order.With prior art Compare, the embodiment of the present invention can perform loading function in background thread, be not take up UI display resources, do not influence UI to show effect Really.Simultaneously using the method for data update notification, the file for changing only is processed, reduce data processing amount, increased file Processing speed, it is to avoid the appearance of ANR problems.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not Can the limitation present invention.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows and meets implementation of the invention Example, and be used to explain principle of the invention together with specification.
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without having to pay creative labor, can also obtain other accompanying drawings according to these accompanying drawings.
One or more embodiments are illustrative by the picture in corresponding accompanying drawing, these exemplary theorys The bright restriction not constituted to embodiment, the element with same reference numbers label is expressed as similar element in accompanying drawing, removes It is non-to have especially statement, the figure not composition limitation in accompanying drawing.
Fig. 1 is a kind of implement scene schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of method flow schematic diagram of load document provided in an embodiment of the present invention;
Fig. 3 is the method flow schematic diagram of another load document provided in an embodiment of the present invention;
Fig. 4 is a kind of device composition frame chart of load document provided in an embodiment of the present invention;
Fig. 5 is the device composition frame chart of another load document provided in an embodiment of the present invention;
Fig. 6 is the structural representation of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in implementation method do not represent and the consistent all implementation methods of the present invention.Conversely, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
In embodiments of the present invention, after dispatching from the factory, the size of its memory capacity is fixed to the electronic equipment such as TV, computer , so in order that memory capacity meets the demand of user, as shown in figure 1, extending electronics by external mobile storage device 12 The memory space of equipment 11.Because the memory capacity by movable storage device 12 is larger, it is stored in movable storage device 12 Quantity of documents it is also many, so improve loading movable storage device 12 in file efficiency, solve due to file it is excessively caused ANR problems are even more important.
Embodiment one
The embodiment of the present invention one provides a kind of method of load document, as shown in Fig. 2 the method includes:
201st, loading function is set up.
Loading, the loading of file or information when referring to startup program.Loading function, for performing loading operation, is loaded into text Part or information.After loading function is called, you can realize loading operation.Loading function is performed by background thread.
If doing inquiry data manipulation in main thread, UI display resources will be persistently taken, ANR will be caused more than 5 seconds;Simultaneously This partial information will be updated to database once because system default scans 500 files, then now file management Updating again still causes ANR.Main thread is foreground thread, is that program is carried out when starting, and generally performs various closing and grasps Make, and application program must run all of foreground thread of completion and can just exit, so any method in main thread all to the greatest extent may be used Can do work less.For background thread, application program can not then consider whether it has run through and finish and directly exit, and own Background thread exit Shi Douhui in application program and terminate automatically.So performing loading operation using background thread more meets user Use demand.When loading function is performed, IsBackground (background) attribute is set to true (true) when enabling thread, Make a background thread.
202nd, according to loading function, it is scanned the attribute information for obtaining living document in movable storage device.
Attribute information includes file name, file type, storing path and coded format.All of attribute information is constituted The unique mark of living document, unique living document is can determine according to attribute information.
Movable storage device includes the movable storage devices such as USB flash disk, mobile hard disk, CD, is the external equipment of electronic equipment. It is that dynamic is present for electronic equipment to store the living document in movable storage device, if movable storage device and electronics Equipment is connected, then can in the electronic device find living document, if movable storage device is disconnected with electronic equipment, Living document can not in the electronic device be found.
When searching living document in movable storage device, can be using lookup methods such as recursive scanning, sequential scans, at this The lookup method for searching living document is not limited in inventive embodiments.Cover to enter living document after living document is found Row parsing, obtains the attribute information of living document.The attribute of living document generally includes file name, file type, preserves road Footpath, coded format etc..
Because movable storage device generally has larger memory space, living document is searched for convenience, so generally Multistage catalogue can be divided into.Current directory such as electronic equipment is the subprime directory of movable storage device, then loading function is performed and added The scope of published article part is the living document in current directory.
Due in the prior art load living document when, it may be possible to classification loading, mode classification is such as according to file Type is divided into the file types such as video, audio, image, installation file.So obtain living document attribute information after, it is necessary to Judge whether the file type in the attribute information of living document is identical with current class, and the living document is carried out if identical Next step is operated, and any operation is not performed to the living document if difference.For different mode classifications, the attribute of parsing is believed Breath potentially includes incomplete same attribute, such as in video class, attribute information includes file name, file type, preservation Path, coded format, duration, file size etc.;In audio class, attribute information includes file name, file type, preserves road Footpath, coded format, song title, singer, special edition etc.;In picture category, attribute information include file name, file type, Storing path, coded format, resolution ratio and camera site etc..
203rd, according to attribute information, the data update notification of living document is generated.
Loading to living document in movable storage device, is not the existence position for changing living document, nor changing The attribute of living document, but the movable storage device of electronic equipment will be connected, as a part for electronic equipment, unified management Living document in movable storage device.So data update notification includes both sides implication, one is that data occur updating feelings Condition, two is specific more new content.More new content, is stated in detail by attribute information.Using attribute information as living document number According to a part for update notification.
Data update notification, can be that a living document generates a notice, it is also possible to the multiple including preset quantity Living document generates a data update notification, can generate a data notification with all living documents of catalogue, The quantity of the living document included to update notification in the embodiment of the present invention is not limited.
204th, according to data update notification, perform and update operational order.
After data update notification is generated, perform update corresponding with data update notification and operate, updating operation includes Increase and delete living document.Perform and update operational order, the number with the living document that data update notification includes is corresponding. The result after updating operational order will be performed, sent to UI, shown over the display.
The method of a kind of load document provided in an embodiment of the present invention, by setting up loading function, then according to loading letter Number is scanned and obtains the attribute information of living document in movable storage device, further according to attribute information, generates living document Data update notification, finally according to data update notification perform update operational order.Compared with prior art, the present invention is implemented Example can perform loading function in background thread, be not take up UI display resources, and UI display effects are not influenceed.Simultaneously data using more The new method for notifying, only processes the file for changing, reduction data processing amount increased document processing speeds, it is to avoid ANR The appearance of problem.
Embodiment two
The method that the embodiment of the present invention two additionally provides another load document, as shown in figure 3, the method includes:
301st, loading function is set up.
Loading function, be loading operation execution method, can directly applying electronic equipment installation system system letter Number, can be with being built-in function in programming language, and the optimized integration to loading function is not limited in embodiments of the present invention.
Running background thread generally has time-consuming more long, consumption resource more, and not necessarily has result or definite Return value the characteristics of, for example read large-scale picture, music or down loading network resource etc..If be placed among UI threads, pole Application crash is easily caused, or causes prolonged blank screen, influence Consumer's Experience.So loading function passes through background thread Perform, to avoid producing ANR problems.
The method for creating background thread has various, under different system environments and language environment, creates background thread Method is also differed.The embodiment of the present invention is not limited the method for creating background thread.
302nd, according to loading function, it is scanned the attribute information for obtaining living document in movable storage device.
Attribute information includes file name, file type, storing path and coded format.Scanning obtains movable storage device Middle living document is specifically included:It is movable storage device distribution carry road if electronic equipment is connected with movable storage device Footpath;According to loading function, the living document under scanning carry path;The update mode of living document is marked to increase renewal;Solution Analyse the attribute information of living document.Dynamic also includes during scanning obtains movable storage device:If electronic equipment is stored with mobile Equipment is disconnected, then search the living document under carry path;The update mode of the living document under mark carry path is Delete and update.
It is to be connected for electronic equipment and movable storage device, still disconnects, can be deposited by monitoring movement Storage equipment connecting interface judges.It is movable storage device distribution carry path if electronic equipment is connected with movable storage device. By the carry path for movable storage device distributing uniform, the convenient living document unified management in movable storage device. After the connection of movable storage device and electronic equipment is disconnected, the update mode of living document, system under unified mark carry path One updates the living document in movable storage device, reduces the treating capacity of data, there is provided treatment effeciency.
The update mode of living document is marked, makes the update mode of living document more aobvious and easy by way of mark See, because load document is the loading to file or information, so obvious update mode is caused subsequently easily to dynamic File is further processed.Increase to update and delete and update, for the file of original electronic equipment.If electronics Equipment connects movable storage device, and recognizable and operation the file of electronic equipment increases, so the dynamic in movable storage device The update mode of file updates to increase.If electronic equipment is disconnected with movable storage device, electronic equipment it is recognizable and The file of operation is reduced, so the update mode of the living document in movable storage device is to delete to update.
303rd, according to attribute information, the data update notification of living document is generated.
Specifically include:Search the update mode of living document;According to update mode and attribute information, generation data update Notify.The update mode of living document, is the mode to the next step treatment of the living document, and update mode is added into data In update notification, in order to quick treatment subsequently to living document in data update notification.
304th, the file type in attribute information is searched.
Each living document has corresponding attribute information, and the corresponding files classes of living document are searched in attribute information Type.
305th, according to file type, the affiliate application of living document is judged.
The different files for answering program to open different file types, if the file type that can open of application program with The type of living document is identical, then the application program is the affiliate application of living document.If for example, living document is Video file, then picture editor is not just the affiliate application of the living document;If living document is video civilization, So video player is exactly the affiliate application of the living document.
306th, by data update notification, send to affiliate application.
All application programs in electronic equipment can access the living document in movable storage device, and file management is soft Part and all installations application program in the electronic device are all relevant.By the incidence relation between application program, hair Send data update notification so that the synchronous loading in the electronic device of same living document.Each can open the living document Application program can receive data update notification.
Between affiliate application, generally also need to set associated permissions.When associated permissions are obtained, association is just received The data update notification that program sends.
307th, according to data update notification, perform and update operational order.
According to the update mode in data update notification, the renewal operation of living document is performed.Searching data update notification The update mode of middle living document, performs according to update mode and updates operation, to improve the processing speed of data update notification.
308th, the directory file name of the catalogue file in current directory is obtained.
After renewal operational order is performed, living document in movable storage device is loaded with, so the mesh in current directory All Files in record file, including electronic equipment local memory and movable storage device.
309th, according to preset queueing discipline, directory file name is sorted.
For the ease of searching and reading, preset queueing discipline is set, directory file name is sorted so that put in order more Meet reading habit.
310th, according to the result of sequence, catalogue file in current directory is rearranged.
According to the sequence of directory file name, the corresponding catalogue file rearranged in current directory.So that arranging again The arrangement mode of the catalogue file after row more meets reading habit.
The method of a kind of load document provided in an embodiment of the present invention, by setting up loading function, then according to loading letter Number is scanned and obtains the attribute information of living document in movable storage device, further according to attribute information, generates living document Data update notification, finally according to data update notification perform update operational order.Compared with prior art, the present invention is implemented Example can perform loading function in background thread, be not take up UI display resources, and UI display effects are not influenceed.Simultaneously data using more The new method for notifying, only processes the file for changing, reduction data processing amount increased document processing speeds, it is to avoid ANR The appearance of problem.
Embodiment three
The embodiment of the present invention three provides a kind of device of load document, as shown in figure 4, the device includes:
Unit 41 is set up, for setting up loading function, loading function is performed by background thread;
Acquiring unit 42, for according to loading function, being scanned the attribute for obtaining living document in movable storage device Information, attribute information includes file name, file type, storing path and coded format;
Generation unit 43, for according to attribute information, generating the data update notification of living document;
Execution unit 44, for according to data update notification, performing and updating operational order.
Further, as shown in figure 5, acquiring unit 42, including:
Distribute module 421, if be connected with movable storage device for electronic equipment, hangs for movable storage device is distributed Carry path;
Scan module 422, for according to loading function, the living document under scanning carry path;
Mark module 423, for marking the update mode of living document to increase renewal;
Parsing module 424, the attribute information for parsing living document.
Further, as shown in figure 5, acquiring unit 42, also includes:
Searching modul 425, if disconnected with movable storage device for electronic equipment, searches under carry path Living document;
Mark module 423, is additionally operable to mark the update mode of the living document under carry path and is updated to delete.
Further, as shown in figure 5, generation unit 43, including:
Searching modul 431, the update mode for searching living document;
Generation module 432, for according to update mode and attribute information, generating data update notification.
Further, execution unit 44, for the update mode in data update notification, perform living document more New operation.
Further, as shown in figure 5, the device also includes:
Searching unit 45, for according to attribute information, generating after the data update notification of living document, searches attribute File type in information;
Judging unit 46, for according to file type, judging the affiliate application of living document;
Transmitting element 47, for sending data update notification to affiliate application.
Further, as shown in figure 5, the device also includes:
Acquiring unit 48, for according to data update notification, execution to be updated after operational order, in acquisition current directory Catalogue file directory file name;
Sequencing unit 49, for according to preset queueing discipline, directory file name being sorted;
Sequencing unit 49, is additionally operable to the result according to sequence, rearranges catalogue file in current directory.
The device of a kind of load document provided in an embodiment of the present invention, by setting up loading function, then according to loading letter Number is scanned and obtains the attribute information of living document in movable storage device, further according to attribute information, generates living document Data update notification, finally according to data update notification perform update operational order.Compared with prior art, the present invention is implemented Example can perform loading function in background thread, be not take up UI display resources, and UI display effects are not influenceed.Simultaneously data using more The new method for notifying, only processes the file for changing, reduction data processing amount increased document processing speeds, it is to avoid ANR The appearance of problem.
Example IV
The embodiment of the present invention four provides a kind of nonvolatile computer storage media, the computer-readable storage medium storage There are computer executable instructions, the computer executable instructions can perform the side of the load document in above-mentioned any means embodiment Method.
One of ordinary skill in the art will appreciate that all or part of flow in realizing above-described embodiment method, can be The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of above-mentioned touch control method embodiment.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random AccessMemory, RAM) etc..
Embodiment five
The embodiment of the present invention five provides a kind of electronic equipment, as shown in fig. 6, the electronic equipment includes:
At least one communication interface 61;
At least one bus 62 being connected with least one communication interface 61;
At least one processor 63 being connected with least one bus 62;
At least one memory 64 being connected with least one bus 62, wherein,
Processor 63 is configured as:
Loading function is set up, loading function is performed by background thread;
According to loading function, the attribute information for obtaining living document in movable storage device, attribute information bag are scanned Include file name, file type, storing path and coded format;
According to attribute information, the data update notification of living document is generated;
According to data update notification, perform and update operational order.
Memory 64 can be used to store non-volatile software journey as a kind of non-volatile computer readable storage medium storing program for executing Sequence, non-volatile computer executable program and module, the corresponding program of load document method such as in the embodiment of the present invention Instruction/module.Processor 63 passes through to run the non-volatile software program stored in memory 64, instruction and module, from And various function application and the data processing of execute server, that is, the method for realizing above method embodiment load document.
Memory 64 can include storing program area and storage data field, wherein, storing program area can storage program area, Application program required at least one function;Storage data field can store the use institute of the processing unit operated according to list items Data of establishment etc..Additionally, memory 64 can include high-speed random access memory, non-volatile memories can also be included Device, for example, at least one disk memory, flush memory device or other non-volatile solid state memory parts.In some embodiments In, memory 64 is optional including the memory 64 remotely located relative to processor 63, and these remote memories can be by net Network is connected to the device of load document.The example of above-mentioned network includes but is not limited to internet, intranet, LAN, shifting Dynamic communication network and combinations thereof.
One or more of modules are stored in the memory 63, when by one or more of processors 63 During execution, the method for performing the load document in above-mentioned any means embodiment.
The method that the executable embodiment of the present invention of the said goods is provided, possesses the corresponding functional module of execution method and has Beneficial effect.Not ins and outs of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present invention is provided.
The electronic equipment of the embodiment of the present invention exists in a variety of forms, including but not limited to:
(1) mobile communication equipment:The characteristics of this kind equipment is that possess mobile communication function, and to provide speech, data It is main target to communicate.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, feature mobile phone, and it is low End mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the category of personal computer, there is calculating and treatment work( Can, typically also possess mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind equipment can show and play content of multimedia.The kind equipment includes:Audio, Video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigation equipment.
(4) server:The equipment for providing the service of calculating, the composition of server includes that processor, hard disk, internal memory, system are total Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, therefore in treatment energy The requirement of the aspects such as power, stability, reliability, security, scalability, manageability is higher.
(5) other have the electronic installation of data interaction function.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can To be or may not be physically separate, the part shown as unit can be or may not be physics list Unit, you can with positioned at a place, or can also be distributed on multiple NEs.It can according to the actual needs be selected In some or all of module realize the purpose of this embodiment scheme.
Through the above description of the embodiments, those skilled in the art can be understood that each implementation method can Realized by the mode of software plus general hardware platform, naturally it is also possible to by hardware.Based on such understanding, above-mentioned technology The part that scheme substantially contributes to correlation technique in other words can be embodied in the form of software product, the computer Software product can be stored in a computer-readable storage medium, and such as ROM/RAM, magnetic disc, CD, including some instructions are used to So that computer equipment (can be personal computer, server, or network equipment etc.) perform each embodiment or Method described in some parts of embodiment.
Finally it should be noted that:Above example is only used to illustrate the technical scheme of the application, rather than its limitations;Although The application has been described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used Modified with to the technical scheme described in foregoing embodiments, or equivalent is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from each embodiment technical scheme of the application spirit and Scope.

Claims (15)

1. a kind of method of load document, it is characterised in that methods described includes:
Loading function is set up, the loading function is performed by background thread;
According to the loading function, the attribute information for obtaining living document in movable storage device, the attribute letter are scanned Breath includes file name, file type, storing path and coded format;
According to the attribute information, the data update notification of the living document is generated;
According to the data update notification, perform and update operational order.
2. method according to claim 1, it is characterised in that described according to the loading function, is scanned acquisition and moves The attribute information of living document in dynamic storage device, including:
It is movable storage device distribution carry path if the electronic equipment is connected with the movable storage device;
According to the loading function, the living document under the carry path is scanned;
The update mode of the living document is marked to increase renewal;
Parse the attribute information of the living document.
3. method according to claim 2, it is characterised in that described according to the loading function, is scanned acquisition and moves The attribute information of living document, also includes in dynamic storage device:
If the electronic equipment is disconnected with the movable storage device, the dynamic under the carry path is searched File;
The update mode of the living document under the carry path is marked to be updated to delete.
4. according to the method in claim 2 or 3, it is characterised in that described according to the attribute information, the dynamic is generated The data update notification of file, including:
Search the update mode of the living document;
According to the update mode and the attribute information, the data update notification is generated.
5. method according to claim 4, it is characterised in that described according to the data update notification, performs and updates behaviour Instruct, including:
According to the update mode in the data update notification, the renewal operation of the living document is performed.
6. method according to claim 1, it is characterised in that according to the attribute information, generate the living document Data update notification after, methods described also includes:
Search the file type in the attribute information;
According to the file type, the affiliate application of the living document is judged;
The data update notification is sent to the affiliate application.
7. method according to claim 1, it is characterised in that described according to the data update notification, perform renewal After operational order, including:
Obtain the directory file name of the catalogue file in current directory;
According to preset queueing discipline, by directory file name sequence;
According to the result of the sequence, catalogue file described in the current directory is rearranged.
8. a kind of device of load document, it is characterised in that described device includes:
Unit is set up, for setting up loading function, the loading function is performed by background thread;
Acquiring unit, for according to the loading function, being scanned the attribute letter for obtaining living document in movable storage device Breath, the attribute information includes file name, file type, storing path and coded format;
Generation unit, for according to the attribute information, generating the data update notification of the living document;
Execution unit, for according to the data update notification, performing and updating operational order.
9. device according to claim 8, it is characterised in that the acquiring unit, including:
Distribute module, is the movable storage device if be connected with the movable storage device for the electronic equipment Distribution carry path;
Scan module, for according to the loading function, scanning the living document under the carry path;
Mark module, for marking the update mode of the living document to increase renewal;
Parsing module, the attribute information for parsing the living document.
10. device according to claim 9, it is characterised in that the acquiring unit, also includes:
Searching modul, if disconnected with the movable storage device for the electronic equipment, searches the carry road The living document under footpath;
The mark module, is additionally operable to mark the update mode of the living document under the carry path to delete renewal.
11. device according to claim 9 or 10, it is characterised in that the generation unit, including:
Searching modul, the update mode for searching the living document;
Generation module, for according to the update mode and the attribute information, generating the data update notification.
12. devices according to claim 11, it is characterised in that the execution unit, for being updated according to the data The update mode in notice, performs the renewal operation of the living document.
13. devices according to claim 8, it is characterised in that described device also includes:
Searching unit, for according to the attribute information, generating after the data update notification of the living document, searches institute State the file type in attribute information;
Judging unit, for according to the file type, judging the affiliate application of the living document;
Transmitting element, for sending the data update notification to the affiliate application.
14. devices according to claim 8, it is characterised in that described device also includes:
Acquiring unit, according to the data update notification, performs after renewal operational order for described, obtains current directory In catalogue file directory file name;
Sequencing unit, for according to preset queueing discipline, by directory file name sequence;
The sequencing unit, is additionally operable to the result according to the sequence, rearranges catalogue file described in the current directory.
15. a kind of electronic equipment, it is characterised in that electronic equipment includes:
At least one communication interface;
At least one bus being connected with least one communication interface;
At least one processor being connected with least one bus;
At least one memory being connected with least one bus, wherein,
The processor is configured as:
Loading function is set up, the loading function is performed by background thread;
According to the loading function, the attribute information for obtaining living document in movable storage device, the attribute letter are scanned Breath includes file name, file type, storing path and coded format;
According to the attribute information, the data update notification of the living document is generated;
According to the data update notification, perform and update operational order.
CN201611097725.2A 2016-12-02 2016-12-02 A kind of method of load document, device and electronic equipment Pending CN106802812A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611097725.2A CN106802812A (en) 2016-12-02 2016-12-02 A kind of method of load document, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611097725.2A CN106802812A (en) 2016-12-02 2016-12-02 A kind of method of load document, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN106802812A true CN106802812A (en) 2017-06-06

Family

ID=58983995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611097725.2A Pending CN106802812A (en) 2016-12-02 2016-12-02 A kind of method of load document, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN106802812A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124377A (en) * 2018-10-31 2020-05-08 北京国双科技有限公司 Method, device, storage medium and processor for processing file
CN111901685A (en) * 2020-07-30 2020-11-06 深圳市康冠科技股份有限公司 File scanning method and related device
CN113190293A (en) * 2021-06-10 2021-07-30 中国人民解放军国防科技大学 Waveform loading method, device and equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495982A (en) * 2011-11-30 2012-06-13 成都七巧软件有限责任公司 Process threading-based copy-protection system and copy-protection storage medium
CN104133822A (en) * 2013-07-15 2014-11-05 腾讯科技(深圳)有限公司 Method and device for scanning files in memory
CN104572092A (en) * 2014-12-26 2015-04-29 北京奇虎科技有限公司 Method and device for webpage making

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495982A (en) * 2011-11-30 2012-06-13 成都七巧软件有限责任公司 Process threading-based copy-protection system and copy-protection storage medium
CN104133822A (en) * 2013-07-15 2014-11-05 腾讯科技(深圳)有限公司 Method and device for scanning files in memory
CN104572092A (en) * 2014-12-26 2015-04-29 北京奇虎科技有限公司 Method and device for webpage making

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124377A (en) * 2018-10-31 2020-05-08 北京国双科技有限公司 Method, device, storage medium and processor for processing file
CN111901685A (en) * 2020-07-30 2020-11-06 深圳市康冠科技股份有限公司 File scanning method and related device
CN111901685B (en) * 2020-07-30 2023-09-08 深圳市康冠科技股份有限公司 File scanning method and related device
CN113190293A (en) * 2021-06-10 2021-07-30 中国人民解放军国防科技大学 Waveform loading method, device and equipment and readable storage medium

Similar Documents

Publication Publication Date Title
JP7013466B2 (en) Application data processing methods, equipment, and computer programs
Bandelloni et al. Flexible interface migration
AU2015204742B2 (en) Methods for generating an activity stream
DE102013004214A1 (en) Alternative unlock pattern
CN114936019B (en) Component and strategy linkage method, device, equipment, system and storage medium
CN102495741B (en) A kind of touch panel device unlocking manner management devices, system and management method
CN109447248A (en) Deep learning platform and method
CN110442826B (en) Cross-layer page jumping method, device and system based on page identification
CN107315580A (en) Component processing method, device and the equipment of user interface, computer-readable recording medium
CN103365621B (en) Image processing method and device
CN107656729A (en) Updating device, method and the computer-readable recording medium of List View
CN109636306A (en) Node-flow shifting method, device, terminal and storage medium
CN106802812A (en) A kind of method of load document, device and electronic equipment
CN106815042A (en) The dynamic loading method of refresh page, device and electronic equipment
CN106201224A (en) The method and device that a kind of batch data processes
CN106557570A (en) File management method and device under a kind of Android system
CN110268430A (en) Bundle the shared of content
CN106815283A (en) Data processing method, device and electronic equipment
KR101616914B1 (en) Method of organizing user-customizable content resource, user-customizable resource server and storage media storing the same
CN106599004A (en) Map data display method and device
US20190095446A1 (en) Manipulation of non-linearly connected transmedia content data
CN107968812A (en) The method and device of synchronous local resource and Internet resources
US9542457B1 (en) Methods for displaying object history information
CN106648304A (en) Method and device for classifying intelligent device desktop
CN107577732A (en) A kind of file memory method and device

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170606

WD01 Invention patent application deemed withdrawn after publication