CN110532231A - File polling method, file polling device and terminal device - Google Patents

File polling method, file polling device and terminal device Download PDF

Info

Publication number
CN110532231A
CN110532231A CN201910824325.4A CN201910824325A CN110532231A CN 110532231 A CN110532231 A CN 110532231A CN 201910824325 A CN201910824325 A CN 201910824325A CN 110532231 A CN110532231 A CN 110532231A
Authority
CN
China
Prior art keywords
file
inquiry
multimedia database
types
default label
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.)
Granted
Application number
CN201910824325.4A
Other languages
Chinese (zh)
Other versions
CN110532231B (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201910824325.4A priority Critical patent/CN110532231B/en
Publication of CN110532231A publication Critical patent/CN110532231A/en
Application granted granted Critical
Publication of CN110532231B publication Critical patent/CN110532231B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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 application is suitable for file polling technical field, provide file polling method, file polling device, terminal device and computer readable storage medium, this document querying method, it include: to determine the corresponding file types of the inquiry when the first query statement for detecting specified application inquiry multimedia database includes default sentence;It inquires in the multimedia database, default label corresponding to the file types;It obtains in the multimedia database, the folder content comprising the file that file type is the file types;Merge the default label and the folder content, obtains target directory;The target directory is returned to the specified application.By the above method, it can solve some application programs when inquiring certain types of file, the more single problem of the mode classification for the file inquired.

Description

File polling method, file polling device and terminal device
Technical field
The application belongs to file polling technical field more particularly to file polling method, file polling device, terminal device And computer readable storage medium.
Background technique
In some application programs, it can be got in terminal device by the multimedia database in inquiry terminal device The information of the certain types of file (such as picture, video, document etc.) of storage, so that such as list can be passed through subsequent Etc. forms the information of the certain types of file is presented to user.
And application program is often carried out according to the file of storage this document after inquiring the certain types of file Inquiry and classification, so that user will be seen that distribution situation of each file in file.The mode of the classification is more single One, it is difficult to expand, in application scenes, more personalized presentation mode can not be provided for user.
Summary of the invention
The embodiment of the present application provides file polling method, file polling device, terminal device and computer-readable storage Medium can solve some application programs when inquiring certain types of file, and the mode classification for the file inquired is more The problem of single (as classified based on file).
In a first aspect, the embodiment of the present application provides a kind of file polling method, comprising:
When the first query statement for detecting specified application inquiry multimedia database includes default sentence, determine It is described to inquire corresponding file types;
It inquires in the multimedia database, default label corresponding to the file types;
It obtains in the multimedia database, the file mesh comprising the file that file type is the file types Record;
Merge the default label and the folder content, obtains target directory;
The target directory is returned to the specified application.
Second aspect, the embodiment of the present application provide a kind of file polling device, comprising:
Determining module, for including pre- when the first query statement for detecting specified application inquiry multimedia database If when sentence, determining the corresponding file types of the inquiry;
Enquiry module, for inquiring in the multimedia database, default label corresponding to the file types;
First obtains module, is the specified file class comprising file type for obtaining in the multimedia database The folder content of the file of type;
Second obtains module, for merging the default label and the folder content, obtains target directory;
Processing module, for returning to the target directory to the specified application.
The third aspect, the embodiment of the present application provide a kind of terminal device, including memory, processor, display and Store the computer program that can be run in the memory and on the processor, which is characterized in that the processor is held File polling method as described in relation to the first aspect is realized when the row computer program.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and file polling as described in relation to the first aspect is realized when the computer program is executed by processor Method.
5th aspect, the embodiment of the present application provides a kind of computer program product, when computer program product is in terminal When being run in equipment, so that terminal device executes file polling method described in above-mentioned first aspect.
Existing beneficial effect is the embodiment of the present application compared with prior art: in the embodiment of the present application, by when detection The first query statement to specified application inquiry multimedia database includes to determine that the inquiry is corresponding when presetting sentence File types, and inquire in the multimedia database, default label, Ke Yi corresponding to the file types When detecting specified application to multi-medium data library inquiry specific content, determine that the specified application wants inquiry File type is inquired in the multimedia database, default label corresponding to the file types with further execution Operation, to understand the personnel such as user some labels set by the file to the type in advance;And it is described pre- by remerging Bidding label and folder content comprising the file that file type is the file types, obtain target directory, and to institute It states specified application and returns to the target directory, the label and folder content information of user setting can be integrated, expand Application program is to the obtained directory information of the inquiry operation of particular file types, so that the specified application can be rear In continuous application, more personalized presentation mode can be provided for user, improve user experience.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of flow diagram for file polling method that one embodiment of the application provides;
Fig. 2 is a kind of flow diagram for the step S102 that one embodiment of the application provides;
Fig. 3 is a kind of schematic diagram of the display interface for the terminal device that one embodiment of the application provides;
Fig. 4 is a kind of structural schematic diagram for file polling device that one embodiment of the application provides;
Fig. 5 is the structural schematic diagram of terminal device provided by the embodiments of the present application;
Fig. 6 is a kind of structural schematic diagram for mobile phone that file polling method is suitable for that one embodiment of the application provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
It should be appreciated that working as in present specification and the appended claims in use, term " includes " instruction is retouched State the presence of feature, entirety, step, operation, element and/or component, but be not precluded one or more of the other feature, entirety, Step, operation, the presence or addition of element, component and/or its set.
It is also understood that referring in present specification to term "and/or" used in the appended claims related Join any combination and all possible combinations of one or more of item listed, and including these combinations.
As present specification and it is used in the attached claims, term " if " can be according to upper and lower Text be interpreted " when ... when " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase is " if really It is fixed " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " ring Should be in determination " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
The reference " one embodiment " described in the specification of the present application or " some embodiments " etc. mean in the application One or more embodiments in include in conjunction with the embodiment description special characteristic, structure or feature.As a result, in this specification In difference occur sentence " in one embodiment ", " in some embodiments ", " in some other embodiment ", " in other embodiments " etc. uninevitable all referring to identical embodiment, mean " one or more but be not In addition all embodiments " are only otherwise especially emphasized.The terms "include", "comprise", " having " and their change Shape can mean that " including but not limited to ", only otherwise in addition especially emphasize.
File polling method provided by the embodiments of the present application can be applied to mobile phone, tablet computer, wearable device, vehicle-mounted Equipment, augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) equipment, notebook electricity Brain, Ultra-Mobile PC (ultra-mobile personal computer, UMPC), net book, individual digital help It manages on terminal devices such as (personal digital assistant, PDA), concrete kind of the embodiment of the present application to terminal device Type is not intended to be limited in any.
Specifically, Fig. 1 shows a kind of flow chart of file polling method provided by the embodiments of the present application, this document inquiry Method is applied to terminal device, comprising:
Step S101, when the first query statement for detecting specified application inquiry multimedia database includes default language When sentence, the corresponding file types of the inquiry are determined.
In the embodiment of the present application, the specified application can be configured according to practical application scene, for example, described Specified application can be the application program of social type, photograph album, application program of types of entertainment etc..
In some embodiments, the default sentence can indicate the partial query condition of the specified application, example Such as, the specified application can first inquire file present in the multimedia database, then in each file The middle certain types of file of inquiry;So, the default sentence can indicate that the specified application inquires the multimedia File present in database, in other words, when the first inquiry for detecting specified application inquiry multimedia database When sentence includes default sentence, it is believed that the specified application starts to execute to multi-medium data library inquiry specific type File operation.
In the embodiment of the present application, the file types may include document, picture, video, audio etc..The finger Determining file type can be determined by the expansion name of file, wherein one or more can be expanded to name as a kind of finger Determine file type.
Specifically, the corresponding file types of the determination inquiry can inquire more matchmakers by specified application The query statement in volume data library realizes that the query statement can be the first query statement or other query statements;In addition, Can also be based on specified application before inquire multimedia database, performed operation is realized.For example, can be based on User determines the corresponding file types of the inquiry in the operation of the specified application.
In some embodiments, terminal device can monitor the specified application inquiry multimedia database in real time Whether the first query statement includes default sentence.Certainly, in some embodiments, terminal device can also with certain period into Row is monitored.
In some embodiments, described when the first query statement for detecting specified application inquiry multimedia database When comprising default sentence, the corresponding file types of the inquiry are determined, comprising:
When detect specified application inquiry multimedia database the first query statement include bucket_id and/or When bucket_display_name, the corresponding file types of the inquiry are determined.
Wherein, the bucket_id and/or bucket_display_name is determined for described specified using journey Sequence starts to execute the operation to the certain types of file of multi-medium data library inquiry.Wherein, the bucket_id and/or Bucket_display_name can be used for identifying the file in the multimedia database, in other words, described when detection The first query statement to specified application inquiry multimedia database includes bucket_id and/or bucket_display_ It can consider that the specified application inquires file present in the multimedia database when name.At this point it is possible to base The file types corresponding to the inquiry are inquired in subsequent further progress, for example, inquiry user is to the specified file The customized information of the file of type, to provide richer, more fully query result for specified application.
Step S102 is inquired in the multimedia database, default label corresponding to the file types.
In the embodiment of the present application, it is the finger that default label corresponding to the file types, which can be file type, Determine label corresponding to the file of file type.The default label can be what user identified in advance.Specifically, user can be with The file that file type is the file types is identified by the specified application, is also possible to by removing Other applications except the specified application are identified file.
In some embodiments, the execution of step S102 can be executed by the system of terminal device, without by specified Application program itself executes.At this point, the specific implementation of the step can be defined by system, without being applied journey by specified Sequences itself etc. influence, and in other words, the present embodiment can be applied to different specified applications.Certainly, in some other reality It applies in example, step S102 can also be executed by specified application itself.
In some embodiments, the default label can be stored in the multimedia database, example by predetermined manner Such as, the part for indicating the label of this document can be increased in the storage organization of the file.Further, it is also possible in multimedia Label corresponding to each file is stored by forms such as lists in database.
As shown in Fig. 2, in some embodiments, the step S102 can specifically include:
The querying condition of first query statement is replaced with the second category of inquiry by inquiring the first attribute by step S201 Property, obtain the second query statement, wherein the file in multimedia database described in first attribute-bit, described second Default label corresponding to file types described in attribute-bit;
Step S202 is inquired in the multimedia database according to second query statement, the file types Corresponding default label.
In the embodiment of the present application, first attribute can be used for identifying the file in the multimedia database, show Example property, first attribute can be bucket_id bucket, display_name and/or number of the file etc. Deng.And second attribute can be determined according to the storage mode of the default label.
Illustratively, in some embodiments, if bucket_id and bucket_display_name can be used for identifying File in the multimedia database pre-defines the storage organization of the default label as label number, then, the Two attributes may include label, and first attribute includes bucket_id and bucket_display_name, then described Querying condition in one query statement may include SELECT bucket_id, bucket_display_name, and described second Querying condition in query statement may include SELECTlabel.
By step S201 and step S202, the inquiry to default label, expansibility can be realized by simple replacement Preferably, ease for use is stronger.Also, the inquiry mode to default label is mutually unified with the inquiry mode to folder content, can be with Convenient for the subsequent merging default label and the folder content.
Step S103 is obtained in the multimedia database, is the file of the file types comprising file type Folder content.
In the embodiment of the present application, the text comprising file type for the file types can be inquired in several ways The folder content of part for example, file included in the multimedia database can be inquired, then detects each file In whether comprising file type be the file types file.It is of course also possible to detect in the multimedia database File type is the file of the file types, determines that comprising file type be the specified text further according to its store path The folder content of the file of part type.
In some embodiments, described to obtain in the multimedia database, it is the specified file comprising file type The folder content of the file of type, comprising:
According to first query statement, file included in the multimedia database is inquired;
Detect in each file whether comprising file type be the file types file, it is described more to obtain In media database, the folder content comprising the file that file type is the file types.
It wherein, whether is the file of the file types comprising file type in each file of detection, it can To include:
It detects in each file and whether comprising file type to be the file of the file types, and obtain each text File type is the file of the file types in part folder.
In some embodiments, in obtaining each file file type be the file types file it Afterwards, the file that the All Files type inquired is the file types can also be returned to the specified application Information;If detecting the display mode that display file type is specified for the instruction of the file of the file types, basis, Show that the All Files type inquired is the file of the file types.
Step S104 merges the default label and the folder content, obtains target directory.
In the embodiment of the present application, in some embodiments, the storage mode and shape of the default label can be preset Formula, and the mode for inquiring the default label is preset, so that default label and the file that inquiry obtains The form of catalogue is unified form, for example, so as to more easily merge the default label and the folder content.
In some embodiments, the merging default label and the folder content obtain target directory, packet It includes:
Merge the default label and the folder content by MergeCursor, obtains target directory.
Wherein, the MergeCursor is alternatively referred to as vernier merging, merges the default label by MergeCursor After the folder content, in the target directory, the default label and the file mesh can be showed side by side Record.It is believed that the default label may be considered virtual folder content in the target directory.
Step S105, Xiang Suoshu specified application returns to the target directory.
It should be noted that after the specified application gets the target directory, if the target mesh is presented The information of record can depend on the factors such as the setting of the specified application and the operation of user.
For example, in some embodiments, can be detect user clicked in specified application it is specific virtually by When key (such as virtual key of instruction addition picture, video, document), the specified application is to the multimedia database Inquire the file of file types;And when the specified application gets the target directory, it can be set in terminal Standby display screen shows that user is further according to this about the target directory for the file that file type is the file types Target directory further searches for desired file.In addition it is also possible to when the specified application gets the target directory When, while the file that file type is the file types can be also got, at this point it is possible to according to specific display side The whole list for the file that file type is the file types is presented to user for formula, and due to the text in terminal device Part is often very much, at this point, can also be provided for user switch to show about file type be the file types text The virtual key of the target directory of part allows user will be described in the changing interface of the specified application to presentation The interface of target directory.
It should be noted that described includes the file that file type is the file types in the embodiment of the present application Folder content generally comprised the file that the obtained all file types of inquiry are the file types, and it is described File corresponding to default label, is typically present under some folder contents.In other words, corresponding to the default label File, be in general at least partly file that file type under the folder content is the file types It repeats to present.It repeats to present by this, some information that family is quickly found out customized mark can be used, i.e., default label letter Breath, to make full use of the customized label of user, facilitates user in specified application, is quickly found out and some voluntarily marks The file of label information.
As a kind of schematic example, as shown in figure 3, being the display interface for the terminal device that one embodiment of the application provides A kind of schematic diagram.
Wherein it is possible to which the display screen in terminal device shows the target mesh about the file that file type is picture Record, user can further search for desired file according to the target directory.Wherein, " school ", " family " can be pre- bidding Label, and the file 1, file 2, file 3 can be in the multimedia database, be picture comprising file type The folder content of file.Wherein it is possible to mark each default label and be the file types comprising file type File type included in the folder content of file is the number of the file of the file types.
In some embodiments, after returning to the target directory to the specified application, this document issuer Method can also include:
If detecting the instruction for showing the directory listing interface of the file types, according to the target directory, Show the directory listing interface.
Wherein, the instruction at the directory listing interface of the display file types can the operation based on user come It determines, it should be noted that the instruction at the directory listing interface of the display file types can refer in user Determine to issue when clicking specific virtual key (such as virtual key of instruction addition picture, video, document) in application program, It can be issued after obtaining the target directory according to the subsequent operation of user, sending opportunity is not limited thereto.
The directory listing interface may include the information of the target directory, in addition, in the object listing interface, it can It is described specified to show that each default label in the target directory and default file press from both sides separately included file type The number of the file of file type.
In some embodiments, in the object listing interface, each default label and folder content put in order It can be determined according to the nearest sequencing using the time of each default label and folder content.
In some embodiments, it in inquiring the multimedia database, is preset corresponding to the file types After label, further includes:
Inquire file corresponding to the default label;
If detecting the instruction for showing file corresponding to the default label, according to display mode is preset, institute is shown State file corresponding to default label.
In the embodiment of the present application, it should be noted that inquire file corresponding to the default label and detect display This is not restricted for the chronological order of the instruction of file corresponding to the default label.It in some embodiments, can be with Detecting text corresponding to the instruction for showing file corresponding to the default label and then the inquiry default label Part;In further embodiments, it can be and first inquire file corresponding to the default label, and if in subsequent detection to display The instruction of file corresponding to the default label, then according to default display mode, and, the pre- bidding inquired in advance The corresponding file of label, shows file corresponding to the default label.
In the embodiment of the present application, by when the first query statement for detecting specified application inquiry multimedia database When comprising default sentence, the corresponding file types of the inquiry are determined, and inquire in the multimedia database, the finger Determine default label corresponding to file type, specified application can detected to multi-medium data library inquiry specific content When, it determines that the specified application wants the file type of inquiry, is inquired in the multimedia database with further execution, The operation of default label corresponding to the file types, to understand the personnel such as user in advance to the file institute of the type If some labels;And by remerge the default label and comprising file type be the file types file Folder content obtains target directory, and returns to the target directory to the specified application, can integrate user setting Label and folder content information, expanded application program to the obtained catalogue of the inquiry operation of particular file types believe Breath improves so that the specified application can provide more personalized presentation mode in subsequent applications for user User experience.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit It is fixed.
Corresponding to file polling method described in foregoing embodiments, Fig. 4 shows a kind of text provided by the embodiments of the present application The structural block diagram of part inquiry unit illustrates only part relevant to the embodiment of the present application for ease of description.
Referring to Fig. 4, this document inquiry unit 4 includes:
Determining module 401, for when the first query statement packet for detecting specified application inquiry multimedia database When containing default sentence, the corresponding file types of the inquiry are determined;
Enquiry module 402, for inquiring in the multimedia database, pre- bidding corresponding to the file types Label;
First obtains module 403, is the specified file comprising file type for obtaining in the multimedia database The folder content of the file of type;
Second obtains module 404, for merging the default label and the folder content, obtains target directory;
Processing module 405, for returning to the target directory to the specified application.
Optionally, this document inquiry unit 4 further include:
First display module, if for detecting the instruction for showing the directory listing interface of the file types, According to the target directory, the directory listing interface is shown.
Optionally, the first acquisition module 403 specifically includes:
First query unit, for inquiring included in the multimedia database according to first query statement File;
Detection unit, for detect in each file whether comprising file type be the file types text Part, to obtain in the multimedia database, the folder content comprising the file that file type is the file types.
Optionally, the enquiry module 402 specifically includes:
Second query unit, for the querying condition of first query statement to be replaced with inquiry by inquiring the first attribute Second attribute obtains the second query statement, wherein the file in multimedia database described in first attribute-bit, institute State default label corresponding to file types described in the second attribute-bit;
Third query unit, it is described specified for inquiring in the multimedia database according to second query statement Default label corresponding to file type.
Optionally, the determining module 401 is specifically used for:
When detect specified application inquiry multimedia database the first query statement include bucket_id and/or When bucket_display_name, the corresponding file types of the inquiry are determined.
Optionally, the second acquisition module 404 is specifically used for:
Merge the default label and the folder content by MergeCursor, obtains target directory.
In the embodiment of the present application, by when the first query statement for detecting specified application inquiry multimedia database When comprising default sentence, the corresponding file types of the inquiry are determined, and inquire in the multimedia database, the finger Determine default label corresponding to file type, specified application can detected to multi-medium data library inquiry specific content When, it determines that the specified application wants the file type of inquiry, is inquired in the multimedia database with further execution, The operation of default label corresponding to the file types, to understand the personnel such as user in advance to the file institute of the type If some labels;And by remerge the default label and comprising file type be the file types file Folder content obtains target directory, and returns to the target directory to the specified application, can integrate user setting Label and folder content information, expanded application program to the obtained catalogue of the inquiry operation of particular file types believe Breath improves so that the specified application can provide more personalized presentation mode in subsequent applications for user User experience.
It should be noted that the contents such as information exchange, implementation procedure between above-mentioned apparatus/unit, due to the application Embodiment of the method is based on same design, concrete function and bring technical effect, for details, reference can be made to embodiment of the method part, this Place repeats no more.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Fig. 5 is the structural schematic diagram for the terminal device that one embodiment of the application provides.As shown in figure 5, the end of the embodiment End equipment 5 includes: at least one processor 50 (only showing one in Fig. 5) processor, memory 51 and is stored in described deposit In reservoir 51 and the computer program 52 that can run at least one described processor 50, the processor 50 execute the meter The step in above-mentioned any each file polling embodiment of the method is realized when calculation machine program 52.
The terminal device 5 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that Fig. 5 is only It is only the citing of terminal device 5, does not constitute the restriction to terminal device 5, may include components more more or fewer than diagram, Perhaps certain components or different components are combined, such as can also include input-output equipment, network access equipment etc..
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), the processor 50 can also be other general processors, digital signal processor (Digital Signal Processor, DSP), dedicated collection At circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 51 can be the internal storage unit of the terminal device 5, such as terminal in some embodiments The hard disk or memory of equipment 5.The memory 51 is also possible to the external storage of the terminal device 5 in further embodiments The plug-in type hard disk being equipped in equipment, such as the terminal device 5, intelligent memory card (Smart Media Card, SMC), peace Digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the memory 51 can be with Both including the terminal device 5 internal storage unit and also including External memory equipment.The memory 51 is for storing operation System, application program, Boot loader (BootLoader), data and other programs etc., such as the computer program Program code etc..The memory 51 can be also used for temporarily storing the data that has exported or will export.
By taking terminal device is mobile phone as an example.Fig. 6 is shown and the part-structure of mobile phone provided by the embodiments of the present application Block diagram.With reference to Fig. 6, mobile phone include: radio frequency (Radio Frequency, RF) circuit 610, memory 620, input unit 630, Display unit 640, sensor 650, voicefrequency circuit 660, Wireless Fidelity (wireless fidelity, WiFi) module 670, place Manage the components such as device 680 and power supply 690.It will be understood by those skilled in the art that handset structure shown in Fig. 6 is not constituted Restriction to mobile phone may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.
It is specifically introduced below with reference to each component parts of the Fig. 6 to mobile phone:
RF circuit 610 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 680;In addition, the data for designing uplink are sent to base station.In general, RF circuit packet Include but be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 610 can also be communicated with network and other equipment by wireless communication. Any communication standard or agreement, including but not limited to global system for mobile communications (Global can be used in above-mentioned wireless communication System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, short message service (Short Messaging Service, SMS) etc..
Memory 620 can be used for storing software program and module, and processor 680 is stored in memory 620 by operation Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 620 can mainly include Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be created according to using for mobile phone Data (such as audio data, phone directory etc.) etc..It, can be in addition, memory 620 may include high-speed random access memory Including nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.
Input unit 630 can be used for receiving the number or character information of input, and generate the user setting with mobile phone 600 And the related key signals input of function control.Specifically, input unit 630 may include touch panel 631 and other inputs Equipment 632.Touch panel 631, also referred to as touch screen, collecting the touch operation of user on it or nearby, (for example user makes With the operation of any suitable object or attachment such as finger, stylus on touch panel 631 or near touch panel 631), and Corresponding attachment device is driven according to preset formula.Optionally, touch panel 631 may include touch detecting apparatus and touching Touch two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bring letter Number, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into Contact coordinate, then give processor 680, and order that processor 680 is sent can be received and executed.Furthermore, it is possible to using The multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave realize touch panel 631.It is defeated in addition to touch panel 631 Entering unit 630 can also include other input equipments 632.Specifically, other input equipments 632 can include but is not limited to physics One of keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Display unit 640 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 640 may include display panel 641, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Show panel 641.Further, touch panel 631 can cover display panel 641, when touch panel 631 detect it is on it or attached After close touch operation, processor 680 is sent to determine the type of touch event, is followed by subsequent processing device 680 according to touch event Type corresponding visual output is provided on display panel 641.Although in Fig. 6, touch panel 631 and display panel 641 It is that the input and input function of mobile phone are realized as two independent components, but in some embodiments it is possible to by touch-control Panel 631 and display panel 641 are integrated and that realizes mobile phone output and input function.
Mobile phone 600 may also include at least one sensor 650, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 641, and proximity sensor can close display panel when mobile phone is moved in one's ear 641 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as mobile phone The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 660, loudspeaker 661, microphone 662 can provide the audio interface between user and mobile phone.Audio-frequency electric Electric signal after the audio data received conversion can be transferred to loudspeaker 661, be converted to sound by loudspeaker 661 by road 660 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 662, is turned after being received by voicefrequency circuit 660 It is changed to audio data, then by after the processing of audio data output processor 680, such as another mobile phone is sent to through RF circuit 610, Or audio data is exported to memory 620 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 670 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 6 is shown WiFi module 670, but it is understood that, and it is not belonging to must be configured into for mobile phone 600, it is can according to need completely not Change in the range of the essence of invention and omits.
Processor 680 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 620, and call and be stored in memory 620 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 680 can wrap Include one or more processing units;Preferably, processor 680 can integrate application processor and modem processor, wherein answer With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication. It is understood that above-mentioned modem processor can not also be integrated into processor 680.
Mobile phone 600 further includes the power supply 690 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 680 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.
Although being not shown, mobile phone 600 can also include camera.Optionally, camera can in the upper position of mobile phone 600 Think preposition, or postposition, the embodiment of the present application is not construed as limiting this.
Optionally, mobile phone 600 may include single camera, dual camera or three cameras etc., and the embodiment of the present application is to this It is not construed as limiting.
For example, mobile phone 600 may include three cameras, wherein one for main camera, one be wide-angle camera, one A is focal length camera.
Optionally, when mobile phone 600 includes multiple cameras, this multiple camera can be all after preposition or wholes It sets or a part of preposition, another part postposition, the embodiment of the present application is not construed as limiting this.
In addition, mobile phone 600 can also be including bluetooth module etc., and details are not described herein although being not shown.
The embodiment of the present application also provides a kind of computer readable storage medium, the computer-readable recording medium storage There is computer program, the step that can be achieved in above-mentioned each embodiment of the method is realized when the computer program is executed by processor Suddenly.
The embodiment of the present application provides a kind of computer program product, when computer program product is run on mobile terminals When, so that realizing the step that can be achieved in above-mentioned each embodiment of the method when mobile terminal execution.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the application realizes above-described embodiment side All or part of the process in method can instruct relevant hardware to complete by computer program, the computer journey Sequence can be stored in a computer readable storage medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned each The step of embodiment of the method.Wherein, the computer program includes computer program code, and the computer program code can be with For source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium at least may be used With include: computer program code can be carried to any entity of camera arrangement/terminal device or device, recording medium, Computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium.Such as USB flash disk, mobile hard disk, magnetic disk or CD etc..In certain jurisdictions, according to legislation and patent practice, computer-readable medium cannot be electric carrier signal and Telecommunication signal.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/network equipment and method, it can be with It realizes by another way.For example, device described above/network equipment embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all Comprising within the scope of protection of this application.

Claims (10)

1. a kind of file polling method characterized by comprising
When the first query statement for detecting specified application inquiry multimedia database includes default sentence, described in determination Inquire corresponding file types;
It inquires in the multimedia database, default label corresponding to the file types;
It obtains in the multimedia database, the folder content comprising the file that file type is the file types;
Merge the default label and the folder content, obtains target directory;
The target directory is returned to the specified application.
2. file polling method as described in claim 1, which is characterized in that returning to the mesh to the specified application After heading record, further includes:
If detecting the instruction for showing the directory listing interface of the file types, according to the target directory, display The directory listing interface.
3. file polling method as described in claim 1, which is characterized in that described to obtain in the multimedia database, packet Folder content containing the file that file type is the file types, comprising:
According to first query statement, file included in the multimedia database is inquired;
Detect in each file whether comprising file type be the file types file, to obtain the multimedia In database, the folder content comprising the file that file type is the file types.
4. file polling method as described in claim 1, which is characterized in that described in inquiring the multimedia database After default label corresponding to file types, further includes:
Inquire file corresponding to the default label;
If detecting the instruction for showing file corresponding to the default label, according to display mode is preset, show described pre- The corresponding file of bidding label.
5. file polling method as described in claim 1, which is characterized in that in the inquiry multimedia database, institute State default label corresponding to file types, comprising:
The querying condition of first query statement is replaced with into the second attribute of inquiry by inquiring the first attribute, obtains the second inquiry Sentence, wherein the file in multimedia database described in first attribute-bit is specified described in second attribute-bit Default label corresponding to file type;
It according to second query statement, inquires in the multimedia database, is preset corresponding to the file types Label.
6. file polling method as described in claim 1, which is characterized in that described to detect that specified application inquiry is more When first query statement of media database includes default sentence, the corresponding file types of the inquiry are determined, comprising:
When detect specified application inquiry multimedia database the first query statement include bucket_id and/or When bucket_display_name, the corresponding file types of the inquiry are determined.
7. the file polling method as described in claim 1 to 6 any one, which is characterized in that described to merge the pre- bidding Label and the folder content obtain target directory, comprising:
Merge the default label and the folder content by MergeCursor, obtains target directory.
8. a kind of file polling device characterized by comprising
Determining module, for including default language when the first query statement for detecting specified application inquiry multimedia database When sentence, the corresponding file types of the inquiry are determined;
Enquiry module, for inquiring in the multimedia database, default label corresponding to the file types;
First obtains module, is the file types comprising file type for obtaining in the multimedia database The folder content of file;
Second obtains module, for merging the default label and the folder content, obtains target directory;
Processing module, for returning to the target directory to the specified application.
9. a kind of terminal device, including memory, processor, display and storage are in the memory and can be at the place The computer program run on reason device, which is characterized in that realized when the processor executes the computer program as right is wanted Seek 1 to 7 described in any item file polling methods.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In the computer program realizes file polling method as described in any one of claim 1 to 7 when being executed by processor.
CN201910824325.4A 2019-09-02 2019-09-02 File query method, file query device and terminal equipment Active CN110532231B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910824325.4A CN110532231B (en) 2019-09-02 2019-09-02 File query method, file query device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910824325.4A CN110532231B (en) 2019-09-02 2019-09-02 File query method, file query device and terminal equipment

Publications (2)

Publication Number Publication Date
CN110532231A true CN110532231A (en) 2019-12-03
CN110532231B CN110532231B (en) 2021-12-17

Family

ID=68666326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910824325.4A Active CN110532231B (en) 2019-09-02 2019-09-02 File query method, file query device and terminal equipment

Country Status (1)

Country Link
CN (1) CN110532231B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111382124A (en) * 2020-03-13 2020-07-07 维沃移动通信有限公司 File management method and electronic equipment
CN113094384A (en) * 2019-12-23 2021-07-09 深圳云天励飞技术有限公司 SQL (structured query language) file configuration method and device and terminal equipment
CN113094384B (en) * 2019-12-23 2024-07-02 深圳云天励飞技术有限公司 SQL file configuration method and device and terminal equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040220899A1 (en) * 1999-01-06 2004-11-04 Barney Rock D. Providing file management of backup data stored on one or more removable storage media
CN1820451A (en) * 2003-10-23 2006-08-16 微软公司 System and method for virtual folder and item sharing
EP2463784A1 (en) * 2010-12-10 2012-06-13 Giga-Byte Technology Co., Ltd. Method and human-to-machine interface apparatus for searching files
CN104077385A (en) * 2014-06-27 2014-10-01 北京海泰方圆科技有限公司 Classification and retrieval method of files
CN107209767A (en) * 2015-12-29 2017-09-26 华为技术有限公司 A kind of management method of multimedia file, electronic equipment and graphic user interface
CN107704766A (en) * 2017-08-29 2018-02-16 努比亚技术有限公司 Multimedia file access control method, terminal and computer-readable recording medium
CN108021631A (en) * 2017-11-22 2018-05-11 努比亚技术有限公司 File polling method, system and computer-readable recording medium
CN108121816A (en) * 2017-12-28 2018-06-05 广东欧珀移动通信有限公司 Picture classification method, device, storage medium and electronic equipment
CN109189728A (en) * 2018-07-18 2019-01-11 深圳市网心科技有限公司 Intelligent hardware devices, data in magnetic disk processing method and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040220899A1 (en) * 1999-01-06 2004-11-04 Barney Rock D. Providing file management of backup data stored on one or more removable storage media
CN1820451A (en) * 2003-10-23 2006-08-16 微软公司 System and method for virtual folder and item sharing
EP2463784A1 (en) * 2010-12-10 2012-06-13 Giga-Byte Technology Co., Ltd. Method and human-to-machine interface apparatus for searching files
CN104077385A (en) * 2014-06-27 2014-10-01 北京海泰方圆科技有限公司 Classification and retrieval method of files
CN107209767A (en) * 2015-12-29 2017-09-26 华为技术有限公司 A kind of management method of multimedia file, electronic equipment and graphic user interface
CN107704766A (en) * 2017-08-29 2018-02-16 努比亚技术有限公司 Multimedia file access control method, terminal and computer-readable recording medium
CN108021631A (en) * 2017-11-22 2018-05-11 努比亚技术有限公司 File polling method, system and computer-readable recording medium
CN108121816A (en) * 2017-12-28 2018-06-05 广东欧珀移动通信有限公司 Picture classification method, device, storage medium and electronic equipment
CN109189728A (en) * 2018-07-18 2019-01-11 深圳市网心科技有限公司 Intelligent hardware devices, data in magnetic disk processing method and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王兰成等: ""基于维基关联数据的Web搜索主题分类研究"", 《计算机应用与软件》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113094384A (en) * 2019-12-23 2021-07-09 深圳云天励飞技术有限公司 SQL (structured query language) file configuration method and device and terminal equipment
CN113094384B (en) * 2019-12-23 2024-07-02 深圳云天励飞技术有限公司 SQL file configuration method and device and terminal equipment
CN111382124A (en) * 2020-03-13 2020-07-07 维沃移动通信有限公司 File management method and electronic equipment

Also Published As

Publication number Publication date
CN110532231B (en) 2021-12-17

Similar Documents

Publication Publication Date Title
US10725657B2 (en) Method for displaying graphical user interface and mobile terminal
JP2021523510A (en) Background application display method and mobile terminal
CN106708554B (en) Program operating method and device
CN109062467A (en) Split screen application switching method, device, storage medium and electronic equipment
CN104112213A (en) Method and apparatus of recommendation information
US9798713B2 (en) Method for configuring application template, method for launching application template, and mobile terminal device
CN104021129B (en) Show the method and terminal of group picture
CN110442297A (en) Multi-screen display method, split screen display available device and terminal device
CN106502824B (en) Data back up method and Cloud Server
CN104516886A (en) Method, mobile terminal and server for displaying data analysis result
CN108932093A (en) Split screen application switching method, device, storage medium and electronic equipment
CN109067981A (en) Split screen application switching method, device, storage medium and electronic equipment
CN109871358A (en) A kind of management method and terminal device
JP2017509051A (en) Method and system for collecting statistics on streaming media data and associated apparatus
CN110308837A (en) File management method and terminal
CN108932094A (en) Split screen application switching method, device, storage medium and electronic equipment
CN104836717B (en) A kind of data processing method, device and terminal device
CN110377235A (en) Data processing method, device, mobile terminal and computer readable storage medium
CN106569815A (en) Message display method and terminal
CN104063400A (en) Data search method and data search device
CN106202422B (en) The treating method and apparatus of Web page icon
CN106126726A (en) The exhibiting method of a kind of file scene and relevant device
CN104424203B (en) Photo in mobile device shares state inspection method and system
CN107678822B (en) A kind of information processing method and device, terminal and readable storage medium storing program for executing
CN110413639A (en) Data check method and device, electronic equipment and computer readable storage medium

Legal Events

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