WO2014127624A1 - 一种文件显示方法及装置 - Google Patents
一种文件显示方法及装置 Download PDFInfo
- Publication number
- WO2014127624A1 WO2014127624A1 PCT/CN2013/083452 CN2013083452W WO2014127624A1 WO 2014127624 A1 WO2014127624 A1 WO 2014127624A1 CN 2013083452 W CN2013083452 W CN 2013083452W WO 2014127624 A1 WO2014127624 A1 WO 2014127624A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- display
- content file
- content
- format
- file
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000012545 processing Methods 0.000 claims description 6
- 230000008859 change Effects 0.000 claims description 5
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 240000006694 Stellaria media Species 0.000 description 1
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003203 everyday effect Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
Definitions
- the present invention relates to the field of communications technologies, and in particular, to a file display method and apparatus. Background technique
- the embodiment of the invention provides a file display method and device, which are used to display and hide the blacklist and graylisted content according to the attributes of the content file, thereby improving the application startup speed and improving the user experience, thereby improving The efficiency of the user to find the demand information.
- the feature information of the content file corresponding to the application is obtained one by one; and the display attribute of each content file is determined according to the feature information;
- the content file whose display attribute is a blacklist or a graylist is hidden, and the content file whose display attribute is a whitelist is displayed.
- determining display attributes of each content file according to the feature information including:
- determining that the display attribute of the content display file is a blacklist includes:
- determining display attributes of each content file according to the feature information including:
- Determining that the display attribute of the content file is a gray list when the passive hidden number is less than the first preset reference threshold and greater than the second preset reference threshold;
- the display attribute of the content file is a white list.
- determining display attributes of each content file according to the feature information including:
- the display attribute tag of the content file When it is detected that the display attribute tag of the content file is set to be whitelisted by the user, it is determined that the display attribute of the content file is a white list.
- the display attribute tag of the content file is changed by the application.
- the generated display attribute of the content file is uploaded to the server; after the server generates the display attribute of the content file, the generated content file is generated.
- the display properties are sent to the terminal.
- the content file whose display attribute is a blacklist or a graylist is hidden, and the content file whose display attribute is a whitelist is displayed, including:
- the application When the application is a gallery, the group of pictures whose display attribute is blacklist or graylist is hidden, and the group of pictures whose display attribute is whitelist is displayed; When the application is a music player, a music file whose display attribute is a blacklist or a gray list is hidden, and the music file whose display attribute is a white list is displayed.
- An obtaining module configured to acquire feature information of a content file corresponding to the application one by one when the application is opened;
- a determining module configured to determine, according to the feature information, a display attribute of each content file
- the processing module is configured to hide the content file whose display attribute is a blacklist or a graylist, and display the content file whose display attribute is a whitelist.
- the determining module is configured to compare the format of the content file with a preset display format; when the format of the content file belongs to a preset When the blacklist format in the format is displayed, determining that the display attribute of the content display file is a blacklist; and determining the display attribute of the content display file when the format of the content file belongs to a graylisted format in the preset display format For the gray list; when the format of the content file belongs to the white list format in the preset display format, it is determined that the display attribute of the content display file is a white list.
- the determining module is configured to determine that the format of the content file is ".nomedia", or that the directory name of the content file is preceded by ".”, determining that the display attribute of the content display file is blacklist.
- the determining module is configured to acquire the passive number of times of the content file that is recorded, and the number of passive hidden times is that the user selects to hide the content file.
- the number of times of the passive hidden times is greater than the first preset reference threshold, determining that the display attribute of the content file is a blacklist; and the passive hidden number is less than the first preset reference threshold and greater than the second preset reference threshold And determining that the display attribute of the content file is a gray list; and when the passive hidden number is less than the second preset reference threshold, determining that the display attribute of the content file is a white list.
- the determining module is configured to determine the content file when the display attribute tag of the content file is determined to be blacklisted by the user.
- the display attribute of the content file is determined to be a graylist when the display attribute flag of the content file is determined to be grayed out by the user; the display attribute flag of the content file is detected by the user.
- whitelisted it is determined that the display attribute of the content file is a white list.
- the device further includes:
- a change module for changing a display attribute tag of the content file by the application.
- the processing module is configured to: when the application is a gallery, hide the display attribute as a blacklist or gray. a picture group of the list, the picture group whose display attribute is a white list is displayed; when the application is a music player, a music file whose display attribute is a blacklist or a gray list is hidden, and the music whose display attribute is a white list is displayed. file.
- the file display method and device provided by the embodiment of the present invention are configured to acquire feature information of a content file corresponding to the storage application one by one when the application is opened; determine display attributes of each content file according to the feature information; and hide the display attribute as black A list or graylisted content file that displays content files whose display attributes are whitelisted.
- the method and device provided by the embodiments of the present invention display, according to the attributes of the content file, hide the content of the blacklist and the gray list, thereby improving the startup speed of the application, improving the user experience, and further improving the efficiency of the user searching for the demand information. . DRAWINGS
- FIG. 1 is a flowchart of a file display method according to an embodiment of the present invention.
- FIG. 2 is a flowchart of a file display method according to another embodiment of the present invention.
- FIG. 3 is a schematic diagram of a virtual structure of a file display device according to an embodiment of the present invention. detailed description
- the file display method provided by the embodiment of the present invention, as shown in FIG. 1, includes the following steps:
- Step 101 When the application is opened, acquiring feature information of the content file corresponding to the storage application one by one; Step 102: determining display attributes of each content file according to the feature information;
- Step 103 Hide a content file whose display attribute is a blacklist or a graylist, and display a content file whose display attribute is a whitelist.
- the content file can be marked with feature information by various means, and the display attribute of the current content file is represented by the feature information.
- the blacklist From the hidden mechanism of Android android, where there is a .media file in the directory or the directory name with ".” in front of the directory is forced to hide the directory, filtering from the media library does not scan.
- Greylisting The directories and subdirectories of the content files in this list are set to hidden directories by default. They are not displayed by default, but can be displayed by changing the gallery settings.
- Whitelist The directories in this list are set as favorites, which are displayed or highlighted by default.
- the general blacklist setting is the system default, which cannot be changed.
- the user can manually set the gray list and white list, that is, set some albums as hidden albums and some albums as favorites albums.
- the smart terminal can upload the path that the user sets to collect and hide the album to the server side, and perform aggregation statistics on the server to obtain the top 10 of the content files that are set to be bookmarked to the whitelist; More of the top 10 are attributed to the greylist.
- the terminal can periodically obtain the latest gray list from the server, and set its corresponding path as the default collection or hidden album.
- the terminal can periodically obtain the latest gray list from the server, and set its corresponding path as the default collection or hidden album.
- the feature information is a format of the content file
- determining display attributes of each content file according to the feature information including: comparing a format of the content file with a preset display format; When the format of the blacklist is in the preset display format, the display attribute of the content display file is determined to be a blacklist; when the format of the content file belongs to the graylist format in the preset display format, the display attribute of the content display file is determined to be Gray list; When the format of the content file belongs to the white list format in the preset display format, it is determined that the display attribute of the content display file is a white list. For example, when it is judged that the format of the content file is ".nomedia" or the name of the directory in which the content file is located has ".” in front of it, it is determined that the display attribute of the content display file is a blacklist.
- the feature information is the passive number of times of the content file
- determining the display attribute of each content file according to the feature information including: obtaining the passive number of times of the recorded content file, and the passive hiding times is the user selection
- the feature information is a display attribute tag of the content file
- determining display attributes of each content file according to the feature information including: detecting that the display attribute tag of the content file is blacklisted by the user When it is determined that the display attribute of the content file is a blacklist; when the display attribute tag of the content file is detected as being grayed out by the user, determining that the display attribute of the content file is graylisted; detecting that the display attribute tag of the content file is set by the user When whitelisting, determine the display attribute of the content file as a whitelist.
- the display attribute tag of the content file is changed by the application.
- the display attribute of the content file is uploaded to the server; after the display attribute of the content file is generated by the server, the generated content file is displayed.
- the attribute is sent to the terminal.
- the content file whose display attribute is a blacklist or a graylist is hidden, and the content file whose display attribute is a whitelist is displayed, including: when the application is a gallery, the hidden display attribute is blacklisted or graylisted.
- the picture group displays a picture group whose display attribute is a white list.
- the application is a music player
- the music file whose display attribute is blacklist or gray list is hidden, and the music file whose display attribute is white list is displayed.
- the method provided by the embodiment of the present invention displays the content of the blacklist and the gray list according to the attribute of the content file, thereby improving the startup speed of the application and improving the user experience, thereby improving the user experience.
- Step 201 When the mobile phone library is opened, the feature information of the content file corresponding to the storage library is obtained one by one; for example, the mobile phone album , image files uploaded to the cloud server, images cached using some client software, and so on.
- the feature information may be the format of the content file, the number of passive concealments of the content file, the display attribute tag of the content file, and the like.
- Step 202 Determine, according to the feature information, a display attribute of each content file having a picture; and determine a correspondence between the feature information and the display attribute in advance, such as displaying the attribute as a white list when the feature information satisfies the condition a, and displaying the condition information when the condition information satisfies the condition b
- the display attribute is graylisted. In this way, after the feature information is obtained, the display attribute of the content file can be determined.
- Example 1 The feature information is the format of the content file, and the format of the obtained content file is compared with the preset display format. Assume that the blacklist format is A, the graylist format is B, and the whitelist format is C; If the format is A, the display attribute of the content display file is determined to be a blacklist; if the format of the content file is B, the display attribute of the content display file is determined to be a gray list; if the format of the content file is C, the content display file is determined. The display attribute is a whitelist.
- the feature information is the number of passive hidden times of the content file, assuming that the first preset reference threshold is 15 and the second preset reference threshold is 10; then the recorded content file is passively hidden, that is, the number of times the user selects the hidden content file.
- the display attribute of the content file is determined to be a blacklist; when the passive hidden number is less than the first preset reference threshold 15 and greater than the second preset reference threshold 10, the content file is determined.
- the display attribute is a gray list; when the passive hidden number is less than the second preset reference threshold 10, it is determined that the display attribute of the content file is a white list.
- the feature information is a display attribute tag of the content file, that is, the user can mark the content file, and the mark can be a mark made in an attribute in the content file, or can be other forms of mark.
- the display attribute of the content file is determined to be a gray list; when the content file is determined to be whitelisted by the user, it is determined that the display attribute of the content file is a white list.
- Step 203 Hide a content file whose display attribute is a blacklist or a graylist in the gallery, and display a content file whose display attribute is a whitelist.
- the display attribute of the generated content file may be uploaded to the server.
- the display attribute of the generated content file may be sent to the terminal.
- the method provided by the embodiment of the present invention displays the content of the blacklist and the gray list according to the attribute of the content file, thereby improving the startup speed of the application and improving the user experience, thereby improving the user experience.
- the embodiment of the present invention further provides a file display device. Since the principle of solving the problem is similar to the foregoing method, the implementation of the device can be referred to the implementation of the method, and the repeated description is omitted.
- a file display device provided by the embodiment of the present invention, as shown in FIG. 3, includes:
- the obtaining module 301 is configured to acquire feature information of the content file corresponding to the storage application one by one when the application is opened;
- a determining module 302 configured to determine, according to the feature information, a display attribute of each content file
- the processing module 303 is configured to hide a content file whose display attribute is a blacklist or a graylist, and display a content file whose display attribute is a whitelist.
- the determining module 302 is configured to compare the format of the content file with the preset display format; when the format of the content file belongs to the blacklist format in the preset display format, Determining that the display attribute of the content display file is a blacklist; when the format of the content file belongs to the graylist format in the preset display format, determining that the display attribute of the content display file is a graylist; when the format of the content file belongs to the preset display format When the whitelist format is used, it is determined that the display attribute of the content display file is a whitelist.
- the determining module 302 is configured to determine that the format of the content file is ".nomedia" or that the directory name of the content file has ".” in front of the directory name, and the display attribute of the content display file is determined to be a blacklist.
- the determining module 302 is configured to obtain the number of times the recorded content file is passively hidden, and the number of passive hidden times is the number of times the user selects the hidden content file; the number of passive hidden times is greater than the first preset.
- the display attribute of the content file is determined to be a blacklist; the number of passive hidden times is less than the first preset parameter.
- the threshold value is greater than the second preset reference threshold, the display attribute of the content file is determined to be a gray list.
- the passive hidden number is less than the second preset reference threshold, the display attribute of the content file is determined to be a white list.
- the determining module 302 is configured to: when detecting that the display attribute tag of the content file is blacklisted by the user, determine that the display attribute of the content file is a blacklist; When the display attribute tag of the file is grayed out by the user, it is determined that the display attribute of the content file is graylisted; when the display attribute tag of the content file is detected as being whitelisted by the user, it is determined that the display attribute of the content file is a whitelist.
- the device further comprises:
- Change module 304 used to change the display attribute tag of the content file through the application.
- the processing module 303 is configured to: when the application is a library, hide a group of pictures whose display attribute is a blacklist or a gray list, and display a group of pictures whose display attribute is a white list; when the application is a music player, the display attribute is hidden. For a blacklisted or graylisted music file, a music file showing the whitelist is displayed.
- the file display method and apparatus provided by the embodiments of the present invention display, according to the attributes of the content file, hide the blacklist and graylisted content, thereby improving the application startup speed and improving the user experience, and thus Improve the efficiency of users looking for demand information.
- the embodiments of the present invention can be implemented by hardware, or can be implemented by means of software plus a necessary general hardware platform.
- the technical solution of the embodiment of the present invention may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.).
- a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
- modules in the apparatus in the embodiments may be distributed in the apparatus of the embodiment according to the description of the embodiments, or may be correspondingly changed in one or more apparatuses different from the embodiment.
- the modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明实施例公开了一种文件显示方法及装置,用于打开应用程序时,逐个获取存储应用程序对应的内容文件的特征信息;根据特征信息,确定每个内容文件的显示属性;隐藏显示属性为黑名单或者灰名单的内容文件,显示显示属性为白名单的内容文件。本发明实施例提供的方法及装置根据内容文件的属性来显示,隐藏黑名单、灰名单的内容,由此5 提高应用程序启动速度,并提高用户使用体验,进而也提高了用户查找需求信息的效率。
Description
一种文件显示方法及装置 技术领域
本发明涉及通讯技术领域, 尤其涉及一种文件显示方法及装置。 背景技术
在通讯技术迅速发展的今天, 手机已经成为绝大多数人每天工作和生活的必需品。 与 此同时, 手机等移动设备安装的应用越来越多, 各个应用存储的各种图片也越来越多。 这 样, 在移动设备的图片浏览软件中, 会看到很多应用自带或缓存的图片, 给用户浏览图片 带来不便, 而且不便于快速查找所需图片。 发明内容
本发明实施例提供了一种文件显示方法及装置, 用以根据内容文件的属性来显示, 隐 藏黑名单、 灰名单的内容, 由此提高应用程序启动速度, 并提高用户使用体验, 进而也提 高了用户查找需求信息的效率。
本发明实施例提供的一种文件显示方法, 包括:
打开应用程序时, 逐个获取存储所述应用程序对应的内容文件的特征信息; 根据所述特征信息, 确定每个内容文件的显示属性;
隐藏所述显示属性为黑名单或者灰名单的内容文件,显示所述显示属性为白名单的内 容文件。
较佳的, 特征信息为所述内容文件的格式时, 根据所述特征信息, 确定每个内容文件 的显示属性, 包括:
将所述内容文件的格式与预置显示格式进行比对;
当所述内容文件的格式属于预置显示格式中的黑名单格式时,确定所述内容显示文件 的显示属性为黑名单;
当所述内容文件的格式属于预置显示格式中的灰名单格式时,确定所述内容显示文件 的显示属性为灰名单;
当所述内容文件的格式属于预置显示格式中的白名单格式时,确定所述内容显示文件 的显示属性为白名单。
较佳的, 当所述内容文件的格式属于预置显示格式中的黑名单格式时, 确定所述内容 显示文件的显示属性为黑名单, 包括:
判断所述内容文件的格式为 " .nomedia" 、 或者所述内容文件所在的目录名字前面具 有 ". " 时, 确定所述内容显示文件的显示属性为黑名单。
较佳的, 特征信息为所述内容文件的被动隐藏次数时, 根据所述特征信息, 确定每个 内容文件的显示属性, 包括:
获取记录的所述内容文件被动隐藏次数,所述被动隐藏次数为用户选择隐藏所述内容 文件的次数;
所述被动隐藏次数大于第一预置参考阈值时, 确定所述内容文件的显示属性为黑名 单;
所述被动隐藏次数小于第一预置参考阈值且大于第二预置参考阈值时,确定所述内容 文件的显示属性为灰名单;
所述被动隐藏次数小于第二预置参考阈值时, 确定所述内容文件的显示属性为白名 单。
较佳的, 所述特征信息为所述内容文件的显示属性标记时, 根据所述特征信息, 确定 每个内容文件的显示属性, 包括:
检测到所述内容文件的显示属性标记被用户置为黑名单时,确定所述内容文件的显示 属性为黑名单;
检测到所述内容文件的显示属性标记被用户置为灰名单时,确定所述内容文件的显示 属性为灰名单;
检测到所述内容文件的显示属性标记被用户置为白名单时,确定所述内容文件的显示 属性为白名单。
较佳的, 通过所述应用程序更改所述内容文件的显示属性标记。
较佳的, 在终端本地生成所述内容文件的显示属性后, 将生成的所述内容文件的显示 属性上传到服务器; 在服务器生成所述内容文件的显示属性后, 将生成的所述内容文件的 显示属性下发到终端。
较佳的, 隐藏所述显示属性为黑名单或者灰名单的内容文件, 显示所述显示属性为白 名单的内容文件, 包括:
所述应用程序为图库时, 隐藏显示属性为黑名单或者灰名单的图片组, 显示所述显示 属性为白名单的图片组;
所述应用程序为音乐播放器时, 隐藏显示属性为黑名单或者灰名单的音乐文件, 显示 所述显示属性为白名单的音乐文件。
本发明实施例提供的一种文件显示装置, 包括:
获取模块, 用于打开应用程序时, 逐个获取存储所述应用程序对应的内容文件的特征 信息;
确定模块, 用于根据所述特征信息, 确定每个内容文件的显示属性;
处理模块, 用于隐藏所述显示属性为黑名单或者灰名单的内容文件, 显示所述显示属 性为白名单的内容文件。
较佳的, 所述特征信息为所述内容文件的格式时, 所述确定模块, 用于将所述内容文 件的格式与预置显示格式进行比对; 当所述内容文件的格式属于预置显示格式中的黑名单 格式时, 确定所述内容显示文件的显示属性为黑名单; 当所述内容文件的格式属于预置显 示格式中的灰名单格式时, 确定所述内容显示文件的显示属性为灰名单; 当所述内容文件 的格式属于预置显示格式中的白名单格式时, 确定所述内容显示文件的显示属性为白名 单。
较佳的, 所述确定模块, 用于判断所述内容文件的格式为 " .nomedia" 、 或者所述内 容文件所在的目录名字前面具有 ". "时, 确定所述内容显示文件的显示属性为黑名单。
较佳的, 所述特征信息为所述内容文件的被动隐藏次数时, 所述确定模块, 用于获取 记录的所述内容文件被动隐藏次数,所述被动隐藏次数为用户选择隐藏所述内容文件的次 数;所述被动隐藏次数大于第一预置参考阈值时,确定所述内容文件的显示属性为黑名单; 所述被动隐藏次数小于第一预置参考阈值且大于第二预置参考阈值时,确定所述内容文件 的显示属性为灰名单; 所述被动隐藏次数小于第二预置参考阈值时, 确定所述内容文件的 显示属性为白名单。
较佳的, 当所述特征信息为所述内容文件的显示属性标记时, 所述确定模块, 用于检 测到所述内容文件的显示属性标记被用户置为黑名单时,确定所述内容文件的显示属性为 黑名单; 检测到所述内容文件的显示属性标记被用户置为灰名单时, 确定所述内容文件的 显示属性为灰名单; 检测到所述内容文件的显示属性标记被用户置为白名单时, 确定所述 内容文件的显示属性为白名单。
较佳的, 所述装置还包括:
更改模块, 用于通过所述应用程序更改所述内容文件的显示属性标记。
较佳的, 所述处理模块, 用于所述应用程序为图库时, 隐藏显示属性为黑名单或者灰
名单的图片组, 显示所述显示属性为白名单的图片组; 所述应用程序为音乐播放器时, 隐 藏显示属性为黑名单或者灰名单的音乐文件, 显示所述显示属性为白名单的音乐文件。
本发明实施例的有益效果包括:
本发明实施例提供的文件显示方法及装置, 用于打开应用程序时, 逐个获取存储应用 程序对应的内容文件的特征信息; 根据特征信息, 确定每个内容文件的显示属性; 隐藏显 示属性为黑名单或者灰名单的内容文件, 显示显示属性为白名单的内容文件。本发明实施 例提供的方法及装置根据内容文件的属性来显示, 隐藏黑名单、 灰名单的内容, 由此提高 应用程序启动速度, 并提高用户使用体验, 进而也提高了用户查找需求信息的效率。 附图说明
图 1为本发明实施例提供的文件显示方法的流程图;
图 2为本发明另一实施例提供的文件显示方法的流程图;
图 3为本发明实施例中文件显示装置虚拟结构示意图。 具体实施方式
下面结合附图,对本发明实施例提供的文件显示方法及装置的实施方式进行详细地说 明。
本发明实施例提供的文件显示方法, 如图 1所示, 包括以下步骤:
步骤 101、 打开应用程序时, 逐个获取存储应用程序对应的内容文件的特征信息; 步骤 102、 根据特征信息, 确定每个内容文件的显示属性;
步骤 103、 隐藏显示属性为黑名单或者灰名单的内容文件, 显示显示属性为白名单的 内容文件。
在手机等智能终端上打开某一应用程序时,需要加载该应用程序对应的启动文件、并获 取应用程序对应的内容文件, 将内容文件中存储的内容进行展示等操作。 例如, 打开手机 终端上的图库时, 会出现多个存储路径不同的内容文件如摄像头拍摄的相片、微博下载的 图片、 米聊下载的图片等。 其中, 有些内容文件是用户不需要查看的, 显示出来这些内容 文件, 不但占用处理器资源, 而且增加了查找特定图片的时间。 对此, 可以通过各种途径 为内容文件标记特征信息, 通过该特征信息来表示当前内容文件的显示属性。
其中, 黑名单: 由安卓 android的隐藏机制而来, 凡是在目录中有. nomedia"文件或者 目录名字前面加 " ." 的目录为强制隐藏目录, 从媒体库过滤不扫描。
灰名单: 这个名单中的内容文件所在的目录及子目录都默认设为隐藏目录, 默认不显 示, 但可以通过更改图库设置显示。
白名单: 这个名单中的目录设为收藏目录, 默认靠前显示或加亮显示。
其中, 一般黑名单的设定为系统默认, 不可更改,用户可以手动设置灰名单、 白名单, 即把某些图册设为隐藏图册, 把某些图册设为收藏图册。 较佳的, 智能终端可以上传用户 设为收藏和隐藏图册的路径到服务器侧,在服务器做聚合统计得到内容文件被设置为收藏 的次数最多的前 10的归属到白名单; 设为隐藏次数多的前 10的归属到灰名单。
较佳的, 终端可以定时向服务器获取最新灰白名单列表, 将其对应的路径设为默认收 藏或者隐藏图册。但是,最好其能改变用户手动调整过的图册属性,避免和用户设置冲突。
较佳地, 在一个实施中, 特征信息为内容文件的格式时, 根据特征信息, 确定每个内 容文件的显示属性, 包括: 将内容文件的格式与预置显示格式进行比对; 当内容文件的格 式属于预置显示格式中的黑名单格式时, 确定内容显示文件的显示属性为黑名单; 当内容 文件的格式属于预置显示格式中的灰名单格式时, 确定内容显示文件的显示属性为灰名 单; 当内容文件的格式属于预置显示格式中的白名单格式时, 确定内容显示文件的显示属 性为白名单。 例如, 判断内容文件的格式为 " .nomedia" 、 或者内容文件所在的目录名字 前面具有 ". "时, 确定内容显示文件的显示属性为黑名单。
较佳地, 在一个实施中, 特征信息为内容文件的被动隐藏次数时, 根据特征信息, 确 定每个内容文件的显示属性, 包括: 获取记录的内容文件被动隐藏次数, 被动隐藏次数为 用户选择隐藏所述内容文件的次数; 被动隐藏次数大于第一预置参考阈值时, 确定内容文 件的显示属性为黑名单; 被动隐藏次数小于第一预置参考阈值且大于第二预置参考阈值 时, 确定内容文件的显示属性为灰名单; 被动隐藏次数小于第二预置参考阈值时, 确定内 容文件的显示属性为白名单。
较佳地, 在一个实施中, 当特征信息为内容文件的显示属性标记时, 根据特征信息, 确定每个内容文件的显示属性, 包括: 检测到内容文件的显示属性标记被用户置为黑名单 时, 确定内容文件的显示属性为黑名单; 检测到内容文件的显示属性标记被用户置为灰名 单时, 确定内容文件的显示属性为灰名单; 检测到内容文件的显示属性标记被用户置为白 名单时, 确定内容文件的显示属性为白名单。 较佳的, 通过应用程序更改内容文件的显示 属性标记。
较佳地, 在一个实施中, 在终端本地生成内容文件的显示属性后, 将生成的内容文件 的显示属性上传到服务器; 在服务器生成内容文件的显示属性后, 将生成的内容文件的显
示属性下发到终端。
较佳地, 在一个实施中, 隐藏显示属性为黑名单或者灰名单的内容文件, 显示显示属 性为白名单的内容文件, 包括: 应用程序为图库时, 隐藏显示属性为黑名单或者灰名单的 图片组, 显示显示属性为白名单的图片组; 所述应用程序为音乐播放器时, 隐藏显示属性 为黑名单或者灰名单的音乐文件, 显示显示属性为白名单的音乐文件。
通过上述描述可以看出, 本发明实施例提供的方法, 根据内容文件的属性来显示, 隐 藏黑名单、 灰名单的内容, 由此提高应用程序启动速度, 并提高用户使用体验, 进而也提 高了用户查找需求信息的效率。
下面以图库软件为例,对本发明提供的方法进行详细描述,如图 2所示包括以下步骤: 步骤 201、 打开手机图库时, 逐个获取存储图库对应的内容文件的特征信息; 例如, 手机图册、 上传到云端服务器的图片文件、 使用某些客户端软件缓存的图片等。 该特征信 息可以为内容文件的格式、 内容文件的被动隐藏次数、 内容文件的显示属性标记等。
步骤 202、 根据特征信息, 确定每个具有图片的内容文件的显示属性; 预先确定特征 信息与显示属性的对应关系, 如特征信息满足条件 a时显示属性为白名单、 特征信息满足 条件 b时显示属性为黑名单、 特征信息满足条件 c时显示属性为灰名单。 这样, 获取到特 征信息后, 即可确定出该内容文件的显示属性。
此处列举几个简单例子, 用以说明本步骤:
举例 1 : 特征信息为内容文件的格式, 将获得的内容文件的格式与预置显示格式进行 比对; 假设黑名单格式为 A、 灰名单格式为 B、 白名单格式为 C; 若内容文件的格式为 A, 则确定内容显示文件的显示属性为黑名单; 若内容文件的格式为 B, 则确定内容显示文件 的显示属性为灰名单;若内容文件的格式为 C,则确定内容显示文件的显示属性为白名单。
举例 2: 特征信息为内容文件的被动隐藏次数, 假设第一预置参考阈值为 15, 第二预 置参考阈值为 10;则获取记录的内容文件被动隐藏次数,即用户选择隐藏内容文件的次数; 被动隐藏次数大于第一预置参考阈值 15时, 确定内容文件的显示属性为黑名单; 被动隐 藏次数小于第一预置参考阈值 15且大于第二预置参考阈值 10时,确定内容文件的显示属 性为灰名单; 被动隐藏次数小于第二预置参考阈值 10时, 确定内容文件的显示属性为白 名单。
举例 3:特征信息为内容文件的显示属性标记,也就是用户可以对内容文件进行标记, 该标记可以为在内容文件中的属性中做的标记, 也可以为其他形式的标记。检测到内容文 件被用户置为黑名单时, 确定内容文件的显示属性为黑名单; 检测到内容文件被用户置为
灰名单时, 确定内容文件的显示属性为灰名单; 检测到内容文件被用户置为白名单时, 确 定内容文件的显示属性为白名单。
步骤 203、 在图库中隐藏显示属性为黑名单或者灰名单的内容文件, 显示显示属性为 白名单的内容文件。
在手机上播放音乐的场景下, 也可以按照上述过程, 将部分音乐文件隐藏, 不参与播 放。
其中, 在终端本地生成内容文件的显示属性后, 可以将生成的内容文件的显示属性上 传到服务器; 在服务器生成内容文件的显示属性后, 可以将生成的内容文件的显示属性下 发到终端。
通过上述描述可以看出, 本发明实施例提供的方法, 根据内容文件的属性来显示, 隐 藏黑名单、 灰名单的内容, 由此提高应用程序启动速度, 并提高用户使用体验, 进而也提 高了用户查找需求信息的效率。
基于同一发明构思, 本发明实施例还提供了一种文件显示装置, 由于该装置解决问题 的原理与前述方法相似, 因此该装置的实施可以参见方法的实施, 重复之处不再赘述。
本发明实施例提供的一种文件显示装置, 如图 3所示, 包括:
获取模块 301, 用于打开应用程序时, 逐个获取存储应用程序对应的内容文件的特征 信息;
确定模块 302, 用于根据特征信息, 确定每个内容文件的显示属性;
处理模块 303, 用于隐藏显示属性为黑名单或者灰名单的内容文件, 显示显示属性为 白名单的内容文件。
较佳的, 特征信息为内容文件的格式时, 确定模块 302, 用于将内容文件的格式与预 置显示格式进行比对; 当内容文件的格式属于预置显示格式中的黑名单格式时, 确定内容 显示文件的显示属性为黑名单; 当内容文件的格式属于预置显示格式中的灰名单格式时, 确定内容显示文件的显示属性为灰名单; 当内容文件的格式属于预置显示格式中的白名单 格式时, 确定内容显示文件的显示属性为白名单。
较佳的, 确定模块 302, 用于判断内容文件的格式为 " .nomedia" 、 或者内容文件所 在的目录名字前面具有 ". "时, 确定内容显示文件的显示属性为黑名单。
较佳的, 特征信息为内容文件的被动隐藏次数时, 确定模块 302, 用于获取记录的内 容文件被动隐藏次数, 被动隐藏次数为用户选择隐藏内容文件的次数; 被动隐藏次数大于 第一预置参考阈值时, 确定内容文件的显示属性为黑名单; 被动隐藏次数小于第一预置参
考阈值且大于第二预置参考阈值时, 确定内容文件的显示属性为灰名单; 被动隐藏次数小 于第二预置参考阈值时, 确定内容文件的显示属性为白名单。
较佳的, 特征信息为内容文件的显示属性标记时, 确定模块 302, 用于检测到内容文 件的显示属性标记被用户置为黑名单时, 确定内容文件的显示属性为黑名单; 检测到内容 文件的显示属性标记被用户置为灰名单时, 确定内容文件的显示属性为灰名单; 检测到内 容文件的显示属性标记被用户置为白名单时, 确定内容文件的显示属性为白名单。
较佳的, 该装置还包括:
更改模块 304, 用于通过应用程序更改内容文件的显示属性标记。
较佳的, 处理模块 303, 用于应用程序为图库时, 隐藏显示属性为黑名单或者灰名单 的图片组, 显示显示属性为白名单的图片组; 应用程序为音乐播放器时, 隐藏显示属性为 黑名单或者灰名单的音乐文件, 显示显示属性为白名单的音乐文件。
通过上述描述可知, 本发明实施例提供的文件显示方法及装置, 根据内容文件的属性 来显示, 隐藏黑名单、灰名单的内容, 由此提高应用程序启动速度, 并提高用户使用体验, 进而也提高了用户查找需求信息的效率。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明实施例可以 通过硬件实现, 也可以借助软件加必要的通用硬件平台的方式来实现。 基于这样的理解, 本发明实施例的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非 易失性存储介质(可以是 CD-ROM, U盘, 移动硬盘等) 中, 包括若干指令用以使得一台 计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述 的方法。
本领域技术人员可以理解附图只是一个优选实施例的示意图, 附图中的模块或流程并 不一定是实施本发明所必须的。
本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述进行分布于 实施例的装置中, 也可以进行相应变化位于不同于本实施例的一个或多个装置中。 上述实 施例的模块可以合并为一个模块, 也可以进一步拆分成多个子模块。
上述本发明实施例序号仅仅为了描述, 不代表实施例的优劣。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和 范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。
Claims
1、 一种文件显示方法, 其特征在于, 包括:
打开应用程序时, 逐个获取存储所述应用程序对应的内容文件的特征信息; 根据所述特征信息, 确定每个内容文件的显示属性;
隐藏所述显示属性为黑名单或者灰名单的内容文件,显示所述显示属性为白名单的内 容文件。
2、 根据权利要求 1所述的方法, 其特征在于, 所述特征信息为所述内容文件的格式 时, 根据所述特征信息, 确定每个内容文件的显示属性, 包括:
将所述内容文件的格式与预置显示格式进行比对;
当所述内容文件的格式属于预置显示格式中的黑名单格式时,确定所述内容显示文件 的显示属性为黑名单;
当所述内容文件的格式属于预置显示格式中的灰名单格式时,确定所述内容显示文件 的显示属性为灰名单;
当所述内容文件的格式属于预置显示格式中的白名单格式时,确定所述内容显示文件 的显示属性为白名单。
3、 根据权利要求 2所述的方法, 其特征在于, 当所述内容文件的格式属于预置显示 格式中的黑名单格式时, 确定所述内容显示文件的显示属性为黑名单, 包括:
判断所述内容文件的格式为 " .nomedia"、 或者所述内容文件所在的目录名字前面具 有 ". " 时, 确定所述内容显示文件的显示属性为黑名单。
4、 根据权利要求 1所述的方法, 其特征在于, 所述特征信息为所述内容文件的被动 隐藏次数时, 根据所述特征信息, 确定每个内容文件的显示属性, 包括:
获取记录的所述内容文件被动隐藏次数,所述被动隐藏次数为用户选择隐藏所述内容 文件的次数;
所述被动隐藏次数大于第一预置参考阈值时, 确定所述内容文件的显示属性为黑名 单;
所述被动隐藏次数小于第一预置参考阈值且大于第二预置参考阈值时,确定所述内容 文件的显示属性为灰名单;
所述被动隐藏次数小于第二预置参考阈值时, 确定所述内容文件的显示属性为白名 单。
5、 根据权利要求 1所述的方法, 其特征在于, 所述特征信息为所述内容文件的显示
属性标记时, 根据所述特征信息, 确定每个内容文件的显示属性, 包括: 检测到所述内容文件的显示属性标记被用户置为黑名单时,确定所述内容文件的显示 属性为黑名单;
检测到所述内容文件的显示属性标记被用户置为灰名单时,确定所述内容文件的显示 属性为灰名单;
检测到所述内容文件的显示属性标记被用户置为白名单时,确定所述内容文件的显示 属性为白名单。
6、 根据权利要求 5所述的方法, 其特征在于, 通过所述应用程序更改所述内容文件 的显示属性标记。
7、 根据权利要求 1所述的方法, 其特征在于, 在终端本地生成所述内容文件的显示 属性后,将生成的所述内容文件的显示属性上传到服务器;在服务器生成所述内容文件的 显示属性后, 将生成的所述内容文件的显示属性下发到终端。
8、 根据权利要求 1所述的方法, 其特征在于, 隐藏所述显示属性为黑名单或者灰名 单的内容文件, 显示所述显示属性为白名单的内容文件, 包括:
所述应用程序为图库时,隐藏显示属性为黑名单或者灰名单的图片组,显示所述显示 属性为白名单的图片组;
所述应用程序为音乐播放器时,隐藏显示属性为黑名单或者灰名单的音乐文件,显示 所述显示属性为白名单的音乐文件。
9、 一种文件显示装置, 其特征在于, 包括:
获取模块,用于打开应用程序时,逐个获取存储所述应用程序对应的内容文件的特征 信息;
确定模块, 用于根据所述特征信息, 确定每个内容文件的显示属性;
处理模块,用于隐藏所述显示属性为黑名单或者灰名单的内容文件,显示所述显示属 性为白名单的内容文件。
10、根据权利要求 9所述的装置, 其特征在于, 所述特征信息为所述内容文件的格式 时, 所述确定模块, 用于将所述内容文件的格式与预置显示格式进行比对; 当所述内容文 件的格式属于预置显示格式中的黑名单格式时,确定所述内容显示文件的显示属性为黑名 单; 当所述内容文件的格式属于预置显示格式中的灰名单格式时,确定所述内容显示文件 的显示属性为灰名单; 当所述内容文件的格式属于预置显示格式中的白名单格式时,确定 所述内容显示文件的显示属性为白名单。
11、 根据权利要求 10所述的装置, 其特征在于, 所述确定模块, 用于判断所述内容 文件的格式为 " .nomedia" 、 或者所述内容文件所在的目录名字前面具有 "." 时, 确定所 述内容显示文件的显示属性为黑名单。
12、根据权利要求 9所述的装置, 其特征在于, 所述特征信息为所述内容文件的被动 隐藏次数时, 所述确定模块, 用于获取记录的所述内容文件被动隐藏次数, 所述被动隐藏 次数为用户选择隐藏所述内容文件的次数; 所述被动隐藏次数大于第一预置参考阈值时, 确定所述内容文件的显示属性为黑名单;所述被动隐藏次数小于第一预置参考阈值且大于 第二预置参考阈值时,确定所述内容文件的显示属性为灰名单;所述被动隐藏次数小于第 二预置参考阈值时, 确定所述内容文件的显示属性为白名单。
13、根据权利要求 9所述的装置, 其特征在于, 当所述特征信息为所述内容文件的显 示属性标记时,所述确定模块,用于检测到所述内容文件的显示属性标记被用户置为黑名 单时,确定所述内容文件的显示属性为黑名单;检测到所述内容文件的显示属性标记被用 户置为灰名单时,确定所述内容文件的显示属性为灰名单;检测到所述内容文件的显示属 性标记被用户置为白名单时, 确定所述内容文件的显示属性为白名单。
14、 根据权利要求 13所述的装置, 其特征在于, 所述装置还包括:
更改模块, 用于通过所述应用程序更改所述内容文件的显示属性标记。
15、根据权利要求 9所述的装置, 其特征在于, 所述处理模块, 用于所述应用程序为 图库时,隐藏显示属性为黑名单或者灰名单的图片组,显示所述显示属性为白名单的图片 组; 所述应用程序为音乐播放器时, 隐藏显示属性为黑名单或者灰名单的音乐文件, 显示 所述显示属性为白名单的音乐文件。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US14/183,119 US20140244697A1 (en) | 2013-02-22 | 2014-02-18 | Method and device for displaying files |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310057165.8A CN103136348B (zh) | 2013-02-22 | 2013-02-22 | 一种文件显示方法及装置 |
CN201310057165.8 | 2013-02-22 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US14/183,119 Continuation US20140244697A1 (en) | 2013-02-22 | 2014-02-18 | Method and device for displaying files |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014127624A1 true WO2014127624A1 (zh) | 2014-08-28 |
Family
ID=48496174
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2013/083452 WO2014127624A1 (zh) | 2013-02-22 | 2013-09-13 | 一种文件显示方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103136348B (zh) |
WO (1) | WO2014127624A1 (zh) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103136348B (zh) * | 2013-02-22 | 2018-09-04 | 小米科技有限责任公司 | 一种文件显示方法及装置 |
CN103324717A (zh) * | 2013-06-26 | 2013-09-25 | 上海斐讯数据通信技术有限公司 | 一种文件管理方法及移动终端 |
CN104679399B (zh) * | 2013-12-02 | 2018-06-01 | 联想(北京)有限公司 | 一种信息处理的方法和电子设备 |
CN104407772B (zh) * | 2014-11-13 | 2018-03-02 | 广东欧珀移动通信有限公司 | 一种显隐性切换控制方法及终端 |
CN106325844B (zh) * | 2015-06-30 | 2022-04-22 | 联想(北京)有限公司 | 一种信息处理方法及电子设备 |
CN105915501A (zh) * | 2015-12-25 | 2016-08-31 | 乐视致新电子科技(天津)有限公司 | 一种隐藏相册文件夹的方法、服务器和客户端 |
CN106933978B (zh) * | 2017-02-16 | 2020-11-13 | 努比亚技术有限公司 | 一种文件显示方法及装置 |
CN106909855B (zh) * | 2017-03-24 | 2021-10-29 | 腾讯科技(深圳)有限公司 | 文件隐藏方法及装置 |
CN108491473A (zh) * | 2018-03-08 | 2018-09-04 | 北京金山安全软件有限公司 | 一种音频文件的播放方法、装置、电子设备及介质 |
CN109597542A (zh) | 2018-10-08 | 2019-04-09 | 华为技术有限公司 | 一种相册展示方法、电子设备及存储介质 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102163238A (zh) * | 2011-05-09 | 2011-08-24 | 奇智软件(北京)有限公司 | 一种基于类型的文件管理方法及系统 |
CN102722563A (zh) * | 2012-05-31 | 2012-10-10 | 优视科技有限公司 | 页面显示方法及装置 |
CN103136348A (zh) * | 2013-02-22 | 2013-06-05 | 北京小米科技有限责任公司 | 一种文件显示方法及装置 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101661784A (zh) * | 2001-11-29 | 2010-03-03 | 夏普株式会社 | 数据再生方法 |
US8346587B2 (en) * | 2003-06-30 | 2013-01-01 | Microsoft Corporation | Models and methods for reducing visual complexity and search effort via ideal information abstraction, hiding, and sequencing |
US8359659B2 (en) * | 2005-06-24 | 2013-01-22 | Creative Technology Ltd | Method and apparatus for protecting private information on a user apparatus |
-
2013
- 2013-02-22 CN CN201310057165.8A patent/CN103136348B/zh active Active
- 2013-09-13 WO PCT/CN2013/083452 patent/WO2014127624A1/zh active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102163238A (zh) * | 2011-05-09 | 2011-08-24 | 奇智软件(北京)有限公司 | 一种基于类型的文件管理方法及系统 |
CN102722563A (zh) * | 2012-05-31 | 2012-10-10 | 优视科技有限公司 | 页面显示方法及装置 |
CN103136348A (zh) * | 2013-02-22 | 2013-06-05 | 北京小米科技有限责任公司 | 一种文件显示方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN103136348A (zh) | 2013-06-05 |
CN103136348B (zh) | 2018-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2014127624A1 (zh) | 一种文件显示方法及装置 | |
US10846324B2 (en) | Device, method, and user interface for managing and interacting with media content | |
CA2628946C (en) | Methods for characterizing content item groups | |
KR101526837B1 (ko) | 클라이언트 디바이스들 간에 데이터를 교환하기 위한 방법, 시스템 및 장치 | |
WO2017107672A1 (zh) | 一种信息处理方法和装置、一种用于信息处理的装置 | |
US20150026209A1 (en) | Method And Terminal For Associating Information | |
EP3528199B1 (en) | Method and apparatus for collecting content | |
WO2015043512A1 (zh) | 一种图片管理方法和装置 | |
EP3005055B1 (en) | Apparatus and method for representing and manipulating metadata | |
EP3090431A1 (en) | Audio based on captured image data | |
US11430211B1 (en) | Method for creating and displaying social media content associated with real-world objects or phenomena using augmented reality | |
WO2015139506A1 (zh) | 基于wifi用户界面进行应用操作的方法及设备 | |
WO2015070581A1 (zh) | 一种文件保存方法、装置及移动终端 | |
US8943020B2 (en) | Techniques for intelligent media show across multiple devices | |
CN106407358B (zh) | 一种图像搜索方法、装置及移动终端 | |
WO2015196996A1 (zh) | 一种照片存储方法及装置 | |
WO2015176202A1 (zh) | 一种多媒体显示的方法、装置和设备 | |
US20160205183A1 (en) | Method and aparatus for backing up data and electronic device | |
CN104916298A (zh) | 编解码方法、编解码装置、电子设备及有声图片生成方法 | |
KR20110087587A (ko) | 영상 검색 방법 및 장치 | |
US9600478B2 (en) | Display control apparatus, display control method, and program | |
WO2016131273A1 (zh) | 联系人信息处理方法、装置及移动终端 | |
WO2017076027A1 (zh) | 一种壁纸处理方法及装置 | |
US20140244697A1 (en) | Method and device for displaying files | |
CN105204718B (zh) | 一种信息处理方法及电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13875487 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 13875487 Country of ref document: EP Kind code of ref document: A1 |