CN106951492A - File search method, device and electronic equipment - Google Patents
File search method, device and electronic equipment Download PDFInfo
- Publication number
- CN106951492A CN106951492A CN201710150925.8A CN201710150925A CN106951492A CN 106951492 A CN106951492 A CN 106951492A CN 201710150925 A CN201710150925 A CN 201710150925A CN 106951492 A CN106951492 A CN 106951492A
- Authority
- CN
- China
- Prior art keywords
- file
- application program
- interface
- folder
- files
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/156—Query results presentation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/168—Details 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)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明涉及一种文件搜索方法、装置和电子设备。上述方法包括:接收作用于电子设备界面中应用程序图标的操作指令;若所述操作指令与预设的操作指令一致,获取所述应用程序图标对应的应用程序标识,查找与所述应用程序标识对应的文件夹和/或文件;将所述文件夹和/或文件在电子设备界面展示。上述方法,可以便捷的搜索应用程序对应的文件。
The invention relates to a file search method, device and electronic equipment. The above method includes: receiving an operation instruction acting on the application program icon in the interface of the electronic device; if the operation instruction is consistent with the preset operation instruction, obtaining the application program identification corresponding to the application program icon, and searching for the application program identification corresponding to the application program identification. Corresponding folders and/or files; displaying the folders and/or files on the interface of the electronic device. The above method can conveniently search for the file corresponding to the application program.
Description
技术领域technical field
本发明涉及计算机技术领域,特别是涉及一种文件搜索方法、装置和电子设备。The invention relates to the technical field of computers, in particular to a file search method, device and electronic equipment.
背景技术Background technique
在智能移动终端中,文件系统是管理文件的主要方式。一般来说,当用户需要查找移动终端中应用程序对应的文件时,通常采用文件管理应用来查找文件。文件管理应用可将移动终端中文件按文件名排序展示,用户在文件管理应用中可查找移动终端中所有应用程序对应的文件。In a smart mobile terminal, the file system is the main way to manage files. Generally speaking, when a user needs to find a file corresponding to an application program in a mobile terminal, a file management application is usually used to find the file. The file management application can sort and display the files in the mobile terminal by file name, and the user can find the files corresponding to all the applications in the mobile terminal in the file management application.
发明内容Contents of the invention
本发明实施例提供一种文件搜索方法、装置和电子设备,可以便捷的搜索应用程序对应的文件。Embodiments of the present invention provide a file search method, device and electronic equipment, which can conveniently search for files corresponding to application programs.
一种文件搜索方法,包括:A file search method comprising:
接收作用于电子设备界面中应用程序图标的操作指令;Receive operation instructions acting on the application icon in the interface of the electronic device;
若所述操作指令与预设的操作指令一致,获取所述应用程序图标对应的应用程序标识,查找与所述应用程序标识对应的文件夹和/或文件;If the operation instruction is consistent with the preset operation instruction, obtain the application program identification corresponding to the application program icon, and search for the folder and/or file corresponding to the application program identification;
将所述文件夹和/或文件在电子设备界面展示。Displaying the folder and/or file on the interface of the electronic device.
一种文件搜索装置,包括:A file search device, comprising:
接收模块,用于接收作用于电子设备界面中应用程序图标的操作指令;A receiving module, configured to receive an operation instruction acting on the application program icon in the interface of the electronic device;
查找模块,用于若所述操作指令与预设的操作指令一致,获取所述应用程序图标对应的应用程序标识,查找与所述应用程序标识对应的文件夹和/或文件;A search module, configured to obtain an application identifier corresponding to the application icon if the operation instruction is consistent with a preset operation instruction, and search for a folder and/or file corresponding to the application identifier;
展示模块,用于将所述文件夹和/或文件在电子设备界面展示。The display module is configured to display the folder and/or file on the interface of the electronic device.
一种电子设备,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现以下步骤:An electronic device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the following steps when executing the program:
接收作用于电子设备界面中应用程序图标的操作指令;Receive operation instructions acting on the application icon in the interface of the electronic device;
若所述操作指令与预设的操作指令一致,获取所述应用程序图标对应的应用程序标识,查找与所述应用程序标识对应的文件夹和/或文件;If the operation instruction is consistent with the preset operation instruction, obtain the application program identification corresponding to the application program icon, and search for the folder and/or file corresponding to the application program identification;
将所述文件夹和/或文件在电子设备界面展示。Displaying the folder and/or file on the interface of the electronic device.
附图说明Description of drawings
图1为一个实施例中文件搜索方法的流程图;Fig. 1 is a flowchart of a file search method in an embodiment;
图2为另一个实施例中文件搜索方法的流程图;Fig. 2 is the flowchart of file search method in another embodiment;
图3为一个实施例中文件搜索装置的结构框图;Fig. 3 is a structural block diagram of a file search device in an embodiment;
图4为与本发明实施例提供的电子设备相关的手机的部分结构的框图。Fig. 4 is a block diagram of a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
图1为一个实施例中文件搜索方法的流程图。如图1所示,一种文件搜索方法,包括步骤S202至S206。其中:Fig. 1 is a flowchart of a file search method in an embodiment. As shown in FIG. 1 , a file search method includes steps S202 to S206. in:
S102,接收作用于电子设备界面中应用程序图标的操作指令;S102, receiving an operation instruction acting on an application program icon in the interface of the electronic device;
S104,若操作指令与预设的操作指令一致,获取应用程序图标对应的应用程序标识,查找与应用程序标识对应的文件夹和/或文件;S104, if the operation instruction is consistent with the preset operation instruction, obtain the application program identification corresponding to the application program icon, and search for the folder and/or file corresponding to the application program identification;
S106,将文件夹和/或文件在电子设备界面展示。S106. Display the folder and/or file on the interface of the electronic device.
在一个实施例中,电子设备可为计算机、移动终端、可穿戴式智能设备等,不限于此。在电子设备的界面展示有应用程序图标,作用于电子设备界面中应用程序图标的操作指令可为作用于应用程序图标的触控操作、或鼠标作用于应用程序图标的点击操作。在接收到作用于电子设备界面中应用程序图标的操作指令后,检测接收到的操作指令与预设的操作指令是否一致,若接收到的操作指令与预设的操作指令一致,则获取应用程序图标对应的应用程序标识,并在应用程序记录表中查找与应用程序标识对应的文件夹、文件、文件夹和文件。其中,预设的操作指令可为双击、长按、单击等,不限于此。In an embodiment, the electronic device may be a computer, a mobile terminal, a wearable smart device, etc., but is not limited thereto. An application program icon is displayed on the interface of the electronic device, and an operation command acting on the application program icon in the electronic device interface may be a touch operation acting on the application program icon, or a mouse click operation acting on the application program icon. After receiving the operation instruction acting on the application program icon in the interface of the electronic device, it is detected whether the received operation instruction is consistent with the preset operation instruction, and if the received operation instruction is consistent with the preset operation instruction, the application program is acquired The application identification corresponding to the icon, and the folder, file, folder and file corresponding to the application identification are searched in the application record table. Wherein, the preset operation instruction may be double-click, long-press, single-click, etc., but is not limited thereto.
应用程序标识用于唯一标识电子设备中应用程序,可为应用程序的名称或应用程序对应的包名。应用程序记录表用于记录应用程序、应用程序对应的文件夹、应用程序对应的文件之间的映射关系;应用程序对应的文件夹包括应用程序在安装、运行时生成的文件夹;应用程序对应的文件包括应用程序的安装文件、应用程序的运行文件、应用程序的下载文件、应用程序的可编辑文件等。其中,在应用程序执行安装程序时,可对安装生成的文件标记;在应用程序下载文件时,可对下载的文件标记;应用程序在运行时,可对运行生成的文件标记;应用程序记录表在根据应用程序标识获取应用程序对应的文件或文件夹后,根据文件标记可将应用程序对应的文件分为应用程序的安装文件、应用程序对应的运行文件、应用程序对应的下载文件;根据文件格式可将应用程序对应的文件分为可编辑文件和不可编辑文件。The application program identifier is used to uniquely identify the application program in the electronic device, which may be the name of the application program or the package name corresponding to the application program. The application record table is used to record the mapping relationship between the application, the folder corresponding to the application, and the file corresponding to the application; the folder corresponding to the application includes the folder generated when the application is installed and running; The files include the installation file of the application, the running file of the application, the download file of the application, the editable file of the application, and so on. Among them, when the application program executes the installation program, the file generated by the installation can be marked; when the application program downloads the file, the downloaded file can be marked; when the application program is running, the file generated by the operation can be marked; the application record table After obtaining the file or folder corresponding to the application program according to the application program identification, the file corresponding to the application program can be divided into the installation file of the application program, the running file corresponding to the application program, and the download file corresponding to the application program according to the file mark; The format can divide the files corresponding to the application into editable files and non-editable files.
应用程序记录表中记录有应用程序对应的文件夹的名称、大小、路径、最近修改时间,以及应用程序对应的文件的名称、大小、路径、最近修改时间等。通过监控文件系统,应用程序记录表可获取文件系统中生成的文件或文件夹对应的应用程序标识,并将文件系统中文件与文件夹与应用程序标识对应存储;应用程序记录表还可实时监控文件系统,获取对文件或文件夹进行读写操作的应用程序,将修改后的文件或文件夹与应用程序标识对应存储,即应用程序表可实时更新已存储的文件或文件夹与应用程序标识之间的对应关系。The application record table records the name, size, path, and last modification time of the folder corresponding to the application, and the name, size, path, and last modification time of the file corresponding to the application. By monitoring the file system, the application record table can obtain the application ID corresponding to the file or folder generated in the file system, and store the files and folders in the file system corresponding to the application ID; the application record table can also be monitored in real time File system, to obtain applications that perform read and write operations on files or folders, and store the modified files or folders in correspondence with application IDs, that is, the application table can update the stored files or folders and application IDs in real time Correspondence between.
在获取到应用程序图标对应的应用程序标识后,可在应用程序记录表中查找与应用程序标识对应的文件、与应用程序标识对应的文件夹。若应用程序标识对应的文件夹内文件均为安装文件,则将该文件夹标记为安装文件夹。在遍历应用程序记录表中应用程序标识对应的文件夹和文件后,将应用程序标识对应的文件夹和文件在电子设备界面展示。其中,若一个文件夹中所有文件均为应用程序对应的文件,则在电子设备界面中仅展示该文件夹,不展示该文件夹内包括的文件,即在电子设备界面展示应用程序对应的文件夹和文件时,优先展示应用程序对应的文件夹。其中,展示文件和/或文件夹的方式可为列表展示、缩略图展示等,不限于此。After the application program identification corresponding to the application program icon is obtained, the file corresponding to the application program identification and the folder corresponding to the application program identification can be searched in the application program recording table. If the files in the folder corresponding to the application identification are all installation files, the folder is marked as the installation folder. After traversing the folders and files corresponding to the application ID in the application record table, the folders and files corresponding to the application ID are displayed on the interface of the electronic device. Among them, if all the files in a folder are files corresponding to the application program, only the folder is displayed on the electronic device interface, and the files included in the folder are not displayed, that is, the files corresponding to the application program are displayed on the electronic device interface When folders and files are displayed, the folder corresponding to the application is displayed first. Wherein, the manner of displaying files and/or folders may be list display, thumbnail display, etc., but is not limited thereto.
例如,在手机界面展示有QQ图标,在获取到对手机界面QQ图标的双击操作后,系统查找QQ图标对应的应用程序名称为腾讯QQ,再在应用程序记录表中查找腾讯QQ对应的文件和文件夹的路径为**\***\Tencent\QQ,通过遍历该路径下文件和文件夹、获取文件的标识,再根据文件的标识将该路径下的文件分为QQ安装文件、QQ运行文件、QQ下载文件;根据文件格式将文件后缀名为.doc、.txt、.docx等文件分为QQ可编辑文件;并将QQ安装文件、QQ运行文件、QQ下载文件、QQ可编辑文件在手机界面分类列表展示。For example, there is a QQ icon displayed on the mobile phone interface. After obtaining the double-click operation of the QQ icon on the mobile phone interface, the system finds the application name corresponding to the QQ icon is Tencent QQ, and then searches the application record table for the corresponding file and The path of the folder is **\***\Tencent\QQ. By traversing the files and folders under this path, the identifier of the file is obtained, and then according to the identifier of the file, the files under this path are divided into QQ installation file, QQ running files, QQ download files; according to the file format, files with file extensions such as .doc, .txt, and .docx are divided into QQ editable files; QQ installation files, QQ running files, QQ download files, and QQ editable files are placed in Mobile interface classification list display.
本发明实施例中文件搜索方法,在获取到对应用程序的操作指令后,在应用程序记录表中查找与该应用程序对应的文件夹和文件,并将查找获取的文件夹和文件在电子设备界面展示,查找文件的方法更加快捷、方便。In the file search method in the embodiment of the present invention, after obtaining the operation instruction to the application program, the folder and file corresponding to the application program are searched in the application program recording table, and the folder and file obtained by the search are stored in the electronic device Interface display, the method of finding files is faster and more convenient.
在一个实施例中,查找与应用程序标识对应的文件夹包括:获取应用程序标识对应的文件夹路径;由下级目录向上级目录逐级遍历文件夹路径下文件夹包括的文件是否均为应用程序标识对应的文件;若是,在电子设备界面中展示文件夹路径下文件夹。In one embodiment, searching for the folder corresponding to the application identification includes: obtaining the folder path corresponding to the application identification; traversing from the lower-level directory to the upper-level directory step by step whether the files included in the folder under the folder path are all application programs Identify the corresponding file; if so, display the folder under the folder path on the electronic device interface.
在查找应用程序标识对应的文件夹和文件时,首先获取应用程序记录表中记录的应用程序对应的文件夹路径,遍历该文件夹路径下的文件夹和文件是否均为该应用程序对应的文件夹和文件,若是,则获取该文件夹路径对应的上一级文件夹路径,遍历上一级文件夹路径对应的文件夹中包括的文件夹和文件是否均为该应用程序对应的文件夹和文件;若下一级文件夹路径对应的文件夹中包括的文件夹和文件均为该应用程序标识对应的文件夹和文件,且上一级文件夹路径对应的文件夹中包括的文件包括不是均为该应用程序对应的文件夹和文件,则获取下一级文件夹路径对应的文件夹,将下一级文件夹路径对应的文件夹在电子设备界面展示。例如,系统获取到腾讯QQ对应的文件夹路径为**\***\Tencent\QQ,遍历**\***\Tencent\QQ路径下文件和文件夹均为腾讯QQ对应的文件,则再遍历**\***\Tencent路径下文件和文件夹,**\***\Tencent路径下包括微信对应的文件,则在手机界面展示腾讯QQ对应的文件夹,即**\***\Tencent目录下的QQ文件夹。When looking for folders and files corresponding to the application identifier, first obtain the folder path corresponding to the application recorded in the application record table, and traverse whether the folders and files under the folder path are all files corresponding to the application Folders and files, if so, obtain the upper-level folder path corresponding to the folder path, and traverse whether the folders and files included in the folder corresponding to the upper-level folder path are all folders and files corresponding to the application files; if the folders and files included in the folder corresponding to the lower-level folder path are all folders and files corresponding to the application identification, and the files included in the folder corresponding to the upper-level folder path include not are all folders and files corresponding to the application program, then obtain the folder corresponding to the lower folder path, and display the folder corresponding to the lower folder path on the electronic device interface. For example, the system obtains the folder path corresponding to Tencent QQ as **\***\Tencent\QQ, and the files and folders under the **\***\Tencent\QQ path are all files corresponding to Tencent QQ, then Then traverse the files and folders under the path of **\***\Tencent, if the path of **\***\Tencent includes the files corresponding to WeChat, then the folder corresponding to Tencent QQ will be displayed on the mobile phone interface, namely **\* **QQ folder under the \Tencent directory.
在一个实施例中,在电子设备界面展示有对文件夹和/或文件的分类标签;上述文件搜索方法还包括:接收作用于分类标签的操作指令,根据操作指令获取被选中的分类标签;根据被选中的分类标签将文件夹和/或文件分类展示。In one embodiment, classification labels for folders and/or files are displayed on the interface of the electronic device; the above-mentioned file search method further includes: receiving an operation instruction acting on the classification label, and obtaining the selected classification label according to the operation instruction; The selected category tab displays folders and/or files by category.
在电子设备界面中展示有对文件和/或文件夹的分类标签,上述分类标签可包括按最新修改时间分类,按格式分类、按大小分类、按名称分类、按文件标记分类等。在获取到对展示的分类标签的触控操作或鼠标的点击指令后,根据选取的分类标签对应用程序的文件夹和/或文件进行分类,并将分类后的文件夹和/或文件展示。例如,在手机界面展示有腾讯QQ对应的文件夹和文件、还展示有按最新修改时间分类,按格式分类、按大小分类、按名称分类、按文件标记分类的分类标签,用户点击按最新修改时间分类,则将腾讯QQ对应的文件和文件夹分为“最近一周”、“最近一个月”、“最近三个月”、“更早”展示。Classification labels for files and/or folders are displayed on the electronic device interface, and the above classification labels may include classification by latest modification time, classification by format, classification by size, classification by name, classification by file mark, etc. After obtaining a touch operation on the displayed classification label or a mouse click instruction, the folders and/or files of the application are classified according to the selected classification label, and the classified folders and/or files are displayed. For example, the folders and files corresponding to Tencent QQ are displayed on the mobile phone interface, and there are also classification labels classified by the latest modification time, by format, by size, by name, and by file mark. Users click on the latest modification For time classification, the files and folders corresponding to Tencent QQ are divided into "last week", "last month", "last three months", and "earlier".
本发明实施例中文件搜索方法,在展示应用程序对应的文件夹和文件时,还展示不同的分类标签,有利于根据分类标签将应用程序对应的文件夹和文件分类展示,展示文件夹和文件的方式更加多样化。In the file search method in the embodiment of the present invention, when displaying the folders and files corresponding to the application, different classification tags are also displayed, which is beneficial to classify and display the folders and files corresponding to the application according to the classification tags, and display the folders and files way is more diverse.
在一个实施例中,在电子设备界面展示有与文件夹对应的展开按钮;上述文件搜索方法还包括:接收对展开按钮的操作指令;根据对展开按钮的操作指令展示文件夹中包括的文件夹和/或文件。In one embodiment, an expansion button corresponding to the folder is displayed on the electronic device interface; the above file search method further includes: receiving an operation instruction for the expansion button; displaying the folders included in the folder according to the operation instruction for the expansion button and/or files.
在电子设备界面展示应用程序对应的文件夹时,还可展示与文件夹对应的收缩/展开按钮,若获取到对上述收缩/展开按钮的触控操作或鼠标的点击指令,则可执行对应的收缩/展开指令。例如,在手机界面展示有腾讯QQ对应的文件夹和文件,在文件夹前方展示有收缩/展开按钮,若获取到用户对收缩/展开按钮的触控操作,则展开该收缩/展开按钮对应的文件夹,在手机界面展示该文件夹内包括的文件夹和文件。在展示文件夹内包括的文件夹和文件后,若再次获取到用户对该收缩/展开按钮的触控操作,则在手机界面仅展示该文件夹。When the folder corresponding to the application is displayed on the interface of the electronic device, the shrink/expand button corresponding to the folder can also be displayed. If the touch operation or mouse click command on the above shrink/expand button is obtained, the corresponding Shrink/expand instructions. For example, the folders and files corresponding to Tencent QQ are displayed on the mobile phone interface, and the shrink/expand button is displayed in front of the folder. Folder, the folders and files included in the folder are displayed on the phone interface. After displaying the folders and files included in the folder, if the user's touch operation on the shrink/expand button is obtained again, only the folder is displayed on the mobile phone interface.
本发明实施例中文件搜索方法,通过对文件夹设置对应的收缩/展开按钮,可展示文件夹中包括的文件夹和文件,通过多级展示的方式,方便用户查找各文件夹中对应的文件夹和文件,搜索文件的方式更便捷。In the file search method in the embodiment of the present invention, the folders and files included in the folder can be displayed by setting corresponding shrink/expand buttons for the folder, and the user can easily find the corresponding files in each folder through the multi-level display mode Folders and files, the way to search files is more convenient.
在一个实施例中,在电子设备界面展示有搜索控件;上述文件搜索方法还包括:接收在搜索控件中输入的关键字;在与应用程序标识对应的文件夹和/或文件中查找与关键字对应的文件夹和/或文件;在电子设备界面中展示与关键字对应的文件夹和/或文件。In one embodiment, a search control is displayed on the interface of the electronic device; the above-mentioned file search method further includes: receiving a keyword input in the search control; Corresponding folders and/or files; displaying folders and/or files corresponding to keywords on the electronic device interface.
在电子设备界面展示有搜索控件,该搜索控件可为固定搜索框、悬浮搜索框等。通过接收在搜索控件中输入的关键字,可查找与关键字对应的文件夹和/或文件。其中,关键字可为文件夹或文件的名称、文件夹或文件的分类标签等。在根据关键字搜索获取对应的文件夹和/或文件后,可将搜索获取的文件夹和/或文件高亮显示、加粗显示、或在电子设备界面仅展示搜索获取的文件夹和/或文件。例如,在手机界面展示有腾讯QQ对应的文件夹和文件,用户在搜索框中输入“下载”,则根据文件标识查找腾讯QQ对应的下载文件,并将查找获取的下载文件展示在手机界面。A search control is displayed on the interface of the electronic device, and the search control may be a fixed search box, a floating search box, or the like. By receiving keywords input in the search control, folders and/or files corresponding to the keywords can be found. Wherein, the keywords may be names of folders or files, classification labels of folders or files, and the like. After searching and obtaining the corresponding folders and/or files according to the keyword, the folders and/or files obtained by the search can be highlighted, displayed in bold, or only the folders and/or files obtained by the search can be displayed on the electronic device interface document. For example, if there are folders and files corresponding to Tencent QQ displayed on the mobile phone interface, and the user enters "download" in the search box, the downloaded file corresponding to Tencent QQ will be searched according to the file identifier, and the obtained downloaded file will be displayed on the mobile phone interface.
本发明实施例中文件搜索方法,在电子设备界面设置搜索控件,有利于根据在搜索控件中输入的关键词查找对应的文件夹和文件,文件搜索的方式更便捷,提高了用户体验。In the file search method in the embodiment of the present invention, a search control is set on the interface of the electronic device, which is beneficial to search for corresponding folders and files according to the keywords input in the search control, the file search method is more convenient, and the user experience is improved.
图2为另一个实施例中文件搜索方法的流程图。如图2所示,一种文件搜索方法,包括:Fig. 2 is a flowchart of a file search method in another embodiment. As shown in Figure 2, a file search method includes:
S202,检测是否接收到对移动终端桌面应用图标的预设操作。S202. Detect whether a preset operation on the desktop application icon of the mobile terminal is received.
S204,是否与预设的操作一致。若是,跳转到S206。S204, whether the operation is consistent with the preset operation. If yes, jump to S206.
S206,在应用程序记录表中查找与该桌面应用相关联的文件夹和文件。S206. Search the application record table for folders and files associated with the desktop application.
S208,将查找获取的文件夹和文件按照预设格式在移动终端桌面展示。S208, displaying the obtained folders and files on the desktop of the mobile terminal according to a preset format.
S210,是否接收到对文件夹或文件的触控操作,若是,跳转到S212。S210, whether a touch operation on a folder or a file is received, and if so, jump to S212.
S212,跳转到文件管理系统中该文件夹或文件的位置。S212. Jump to the location of the folder or file in the file management system.
本发明实施例中文件搜索方法,在获取到对应用程序的操作指令后,在应用程序记录表中查找与该应用程序对应的文件夹和文件,并将查找获取的文件夹和文件在电子设备界面展示,查找文件的方法更加快捷、方便。In the file search method in the embodiment of the present invention, after obtaining the operation instruction to the application program, the folder and file corresponding to the application program are searched in the application program recording table, and the folder and file obtained by the search are stored in the electronic device Interface display, the method of finding files is faster and more convenient.
图3为一个实施例中文件搜索装置的结构框图,如图3所示,一种文件搜索装置,包括接收模块302、查找模块304和展示模块306。其中:FIG. 3 is a structural block diagram of a file search device in an embodiment. As shown in FIG. 3 , a file search device includes a receiving module 302 , a search module 304 and a display module 306 . in:
接收模块302,用于接收作用于电子设备界面中应用程序图标的操作指令。The receiving module 302 is configured to receive an operation instruction acting on an application program icon in an interface of the electronic device.
查找模块304,用于若操作指令与预设的操作指令一致,获取应用程序图标对应的应用程序标识,查找与应用程序标识对应的文件夹和/或文件。The searching module 304 is configured to obtain the application identification corresponding to the application icon if the operation instruction is consistent with the preset operation instruction, and search for the folder and/or file corresponding to the application identification.
展示模块306,用于将文件夹和/或文件在电子设备界面展示。The display module 306 is configured to display folders and/or files on the interface of the electronic device.
在一个实施例中,在电子设备界面展示有对文件夹和/或文件的分类标签;接收模块302还用于接收作用于分类标签的操作指令,根据操作指令获取被选中的分类标签;展示模块306还用于根据被选中的分类标签将文件夹和/或文件分类展示。In one embodiment, classification tags for folders and/or files are displayed on the interface of the electronic device; the receiving module 302 is also used to receive operation instructions acting on the classification tags, and obtain the selected classification tags according to the operation instructions; the display module 306 is also used to classify and display folders and/or files according to the selected classification label.
在一个实施例中,在电子设备界面展示有与文件夹对应的展开按钮;接收模块302还用于接收对展开按钮的操作指令;展示模块306还用于根据对展开按钮的操作指令展示文件夹中包括的文件夹和/或文件。In one embodiment, an expansion button corresponding to the folder is displayed on the electronic device interface; the receiving module 302 is also used to receive an operation instruction on the expansion button; the display module 306 is also used to display the folder according to the operation instruction on the expansion button Folders and/or files included in .
在一个实施例中,在电子设备界面展示有搜索控件;接收模块302还用于接收在搜索控件中输入的关键字;查找模块304还用于在与应用程序标识对应的文件夹和/或文件中查找与关键字对应的文件夹和/或文件;展示模块306还用于在电子设备界面中展示与关键字对应的文件夹和/或文件。In one embodiment, a search control is displayed on the electronic device interface; the receiving module 302 is also used to receive keywords input in the search control; the search module 304 is also used to search the folder and/or file corresponding to the application identifier Find the folder and/or file corresponding to the keyword; the display module 306 is also used to display the folder and/or file corresponding to the keyword on the electronic device interface.
在一个实施例中,查找模块304还用于获取应用程序标识对应的文件夹路径;由下级目录向上级目录逐级遍历文件夹路径下文件夹包括的文件是否均为应用程序标识对应的文件;若是,在电子设备界面中展示文件夹路径下文件夹。In one embodiment, the search module 304 is also used to obtain the folder path corresponding to the application identifier; whether all the files included in the folder under the folder path are traversed from the lower-level directory to the upper-level directory; If so, display the folder under the folder path on the electronic device interface.
上述文件搜索装置中各个模块的划分仅用于举例说明,在其他实施例中,可将文件搜索装置按照需要划分为不同的模块,以完成上述文件搜索装置的全部或部分功能。The division of each module in the above-mentioned file search device is only for illustration. In other embodiments, the file search device can be divided into different modules according to needs, so as to complete all or part of the functions of the above-mentioned file search device.
本发明实施例还提供了一种电子设备。如图4所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该电子设备可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以电子设备为手机为例:The embodiment of the present invention also provides an electronic device. As shown in FIG. 4 , for the convenience of description, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The electronic device can be any terminal device including mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, wearable device, etc., taking the electronic device as a mobile phone as an example :
图4为与本发明实施例提供的电子设备相关的手机的部分结构的框图。参考图4,手机包括:射频(Radio Frequency,RF)电路410、存储器420、输入单元430、显示单元440、传感器450、音频电路460、无线保真(wireless fidelity,WiFi)模块470、处理器480、以及电源490等部件。本领域技术人员可以理解,图4所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Fig. 4 is a block diagram of a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present invention. Referring to FIG. 4 , the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 410, a memory 420, an input unit 430, a display unit 440, a sensor 450, an audio circuit 460, a wireless fidelity (wireless fidelity, WiFi) module 470, and a processor 480 , and power supply 490 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 4 does not constitute a limitation to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
其中,RF电路410可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器480处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路410还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband CodeDivision Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。Among them, the RF circuit 410 can be used for sending and receiving information or receiving and sending signals during a call. After receiving the downlink information from the base station, it can be processed by the processor 480; it can also send uplink data to the base station. Generally, an RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 410 may also communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
存储器420可用于存储软件程序以及模块,处理器480通过运行存储在存储器420的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器420可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 420 can be used to store software programs and modules, and the processor 480 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 420 . The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as an application program for a sound playback function, an application program for an image playback function, etc.), etc.; The data storage area can store data created according to the use of the mobile phone (such as audio data, address book, etc.) and the like. In addition, the memory 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
输入单元430可用于接收输入的数字或字符信息,以及产生与手机400的用户设置以及功能控制有关的键信号输入。具体地,输入单元430可包括触控面板431以及其他输入设备432。触控面板431,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板431上或在触控面板431附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板431可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器480,并能接收处理器480发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板431。除了触控面板431,输入单元430还可以包括其他输入设备432。具体地,其他输入设备432可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 430 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone 400 . Specifically, the input unit 430 may include a touch panel 431 and other input devices 432 . The touch panel 431, which can also be referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 431 or near the touch panel 431 operation), and drive the corresponding connection device according to the preset program. In one embodiment, the touch panel 431 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 480, and can receive and execute commands sent by the processor 480. In addition, the touch panel 431 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 431 , the input unit 430 may also include other input devices 432 . Specifically, other input devices 432 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), and the like.
显示单元440可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元440可包括显示面板441。在一个实施例中,可以采用液晶显示器(LiquidCrystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板441。在一个实施例中,触控面板431可覆盖显示面板441,当触控面板431检测到在其上或附近的触摸操作后,传送给处理器480以确定触摸事件的类型,随后处理器480根据触摸事件的类型在显示面板441上提供相应的视觉输出。虽然在图4中,触控面板431与显示面板441是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板431与显示面板441集成而实现手机的输入和输出功能。The display unit 440 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 440 may include a display panel 441 . In one embodiment, the display panel 441 may be configured in the form of a Liquid Crystal Display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (Organic Light-Emitting Diode, OLED), or the like. In one embodiment, the touch panel 431 can cover the display panel 441, and when the touch panel 431 detects a touch operation on or near it, it transmits to the processor 480 to determine the type of the touch event, and then the processor 480 according to The type of touch event provides a corresponding visual output on the display panel 441 . Although in FIG. 4 , the touch panel 431 and the display panel 441 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 431 and the display panel 441 can be integrated to form a mobile phone. Realize the input and output functions of the mobile phone.
手机400还可包括至少一种传感器450,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板441的亮度,接近传感器可在手机移动到耳边时,关闭显示面板441和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。Cell phone 400 may also include at least one sensor 450, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 441 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 441 and/or when the mobile phone is moved to the ear. or backlight. The motion sensor can include an acceleration sensor, through which the magnitude of acceleration in various directions can be detected, and the magnitude and direction of gravity can be detected when stationary, and can be used for applications that recognize the attitude of a mobile phone (such as switching between horizontal and vertical screens), vibration recognition related functions (such as pedometer, tap), etc.; in addition, the mobile phone can also be equipped with gyroscope, barometer, hygrometer, thermometer, infrared sensor and other sensors.
音频电路460、扬声器461和传声器462可提供用户与手机之间的音频接口。音频电路460可将接收到的音频数据转换后的电信号,传输到扬声器461,由扬声器461转换为声音信号输出;另一方面,传声器462将收集的声音信号转换为电信号,由音频电路460接收后转换为音频数据,再将音频数据输出处理器480处理后,经RF电路410可以发送给另一手机,或者将音频数据输出至存储器420以便后续处理。Audio circuitry 460, speaker 461 and microphone 462 may provide an audio interface between the user and the handset. The audio circuit 460 can transmit the electrical signal converted from the received audio data to the loudspeaker 461, and the loudspeaker 461 converts it into an audio signal output; After being received, it is converted into audio data, and after being processed by the output processor 480, the audio data can be sent to another mobile phone through the RF circuit 410, or the audio data can be output to the memory 420 for subsequent processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块470可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图4示出了WiFi模块470,但是可以理解的是,其并不属于手机400的必须构成,可以根据需要而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 470, which provides users with wireless broadband Internet access. Although FIG. 4 shows the WiFi module 470, it can be understood that it is not an essential component of the mobile phone 400 and can be omitted as required.
处理器480是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器420内的软件程序和/或模块,以及调用存储在存储器420内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器480可包括一个或多个处理单元。在一个实施例中,处理器480可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器480中。The processor 480 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 420, and calling data stored in the memory 420, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. In one embodiment, processor 480 may include one or more processing units. In one embodiment, the processor 480 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc.; the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 480 .
手机400还包括给各个部件供电的电源490(比如电池),优选的,电源可以通过电源管理系统与处理器480逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone 400 also includes a power supply 490 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 480 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system.
在一个实施例中,手机400还可以包括摄像头、蓝牙模块等。In one embodiment, the mobile phone 400 may also include a camera, a Bluetooth module, and the like.
在本发明实施例中,该移动终端所包括的处理器480执行程序时实现以下步骤:In the embodiment of the present invention, the processor 480 included in the mobile terminal implements the following steps when executing the program:
(1)接收作用于电子设备界面中应用程序图标的操作指令;(1) receiving an operation instruction acting on the application program icon in the interface of the electronic device;
(2)若操作指令与预设的操作指令一致,获取应用程序图标对应的应用程序标识,查找与应用程序标识对应的文件夹和/或文件;(2) If the operation instruction is consistent with the preset operation instruction, obtain the application program identification corresponding to the application program icon, and search for the folder and/or file corresponding to the application program identification;
(3)将文件夹和/或文件在电子设备界面展示。(3) Displaying folders and/or files on the electronic device interface.
在一个实施例中,电子设备可为计算机、移动终端、可穿戴式智能设备等,不限于此。在电子设备的界面展示有应用程序图标,作用于电子设备界面中应用程序图标的操作指令可为作用于应用程序图标的触控操作、或鼠标作用于应用程序图标的点击操作。在接收到作用于电子设备界面中应用程序图标的操作指令后,检测接收到的操作指令与预设的操作指令是否一致,若接收到的操作指令与预设的操作指令一致,则获取应用程序图标对应的应用程序标识,并在应用程序记录表中查找与应用程序标识对应的文件夹、文件、文件夹和文件。其中,预设的操作指令可为双击、长按、单击等,不限于此。应用程序标识用于唯一标识电子设备中应用程序,可为应用程序的名称或应用程序对应的包名。应用程序记录表用于记录应用程序、应用程序对应的文件夹、应用程序对应的文件之间的映射关系;应用程序对应的文件夹包括应用程序在安装、运行时生成的文件夹;应用程序对应的文件包括应用程序的安装文件、应用程序的运行文件、应用程序的下载文件、应用程序的可编辑文件等。其中,在应用程序执行安装程序时,可对安装生成的文件标记;在应用程序下载文件时,可对下载的文件标记;应用程序在运行时,可对运行生成的文件标记;应用程序记录表在根据应用程序标识获取应用程序对应的文件或文件夹后,根据文件标记可将应用程序对应的文件分为应用程序的安装文件、应用程序对应的运行文件、应用程序对应的下载文件;根据文件格式可将应用程序对应的文件分为可编辑文件和不可编辑文件。In an embodiment, the electronic device may be a computer, a mobile terminal, a wearable smart device, etc., but is not limited thereto. An application program icon is displayed on the interface of the electronic device, and an operation command acting on the application program icon in the electronic device interface may be a touch operation acting on the application program icon, or a mouse click operation acting on the application program icon. After receiving the operation instruction acting on the application program icon in the interface of the electronic device, it is detected whether the received operation instruction is consistent with the preset operation instruction, and if the received operation instruction is consistent with the preset operation instruction, the application program is acquired The application identification corresponding to the icon, and the folder, file, folder and file corresponding to the application identification are searched in the application record table. Wherein, the preset operation instruction may be double-click, long-press, single-click, etc., but is not limited thereto. The application program identifier is used to uniquely identify the application program in the electronic device, which may be the name of the application program or the package name corresponding to the application program. The application record table is used to record the mapping relationship between the application, the folder corresponding to the application, and the file corresponding to the application; the folder corresponding to the application includes the folder generated when the application is installed and running; The files include the installation file of the application, the running file of the application, the download file of the application, the editable file of the application, and so on. Among them, when the application program executes the installation program, the file generated by the installation can be marked; when the application program downloads the file, the downloaded file can be marked; when the application program is running, the file generated by the operation can be marked; the application record table After obtaining the file or folder corresponding to the application program according to the application program identification, the file corresponding to the application program can be divided into the installation file of the application program, the running file corresponding to the application program, and the download file corresponding to the application program according to the file mark; The format can divide the files corresponding to the application into editable files and non-editable files.
应用程序记录表中记录有应用程序对应的文件夹的名称、大小、路径、最近修改时间,应用程序对应的文件的名称、大小、路径、最近修改时间等。通过监控文件系统,应用程序记录表可获取文件系统中生成的文件或文件夹对应的应用程序标识,并将文件系统中文件与文件夹与应用程序标识对应存储;应用程序记录表还可实时监控文件系统,获取对文件或文件夹进行读写操作的应用程序,将修改后的文件或文件夹与应用程序标识对应存储,即应用程序表可实时更新已存储的文件或文件夹与应用程序标识之间的对应关系。The application record table records the name, size, path, and last modification time of the folder corresponding to the application, and the name, size, path, and last modification time of the file corresponding to the application. By monitoring the file system, the application record table can obtain the application ID corresponding to the file or folder generated in the file system, and store the files and folders in the file system corresponding to the application ID; the application record table can also be monitored in real time File system, to obtain applications that perform read and write operations on files or folders, and store the modified files or folders in correspondence with application IDs, that is, the application table can update the stored files or folders and application IDs in real time Correspondence between.
在获取到应用程序图标对应的应用程序标识后,可在应用程序记录表中查找与应用程序标识对应的文件、与应用程序标识对应的文件夹。若应用程序标识对应的文件夹内文件均为安装文件,则将该文件夹标记为安装文件夹。在遍历应用程序记录表中应用程序标识对应的文件夹和文件后,将应用程序标识对应的文件夹和文件在电子设备界面展示。其中,若一个文件夹中所有文件均为应用程序对应的文件,则在电子设备界面中仅展示该文件夹,不展示该文件夹内包括的文件,即在电子设备界面展示应用程序对应的文件夹和文件时,优先展示应用程序对应的文件夹。其中,展示文件和/或文件夹的方式可为列表展示、缩略图展示等,不限于此。After the application program identification corresponding to the application program icon is obtained, the file corresponding to the application program identification and the folder corresponding to the application program identification can be searched in the application program recording table. If the files in the folder corresponding to the application identification are all installation files, the folder is marked as the installation folder. After traversing the folders and files corresponding to the application ID in the application record table, the folders and files corresponding to the application ID are displayed on the interface of the electronic device. Among them, if all the files in a folder are files corresponding to the application program, only the folder is displayed on the electronic device interface, and the files included in the folder are not displayed, that is, the files corresponding to the application program are displayed on the electronic device interface When folders and files are displayed, the folder corresponding to the application is displayed first. Wherein, the manner of displaying files and/or folders may be list display, thumbnail display, etc., but is not limited thereto.
本发明实施例中移动终端,在获取到对应用程序的操作指令后,在应用程序记录表中查找与该应用程序对应的文件夹和文件,并将查找获取的文件夹和文件在电子设备界面展示,查找文件的方法更加快捷、方便。In the embodiment of the present invention, after the mobile terminal obtains the operation instruction for the application program, it searches the application program recording table for folders and files corresponding to the application program, and displays the folders and files obtained by the search on the electronic device interface , the method of finding files is faster and more convenient.
在一个实施例中,查找与应用程序标识对应的文件夹包括:获取应用程序标识对应的文件夹路径;由下级目录向上级目录逐级遍历文件夹路径下文件夹包括的文件是否均为应用程序标识对应的文件;若是,在电子设备界面中展示文件夹路径下文件夹。In one embodiment, searching for the folder corresponding to the application identification includes: obtaining the folder path corresponding to the application identification; traversing from the lower-level directory to the upper-level directory step by step whether the files included in the folder under the folder path are all application programs Identify the corresponding file; if so, display the folder under the folder path on the electronic device interface.
在查找应用程序标识对应的文件夹和文件时,首先获取应用程序记录表中记录的应用程序对应的文件夹路径,遍历该文件夹路径下的文件夹和文件是否均为该应用程序对应的文件夹和文件,若是,则获取该文件夹路径对应的上一级文件夹路径,遍历上一级文件夹路径对应的文件夹中包括的文件夹和文件是否均为该应用程序对应的文件夹和文件;若下一级文件夹路径对应的文件夹中包括的文件夹和文件均为该应用程序标识对应的文件夹和文件,且上一级文件夹路径对应的文件夹中包括的文件包括不是均为该应用程序对应的文件夹和文件,则获取下一级文件夹路径对应的文件夹,将下一级文件夹路径对应的文件夹在电子设备界面展示。例如,系统获取到腾讯QQ对应的文件夹路径为**\***\Tencent\QQ,遍历**\***\Tencent\QQ路径下文件和文件夹均为腾讯QQ对应的文件,则再遍历**\***\Tencent路径下文件和文件夹,**\***\Tencent路径下包括微信对应的文件,则在手机界面展示腾讯QQ对应的文件夹,即**\***\Tencent目录下的QQ文件夹。When looking for folders and files corresponding to the application identifier, first obtain the folder path corresponding to the application recorded in the application record table, and traverse whether the folders and files under the folder path are all files corresponding to the application Folders and files, if so, obtain the upper-level folder path corresponding to the folder path, and traverse whether the folders and files included in the folder corresponding to the upper-level folder path are all folders and files corresponding to the application files; if the folders and files included in the folder corresponding to the lower-level folder path are all folders and files corresponding to the application identification, and the files included in the folder corresponding to the upper-level folder path include not are all folders and files corresponding to the application program, then obtain the folder corresponding to the lower folder path, and display the folder corresponding to the lower folder path on the electronic device interface. For example, the system obtains the folder path corresponding to Tencent QQ as **\***\Tencent\QQ, and the files and folders under the **\***\Tencent\QQ path are all files corresponding to Tencent QQ, then Then traverse the files and folders under the path of **\***\Tencent, if the path of **\***\Tencent includes the files corresponding to WeChat, then the folder corresponding to Tencent QQ will be displayed on the mobile phone interface, namely **\* **QQ folder under the \Tencent directory.
在一个实施例中,在电子设备界面展示有对文件夹和/或文件的分类标签;上述移动终端所包括的处理器480执行程序时还实现以下步骤:接收作用于分类标签的操作指令,根据操作指令获取被选中的分类标签;根据被选中的分类标签将文件夹和/或文件分类展示。In one embodiment, classification tags for folders and/or files are displayed on the interface of the electronic device; when the processor 480 included in the above-mentioned mobile terminal executes the program, the following steps are also implemented: receiving an operation instruction acting on the classification tags, according to The operation instruction obtains the selected classification label; and the folders and/or files are classified and displayed according to the selected classification label.
在电子设备界面中展示有对文件和/或文件夹的分类标签,上述分类标签可包括按最新修改时间分类,按格式分类、按大小分类、按名称分类、按文件标记分类等。在获取到对展示的分类标签的触控操作或鼠标的点击指令后,根据选取的分类标签对应用程序的文件夹和/或文件进行分类,并将分类后的文件夹和/或文件展示。Classification labels for files and/or folders are displayed on the electronic device interface, and the above classification labels may include classification by latest modification time, classification by format, classification by size, classification by name, classification by file mark, etc. After obtaining a touch operation on the displayed classification label or a mouse click instruction, the folders and/or files of the application are classified according to the selected classification label, and the classified folders and/or files are displayed.
本发明实施例中移动终端,在展示应用程序对应的文件夹和文件时,还展示不同的分类标签,有利于根据分类标签将应用程序对应的文件夹和文件分类展示,展示文件夹和文件的方式更加多样化。In the embodiment of the present invention, when displaying the folders and files corresponding to the application, the mobile terminal also displays different classification tags, which is beneficial to classify and display the folders and files corresponding to the application according to the classification tags, and display the folders and files. More variety.
在一个实施例中,在电子设备界面展示有与文件夹对应的展开按钮;上述移动终端所包括的处理器480执行程序时还实现以下步骤:接收对展开按钮的操作指令;根据对展开按钮的操作指令展示文件夹中包括的文件夹和/或文件。In one embodiment, an expansion button corresponding to the folder is displayed on the interface of the electronic device; when the processor 480 included in the mobile terminal executes the program, the following steps are also implemented: receiving an operation instruction for the expansion button; The action instructions show the folders and/or files included in the folder.
在电子设备界面展示应用程序对应的文件夹时,还可展示与文件夹对应的收缩/展开按钮,若获取到对上述收缩/展开按钮的触控操作或鼠标的点击指令,则可执行对应的收缩/展开指令。例如,在手机界面展示有腾讯QQ对应的文件夹和文件,在文件夹前方展示有收缩/展开按钮,若获取到用户对收缩/展开按钮的触控操作,则展开该收缩/展开按钮对应的文件夹,在手机界面展示该文件夹内包括的文件夹和文件。在展示文件夹内包括的文件夹和文件后,若再次获取到用户对该收缩/展开按钮的触控操作,则在手机界面仅展示该文件夹。When the folder corresponding to the application is displayed on the interface of the electronic device, the shrink/expand button corresponding to the folder can also be displayed. If the touch operation or mouse click command on the above shrink/expand button is obtained, the corresponding Shrink/expand instructions. For example, the folders and files corresponding to Tencent QQ are displayed on the mobile phone interface, and the shrink/expand button is displayed in front of the folder. Folder, the folders and files included in the folder are displayed on the phone interface. After displaying the folders and files included in the folder, if the user's touch operation on the shrink/expand button is obtained again, only the folder is displayed on the mobile phone interface.
本发明实施例中移动终端,通过对文件夹设置对应的收缩/展开按钮,可展示文件夹中包括的文件夹和文件,通过多级展示的方式,方便用户查找各文件夹中对应的文件夹和文件,搜索文件的方式更便捷。In the embodiment of the present invention, the mobile terminal can display the folders and files included in the folder by setting the corresponding shrink/expand button for the folder. Through the multi-level display mode, it is convenient for the user to find the corresponding folder and folder in each folder. Files, the way to search files is more convenient.
在一个实施例中,在电子设备界面展示有搜索控件;上述移动终端所包括的处理器480执行程序时还实现以下步骤:接收在搜索控件中输入的关键字;在与应用程序标识对应的文件夹和/或文件中查找与关键字对应的文件夹和/或文件;在电子设备界面中展示与关键字对应的文件夹和/或文件。In one embodiment, a search control is displayed on the interface of the electronic device; when the processor 480 included in the above-mentioned mobile terminal executes the program, the following steps are also implemented: receiving the keyword input in the search control; Find the folder and/or file corresponding to the keyword in the folder and/or file; display the folder and/or file corresponding to the keyword on the interface of the electronic device.
在电子设备界面展示有搜索控件,该搜索控件可为固定搜索框、悬浮搜索框等。通过接收在搜索控件中输入的关键字,可查找与关键字对应的文件夹和/或文件。其中,关键字可为文件夹或文件的名称、文件夹或文件的分类标签等。在根据关键字搜索获取对应的文件夹和/或文件后,可将搜索获取的文件夹和/或文件高亮显示、加粗显示、或在电子设备界面仅展示搜索获取的文件夹和/或文件。A search control is displayed on the interface of the electronic device, and the search control may be a fixed search box, a floating search box, or the like. By receiving a keyword input in the search control, a folder and/or file corresponding to the keyword may be searched. Wherein, the keywords may be names of folders or files, classification labels of folders or files, and the like. After searching and obtaining the corresponding folders and/or files according to the keyword, the folders and/or files obtained by the search can be highlighted, displayed in bold, or only the folders and/or files obtained by the search can be displayed on the electronic device interface document.
本发明实施例中移动终端,在电子设备界面设置搜索控件,有利于根据在搜索控件中输入的关键词查找对应的文件夹和文件,文件搜索的方式更便捷,提高了用户体验。In the embodiment of the present invention, the mobile terminal is provided with a search control on the interface of the electronic device, which is beneficial to search for corresponding folders and files according to keywords input in the search control, and the file search method is more convenient, which improves user experience.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium When the program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) and the like.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present invention, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present invention. It should be pointed out that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent for the present invention should be based on the appended claims.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710150925.8A CN106951492B (en) | 2017-03-14 | 2017-03-14 | File search method, device and electronic device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710150925.8A CN106951492B (en) | 2017-03-14 | 2017-03-14 | File search method, device and electronic device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106951492A true CN106951492A (en) | 2017-07-14 |
| CN106951492B CN106951492B (en) | 2020-09-22 |
Family
ID=59467474
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710150925.8A Expired - Fee Related CN106951492B (en) | 2017-03-14 | 2017-03-14 | File search method, device and electronic device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106951492B (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107436948A (en) * | 2017-08-04 | 2017-12-05 | 广东欧珀移动通信有限公司 | File search method, device and terminal |
| CN108958578A (en) * | 2018-06-21 | 2018-12-07 | Oppo(重庆)智能科技有限公司 | Document control method, apparatus and electronic device |
| CN109284261A (en) * | 2018-10-18 | 2019-01-29 | Oppo广东移动通信有限公司 | Application search method, device, storage medium and electronic device |
| CN110869902A (en) * | 2018-06-29 | 2020-03-06 | 华为技术有限公司 | A method and electronic device for browsing application folders |
| CN115794272A (en) * | 2021-11-03 | 2023-03-14 | 华为技术有限公司 | A display method and electronic device |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090210787A1 (en) * | 2005-09-16 | 2009-08-20 | Bits Co., Ltd. | Document data managing method, managing system, and computer software |
| CN103455640A (en) * | 2013-09-29 | 2013-12-18 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for displaying file management interfaces |
| CN104252284A (en) * | 2013-06-26 | 2014-12-31 | 中兴通讯股份有限公司 | File display method and device |
-
2017
- 2017-03-14 CN CN201710150925.8A patent/CN106951492B/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090210787A1 (en) * | 2005-09-16 | 2009-08-20 | Bits Co., Ltd. | Document data managing method, managing system, and computer software |
| CN104252284A (en) * | 2013-06-26 | 2014-12-31 | 中兴通讯股份有限公司 | File display method and device |
| CN103455640A (en) * | 2013-09-29 | 2013-12-18 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for displaying file management interfaces |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107436948A (en) * | 2017-08-04 | 2017-12-05 | 广东欧珀移动通信有限公司 | File search method, device and terminal |
| CN107436948B (en) * | 2017-08-04 | 2020-01-14 | Oppo广东移动通信有限公司 | File searching method and device and terminal |
| CN108958578A (en) * | 2018-06-21 | 2018-12-07 | Oppo(重庆)智能科技有限公司 | Document control method, apparatus and electronic device |
| CN108958578B (en) * | 2018-06-21 | 2021-01-26 | Oppo(重庆)智能科技有限公司 | File control method and device and electronic device |
| CN110869902A (en) * | 2018-06-29 | 2020-03-06 | 华为技术有限公司 | A method and electronic device for browsing application folders |
| US11609683B2 (en) | 2018-06-29 | 2023-03-21 | Huawei Technologies Co., Ltd. | Method for browsing application folder and electronic device |
| US12099700B2 (en) | 2018-06-29 | 2024-09-24 | Huawei Technologies Co., Ltd. | Method for browsing application folder and electronic device |
| CN109284261A (en) * | 2018-10-18 | 2019-01-29 | Oppo广东移动通信有限公司 | Application search method, device, storage medium and electronic device |
| CN109284261B (en) * | 2018-10-18 | 2021-06-25 | Oppo广东移动通信有限公司 | Application search method, device, storage medium and electronic device |
| CN115794272A (en) * | 2021-11-03 | 2023-03-14 | 华为技术有限公司 | A display method and electronic device |
| CN115794272B (en) * | 2021-11-03 | 2023-06-27 | 华为技术有限公司 | A display method and electronic device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106951492B (en) | 2020-09-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106557330B (en) | Method and device for processing notification information of notification bar of mobile terminal system and mobile terminal | |
| JP6211090B2 (en) | Message display method, message display device, terminal device, program, and recording medium thereof | |
| CN106502834B (en) | Backup method, the apparatus and system of data | |
| CN107562835A (en) | File search method, device, mobile terminal and computer-readable recording medium | |
| CN107580147B (en) | Management method of notification message and mobile terminal | |
| CN111316618B (en) | Network page storage method and terminal | |
| CN114969582A (en) | A method and terminal for displaying favorite objects | |
| AU2018430027B2 (en) | Method for browsing application folder and electronic device | |
| CN106951492B (en) | File search method, device and electronic device | |
| CN107436948B (en) | File searching method and device and terminal | |
| CN110456953A (en) | Folder interface switching method and terminal equipment | |
| US20200310771A1 (en) | Application Processing Method for Terminal Device, and Terminal Device | |
| US20170064352A1 (en) | Method and system for collecting statistics on streaming media data, and related apparatus | |
| CN110502163A (en) | Terminal device control method and terminal device | |
| CN108255372A (en) | A kind of desktop application icon method for sorting and mobile terminal | |
| CN107943361B (en) | Application icon display method, device and mobile terminal | |
| CN106156097B (en) | Method and device for processing browser input records | |
| CN107943387A (en) | A kind of document handling method and mobile terminal | |
| CN110532231A (en) | File polling method, file polling device and terminal device | |
| CN106126726A (en) | The exhibiting method of a kind of file scene and relevant device | |
| CN106249992A (en) | A web page control method and mobile terminal | |
| WO2019079958A1 (en) | File management method and apparatus, mobile terminal and computer readable storage medium | |
| US11461152B2 (en) | Information input method and terminal | |
| CN108491125A (en) | A kind of method of controlling operation thereof and mobile terminal of application shop | |
| CN110908751B (en) | Information display and collection method, device, electronic device and 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 | ||
| CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
| CB02 | Change of applicant information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200922 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |