摘要
智能手机、带存储介质的嵌入式设备,一般会存储大量的图片、音乐、视频等多媒体文件。只有少部分媒体播放器带有文件的搜索和管理功能,但是功能有限,操作也不统一。首先对磁盘文件目录作递归扫描,根据文件名后缀作过滤和分类,用嵌入式数据库sqlite3来存储扫描结果;然后介绍了分类查询、文件名汉字拼音首字母查询、即输即查的快速模糊查询技术,还特别对多分区和多介质的情况作了处理,支持多介质的统一查询。此方法可用来轻易构建软件,给智能手机或其它嵌入式设备用户一种全方位的媒体库管理体验。
In smart phone or embedded device, there are lots of multi-media files, such as pictures, music and videos. Only a few players have the ability to search and manage those files, with limited functionalities and lack of unified operation.The method this paper proposed is, to scan the files and directories recursively first, filter and categorize these files according to their extensions, and store the results with an embedded database sqlite3. Then this paper introduces lookuptechniques including sorting, initial letter lookup for pinyin of Chinese file names, and rapid indistinct search which is to display result when the keyword is being input. It's easy to build a application providing all perspective experiences to users for manipulating their multi-media library.
出处
《软件导刊》
2013年第3期27-30,共4页
Software Guide
基金
国家自然科学基金资助项目(61173049)
湖北省自然科学基金资助项目(2012FFB07401)
关键词
嵌入式设备
存储介质
模糊查询
媒体库
Storage Media
File Scanning
Initial Letter
Indistinct Lookup
Media Library
Picture
Music
Video