CN109062711A - Based on the quick scanning system of Android multimedia - Google Patents

Based on the quick scanning system of Android multimedia Download PDF

Info

Publication number
CN109062711A
CN109062711A CN201810800620.1A CN201810800620A CN109062711A CN 109062711 A CN109062711 A CN 109062711A CN 201810800620 A CN201810800620 A CN 201810800620A CN 109062711 A CN109062711 A CN 109062711A
Authority
CN
China
Prior art keywords
media
file
external equipment
android
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810800620.1A
Other languages
Chinese (zh)
Inventor
黄棚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beidou Star Tong (chongqing) Automotive Electronics Co Ltd
Original Assignee
Beidou Star Tong (chongqing) Automotive Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beidou Star Tong (chongqing) Automotive Electronics Co Ltd filed Critical Beidou Star Tong (chongqing) Automotive Electronics Co Ltd
Priority to CN201810800620.1A priority Critical patent/CN109062711A/en
Publication of CN109062711A publication Critical patent/CN109062711A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/545Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The quick scanning system of Android multimedia is based on the invention discloses one kind, including android system includes that Media Survey unit for the file in external equipment to be scanned obtains the address of the media file in external equipment in android system;Media storage unit will be in the address deposit first database of media file for interacting with Media Survey unit;Application layer receives the broadcast of the sending of external equipment for monitoring external equipment.It is provided by the invention a kind of based on the quick scanning system of Android multimedia, the equipment of outside insertion can be scanned by the way that the application layer in android system is autonomous, effective, quickly the file in external equipment can be scanned.

Description

Based on the quick scanning system of Android multimedia
Technical field
The present invention relates to Android multimedia scanning system technical fields, and in particular to one kind is based on Android multimedia Quick scanning system.
Background technique
There is a Media Survey library in the inside of android system, when the system board and external equipment of android system connect After connecing, the Media Survey library of android system will carry out the scanning of a whole to external equipment, after system scans again By the All Files in external equipment in deposit system library, when needing extraction document, then the file of needs is transferred.But It is that all files of external equipment often have some unrelated files, if android system is allowed to carry out external equipment Scanning, will take a substantial amount of time, and make the speed decline of android system scanning, processing file.
Therefore, those skilled in the art is dedicated to studying a kind of based on the quick scanning system of Android multimedia, can be with It, can be effective, quickly external by being scanned to the equipment of outside insertion independently of the application layer in android system File in portion's equipment is scanned.
Summary of the invention
For the defects in the prior art, the present invention provides a kind of based on the quick scanning system of Android multimedia, can be with It, can be effective, quickly external by being scanned to the equipment of outside insertion independently of the application layer in android system File in portion's equipment is scanned.
To achieve the above object, the present invention provides one kind to be based on the quick scanning system of Android multimedia, including Android system includes: in android system
Media Survey unit obtains the ground of the media file in external equipment for the file in external equipment to be scanned Location.
The address of media file is stored in the first data for interacting with Media Survey unit by media storage unit In library.
Application layer receives the broadcast of the sending of external equipment for monitoring external equipment.
Preferably, the address of the media file in obtained external equipment is passed through JNI local interface by Media Survey unit It is sent in bottom media decoding library, bottom media decoding library is used to for the address information of file being decoded, and will be after decoding File address be transmitted in media storage unit, media storage unit will decoded file address be stored in database in.
Preferably, the address of the media file at least one, application layer by the address of media file pass through array carry out Storage.
Preferably, the address of media file is also transmitted directly to carry out single text in Media Survey unit by the application layer Part parsing scanning.
Preferably, after the completion of the Media Survey unit scan, application layer also issues broadcast notice media storage unit control All files in android system are scanned by Media Survey unit processed.
Preferably, the quick scanning system of Android multimedia that is based on further includes detecting to external equipment, described External equipment detection detects external equipment including the use of external equipment driving and media framework layer.
Preferably, the Media Survey unit is also used to the file in the external equipment by scanning and is filtered, and is obtained Multimedia file after filter obtains the address of multimedia file.
The beneficial effects of the present invention are: one kind provided by the invention is based on the quick scanning system of Android multimedia, In android system, external file is scanned by Media Survey unit, obtains the ground of the media file in external equipment Location;It, will be in the address deposit first database of media file by media storage unit;Monitoring external equipment by application layer is No insertion issues broadcast after external equipment insertion.One kind provided by the invention is quickly scanned based on Android multimedia is System can be scanned the equipment of outside insertion by the way that the application layer in android system is autonomous, can be effective, fast Speed is scanned the file in external equipment.
Detailed description of the invention
Fig. 1 is the structural block diagram of the embodiment of the invention.
Specific embodiment
Present invention will be further explained below with reference to the attached drawings and examples:
As shown in Figure 1, the present invention, which provides one kind, is based on the quick scanning system of Android multimedia, including android system, Include: in android system
Media Survey unit obtains the ground of the media file in external equipment for the file in external equipment to be scanned Location.It should be understood that media storage unit refers to a kind of virtual Media Survey unit in android system (MediaScanner), it after the file in external equipment is scanned by Media Survey unit (MediaScanner), sweeps at this time The file retouched is all files of external equipment, obtains the ground of filtered individual media file by traversing All Files Location.All files are scanned into resolution file relative to existing, scanning speed can be improved, the data that user needs are shown Show.
The address of media file is stored in the first data for interacting with Media Survey unit by media storage unit In library.It should be understood that the interaction carried out between media storage unit and Media Survey unit is frequent, media storage list Interaction between member and Media Survey unit can be carried out by broadcast, and media storage unit refers to MediaProvider data Library, MediaProvider database will call MediaScanner database to carry out next step after receiving the broadcast of scanning Scanning.First database refers to the external database in android system.
Application layer receives the broadcast of the sending of external equipment for monitoring external equipment.Application layer refers to Android Application layer (Application) in system, application layer (Application) be used for be responsible for external equipment Mount and UMount is monitored.When being monitored using application layer, is conducive to control Media Survey unit and quickly media file is scanned, Be conducive to media file to be quickly scanned.
The address of media file in obtained external equipment is sent to bottom by JNI local interface by Media Survey unit In layer media decoding library, bottom media decoding library is used to for the address information of file being decoded, and by decoded file Location is transmitted in media storage unit, and decoded file address is stored in database by media storage unit.File is scanning Broadcast is completed and can issue after the completion of decoding, notice application layer carries out relevant operation.It should be understood that file Two steps are scanned and be decoded as, time of the file the time it takes much smaller than one file of decoding is scanned.
The address of media file at least one, application layer stores the address of media file by array.It should manage Solution, the address for the media file that application layer obtains are sequentially stored into array, which records each media text for storing The address of part forms address list, called convenient for the address of media file.
The address of media file is also transmitted directly to carry out single file parsing scanning in Media Survey unit by application layer. Application layer can take the All Files stored in external equipment, customized mistake by program filepath.listFiles () File format is filtered, desired file path is obtained by filtration to traverse, can be inserted into the single file of filtering when filtering Database.Compared with the existing technology, external equipment is carried out whole scannings, and meeting resolution file data by system, and can be corresponding File information storage to corresponding database in this process can save a large amount of time.It should be understood that application layer Filtering can only be previously obtained the path of corresponding document, will not relate to the operation of database during obtaining path, and It is that temporary file is stored in array.
After the completion of Media Survey unit scan, application layer also issues broadcast notice media storage unit control Media Survey list All files in android system are scanned by member.After the completion of Media Survey unit scan, for convenient for android system In the relevant file of other application software transfer, by application layer broadcast notice Media Survey unit scan file, thus In the case where not influencing other software application, scanning that is effective, being rapidly performed by media file.
It further include being detected to external equipment based on the quick scanning system of Android multimedia, external equipment detection packet It includes and external equipment is detected using external equipment driving and media framework layer.External equipment includes SD card and flash card, matchmaker Body ccf layer refers to framework layers in android system.
Media Survey unit is also used to the file in the external equipment by scanning and is filtered, and obtains filtered multimedia File obtains the address of multimedia file.It should be understood that filtering is to refer to determining scanning in the file of external equipment File whether be media file, the files such as media file such as music, video, picture, if not the file of corresponding format, then The address information of this document is not recorded.
A kind of Android multimedia scanning system that is based on provided by the invention is swept in android system by media It retouches unit to be scanned external file, obtains the address of the media file in external equipment;By media storage unit, by matchmaker In the address deposit first database of body file;Monitor whether external equipment is inserted by application layer, after external equipment insertion just Issue broadcast.By application layer come the scanning of control system, application layer oneself realizes an external equipment scan service, application layer Then the filtering for realizing associated media file is controlled again in single file deposit system database, such operation can save greatly The time of amount meets the needs of vehicle-mounted hot plug quickly scans.The present invention can be rapidly obtained corresponding media resource, and Without waiting for the very long scanning process of system, optimizes frequent fast insert-pull external equipment to a certain extent and read that file is slow to ask Topic.The part media framework layer (framework) logic gives application layer, and application layer can control certain scanning logic, customization It is higher to develop freedom degree, is more able to satisfy the demand of exploitation.
The preferred embodiment of the present invention has been described in detail above.It should be appreciated that those skilled in the art without It needs creative work according to the present invention can conceive and makes many modifications and variations.Therefore, all technologies in the art Personnel are available by logical analysis, reasoning, or a limited experiment on the basis of existing technology under this invention's idea Technical solution, all should be within the scope of protection determined by the claims.

Claims (7)

1. one kind is based on the quick scanning system of Android multimedia, it is characterized in that: including android system, android system In include
Media Survey unit obtains the ground of the media file in external equipment for the file in external equipment to be scanned Location;
Media storage unit will be in the address deposit first database of media file for interacting with Media Survey unit;
Application layer receives the broadcast of the sending of external equipment for monitoring external equipment.
2. the quick scanning system of Android multimedia is based on as described in claim 1, it is characterized in that: Media Survey unit will The address of the obtained media file in external equipment is sent to bottom media by JNI local interface and decodes in library, bottom matchmaker Decoded file address is transmitted to media storage unit for being decoded the address information of file by body decoding library In, decoded file address is stored in database by media storage unit.
3. the quick scanning system of Android multimedia is based on as claimed in claim 1 or 2, it is characterized in that: the media file Address at least one, application layer stores the address of media file by array.
4. the quick scanning system of Android multimedia is based on as claimed in claim 1 or 2, it is characterized in that: the application layer is also The address of media file is transmitted directly to carry out single file parsing scanning in Media Survey unit.
5. the quick scanning system of Android multimedia is based on as claimed in claim 4, it is characterized in that: the Media Survey list After the completion of member scanning, application layer also issues broadcast notice media storage unit control Media Survey unit will be in android system All files be scanned.
6. the quick scanning system of Android multimedia is based on as described in claim 1, it is characterized in that: described be based on Android The quick scanning system of multimedia further includes detecting to external equipment, and the external equipment detection is driven including the use of external equipment Dynamic and media framework layer detects external equipment.
7. the quick scanning system of Android multimedia is based on as described in claim 1, it is characterized in that: the Media Survey list Member is also used to the file in the external equipment by scanning and is filtered, and obtains filtered multimedia file, obtains multimedia text The address of part.
CN201810800620.1A 2018-07-20 2018-07-20 Based on the quick scanning system of Android multimedia Pending CN109062711A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810800620.1A CN109062711A (en) 2018-07-20 2018-07-20 Based on the quick scanning system of Android multimedia

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810800620.1A CN109062711A (en) 2018-07-20 2018-07-20 Based on the quick scanning system of Android multimedia

Publications (1)

Publication Number Publication Date
CN109062711A true CN109062711A (en) 2018-12-21

Family

ID=64817528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810800620.1A Pending CN109062711A (en) 2018-07-20 2018-07-20 Based on the quick scanning system of Android multimedia

Country Status (1)

Country Link
CN (1) CN109062711A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188211A (en) * 2019-04-25 2019-08-30 深圳市布谷鸟科技有限公司 A method of applied to the quick loading multimedia list of application of Android onboard system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289484A (en) * 2011-08-03 2011-12-21 Tcl集团股份有限公司 Method for scanning multimedia files of storage equipment based on android system
CN104077250A (en) * 2014-06-27 2014-10-01 Tcl集团股份有限公司 Connection processing method and device for intelligent terminal and storage equipment
CN106126335A (en) * 2016-06-15 2016-11-16 青岛海信电器股份有限公司 The Media Survey method of terminal unit and terminal unit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289484A (en) * 2011-08-03 2011-12-21 Tcl集团股份有限公司 Method for scanning multimedia files of storage equipment based on android system
CN104077250A (en) * 2014-06-27 2014-10-01 Tcl集团股份有限公司 Connection processing method and device for intelligent terminal and storage equipment
CN106126335A (en) * 2016-06-15 2016-11-16 青岛海信电器股份有限公司 The Media Survey method of terminal unit and terminal unit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188211A (en) * 2019-04-25 2019-08-30 深圳市布谷鸟科技有限公司 A method of applied to the quick loading multimedia list of application of Android onboard system
CN110188211B (en) * 2019-04-25 2023-06-27 深圳市布谷鸟科技有限公司 Method for rapidly loading multimedia application list in android vehicle-mounted system

Similar Documents

Publication Publication Date Title
CN106296724A (en) Determination method, system and the processing server of the trace information of a kind of target person
CN103037012B (en) File transfer system
US9176857B2 (en) Method and apparatus for managing video memory in embedded device
CN105893278A (en) System cache garbage cleaning method and device and terminal equipment
CN102332014A (en) Method and device for deleting file
CN104169913A (en) A picture display method and device and a terminal device
CN103106369A (en) File sharing method and device based on media server
CN103799997A (en) Physiological monitoring parameter recording method and system based on image recognition
CN111314646A (en) Image acquisition method, image acquisition device, terminal device and readable storage medium
CN105872797A (en) Live broadcast time shifting method and device
CN109062711A (en) Based on the quick scanning system of Android multimedia
CN106503169A (en) Image processing method and device
CN102394909B (en) Method and system for processing remote consultation service
JP2005086387A5 (en)
CN111182251A (en) Video backup method and device applied to online patrol synchronous transcoding and with hot-pluggable storage medium
CN106603653A (en) News push method and device
CN103092988A (en) Realizing method of directly managing mobile phone media resources on desktop
CN104639892B (en) Video recording system and method and apparatus for processing image in main system
CN106844211A (en) Software testing method, device and system
CN106919574A (en) A kind of method of real-time processing remote synchronization file
CN110297859A (en) The method and apparatus for handling real time data
CN109829526A (en) A kind of barcode management method, device and electronic equipment
JP2012129625A (en) Image recorder and image recording method
CN109874036B (en) Video analysis method and device, equipment and storage medium
CN112346874A (en) Abnormal volume processing method and device based on cloud platform

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181221