CN110188211B - Method for rapidly loading multimedia application list in android vehicle-mounted system - Google Patents

Method for rapidly loading multimedia application list in android vehicle-mounted system Download PDF

Info

Publication number
CN110188211B
CN110188211B CN201910338171.8A CN201910338171A CN110188211B CN 110188211 B CN110188211 B CN 110188211B CN 201910338171 A CN201910338171 A CN 201910338171A CN 110188211 B CN110188211 B CN 110188211B
Authority
CN
China
Prior art keywords
data
media
application process
list
android
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.)
Active
Application number
CN201910338171.8A
Other languages
Chinese (zh)
Other versions
CN110188211A (en
Inventor
焦见伟
王艺
卓庆峰
张雨龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Cookoo Technology Co ltd
Original Assignee
Shenzhen Cookoo Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Cookoo Technology Co ltd filed Critical Shenzhen Cookoo Technology Co ltd
Priority to CN201910338171.8A priority Critical patent/CN110188211B/en
Publication of CN110188211A publication Critical patent/CN110188211A/en
Application granted granted Critical
Publication of CN110188211B publication Critical patent/CN110188211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/432Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/438Presentation of query results
    • G06F16/4387Presentation of query results by the use of playlists
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a method for rapidly loading a multimedia application list applied to an android vehicle-mounted system. The invention improves the multiplexing rate and expandability of the multimedia application list through the data information in the user-definable database, further optimizes the data structure class of the multimedia application list, realizes the logic processing in the adapter by encapsulating the two different types of data structures of the file and the folder into the same type of data structure, and does not need to greatly modify the adapter so as to enable the loading and displaying of the multimedia application list to be faster.

Description

Method for rapidly loading multimedia application list in android vehicle-mounted system
Technical Field
The invention relates to the field of android vehicle-mounted multimedia application development, in particular to a method for rapidly loading a multimedia application list in an android vehicle-mounted system.
Background
Along with the technological change, the vehicle-mounted system is more and more paid attention to by consumers, and whether a set of vehicle-mounted system is convenient and easy to use nowadays becomes one of the judging conditions for the consumers to purchase automobiles. The android system is the first choice of most vehicle-mounted systems by virtue of the advantages of platform openness, source opening system, richness of hardware, seamless combination of application programs and the like, but the direct use of the native android system as the vehicle-mounted system can generate a plurality of defects as if the native android system needs to encapsulate data structure types of media when displaying a multimedia application list, and the data needed by users are screened out and encapsulated by conveniently calculating files under a specified directory, so that usable media data are generated and then put into a basic adapter provided by the android for adaptive display. If the data volume in the storage medium is large or the data needs to be read and written frequently, the operation time is longer, and the display of the list is directly influenced, so that the user experience is influenced. The multimedia application is a standard application of the android vehicle-mounted system, such as a music player, a video player, a gallery album and the like, the functions of the android vehicle-mounted system are more and more abundant at present, the multimedia application list is an important component of the android system, and the loading speed of the list is the most visual use feeling of a user on the android system. Therefore, in order to meet the needs of users for different experiences of the android vehicle-mounted system multimedia application list, various vehicle-mounted system manufacturers need to adjust and display all media file information, adjust and display media directory information, adjust and display two-stage media directory information, but have no universal mode to be compatible with different requirements of consumers, so that the reusability is low, and the program development period is long.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a method for rapidly loading and displaying a multimedia application list, which is applied to an android vehicle-mounted system, and a technical method capable of improving the multiplexing rate of the application list and enhancing the expandability.
The technical scheme of the invention is realized as follows:
a method for rapidly loading a multimedia application list for an android vehicle-mounted system, the method comprising the following steps:
when the insertion of the external equipment is detected, the media scanning process processes the data on the external equipment, analyzes the file simple information meeting the user-defined conditions at the highest speed, stores the file simple information into the media database, informs the media application process that the data can be acquired for display, and then continues to carry out the file deep analysis so as to quickly display the data.
Further, after receiving the notification status of the media scanning process, the media application process sends a message to the media database requesting to retrieve data.
Further, the media database retrieves the data and returns the data to the media application process, and the media application process can package the data into operable data types according to the user requirements.
Further, the packaged data is placed into An Zhuoshi adapters for further adaptive presentation or list display.
Further, when the user operates to enter a different directory, the query data interface provided by the media application process is called, data is requested from the media database, and the two steps of the method are re-executed.
Further, the data type is an operable data type packaged by combining the data structure class of the folder and the data structure class of the file.
Further, the media scanning process and the media application process work independently of each other and interact through a C/S mode.
Compared with the prior art, the method and the device have the advantages that the multiplexing rate and the expandability of the multimedia application list are improved through the data information in the user-customizable database, the data structure class of the multimedia application list is further optimized, the logic processing in the An Zhuoshi adapter is realized through the mode of packaging two different types of data structures of the file and the folder into the same type of data structure, and the An Zhuoshi adapter does not need to be greatly transformed, so that the multimedia application list is loaded and displayed more quickly.
Drawings
The invention is described in further detail below in connection with the embodiments in the drawings, but is not to be construed as limiting the invention in any way.
FIG. 1 is a schematic diagram of the present invention;
fig. 2 is a schematic diagram of a conventional multimedia application list principle;
in the figure: 1. a media scanning process; 2. a media database; 3. a media application process; 4. placing the packaged data into a An Zhuoshi adapter; 5. informing the state; 6. retrieving data; 7. and returning the retrieved data.
Detailed Description
The invention is further described below with reference to the accompanying drawings, which are not intended to limit the invention.
As shown in fig. 1, the method for rapidly loading the multimedia application list applied to the android vehicle-mounted system comprises the following steps:
step 1: when the insertion of the external equipment is detected, the media scanning process 1 processes the data on the external equipment, analyzes the file simple information meeting the user-defined conditions at the fastest speed, stores the file simple information into the media database 2, can carry out addition, deletion and correction check through mysql sentences of database query operation, informs the media application process 3 of acquiring data for display, and can display the data quickly by comparing with the media scanning strategy of the google company, the data generated by the database can be faster by querying the user-defined database, and the method of the user-defined scanning strategy is better in performance on a vehicle-mounted system, so that the data displayed by a list can be faster, and the subsequent file deep analysis can be continued, so that the data can be displayed quickly.
Step 2: after receiving the notification status 5 of the media scanning process 1, the media application process 3 sends a message to the media database 2 requesting to retrieve data 6.
Step 3: after the media database 2 retrieves the data, the retrieved data 7 is returned to the media application process 3, and the media application process 3 can package the data into an operable data type fileData according to the user requirement.
Step 4: the packaged data fileData is placed into An Zhuoshi adapter 4BaseAdapter for further adaptive presentation or list display.
Step 5: when a user operates to enter a different directory, the query data interface provided by the media application process 3 is called, data is requested from the media database 2, and the method steps in steps 3 to 4 are re-executed.
Description of principle:
1. the media scanning process 1 and the media application process 3 work independently, and perform AIDL interface protocol interaction through a C/S mode, a server exists in a system background, has no visible interface, works in the background all the time, and is responsible for processing the scanning of external equipment data and a media database management part; the client is responsible for data display and media playing, when the client is started, the client inquires the current data state of the server and requests media playing data, after the server returns the data, the client can see the music list data, and when a user selects a song in the list, the playing operation can be performed. The following is a playlist that is visible in the player, and the data is displayed by querying the database, returning the data, performing data encapsulation processing, and storing the data in the An Zhuoshi adapter.
2. The function of the media scanning process 1 is to scan data of the USB device and insert the data into the custom media database 2, and notify the application process to enter a scanning state; the function of the media application process 3 is to obtain the data of the media database 2 according to the service requirement of the user for data display.
3. The data structure classes mediafolder bean and a file data structure class MeidaBean of the original two groups of data type folders are combined into a data type MeidaBean, which is a dual-purpose data format package, and an attribute isFolder can be added, which is an attribute capable of distinguishing files and folders, so that the data type MeidaBean can be suitable for a pure folder list, a pure file list and a folder and file list form, and has the advantages of simplifying logic operation in the An Zhuoshi adapter 4BaseAdapter, realizing quick display, simultaneously combining different service requirements, and being used for packaging realization codes as follows:
Figure BDA0002039794580000031
as shown in fig. 2, the conventional multimedia application list steps are:
step 1: when the application detects that the external equipment is inserted, starting to conveniently carry out the media file, and searching the file meeting the condition in a recursion mode;
step 2: defining a data structure class mediafolder bean and a data structure class MeidaBean of media, and packaging the searched data into two groups of data sources List < mediafolder bean > folder data and List < MeidaBean > fileData;
step 3: placing folderData and fileData into a An Zhuoshi adapter BaseAdapter for UI adaptation, loading the UI adaptation into a control ListView for display, and rewriting functions such as getCount (), getItem (), getView () and the like of the BaseAdapter, wherein frequent operation of the folderData and fileData data is involved;
step 4: when the user operates the media folder to enter the next level of directory, the 2, 3-step logic needs to be re-executed.
Compared with the traditional multimedia application list implementation principle, the method has the advantages that step 1 of the method increases the speed of searching stored data under user-defined conditions, and has higher multiplexing rate and stronger expandability compared with the traditional traversal recursion searching condition mode; compared with the traditional mode of defining data structure class, the method adopting the compatibility data format packaging mode in steps 2 to 4 does not need to greatly modify the An Zhuoshi adapter, has quicker logic processing capability, and finally realizes the rapid loading and displaying of the multimedia application list by the android vehicle-mounted system.
The above embodiment is only one of the preferred embodiments of the present invention, and the ordinary changes and substitutions made by those skilled in the art within the scope of the present invention should be included in the scope of the present invention.

Claims (4)

1. A method for rapidly loading a multimedia application list applied to an android vehicle-mounted system is characterized by comprising the following steps that when an external device is detected to be inserted, a media scanning process (1) processes data on the external device, file simple information meeting user-defined conditions is analyzed out at the highest speed, the file simple information is stored in a media database (2), the media database (2) is informed that the media application process (3) can acquire data for display, the media database (2) returns the retrieved data (7) to the media application process (3) after retrieving the data, the media application process (3) can package the data into an operable data type according to user requirements, the packaged data is placed into a An Zhuoshi adapter (4) for further adaptive display or list display, when the user operates to enter different catalogues, a query data interface provided by the media application process (3) is called, the media database (2) is requested for data, the media database (2) is re-executed, the retrieved data (7) is returned to the media application process (3) after retrieving the data, the application process (3) can package the data into the operable data type according to user requirements, the packaged data can be further subjected to adaptive display, and the packaged data can be further subjected to the step An Zhuoshi, and the data can be further subjected to the adaptive display according to the requirements.
2. The method for quickly loading a list of multimedia applications in an android in-vehicle system according to claim 1, further comprising the step of sending a message requesting to retrieve data (6) to said media database (2) after said media application process (3) receives a notification status (5) of said media scanning process (1).
3. The method for quickly loading the multimedia application list in the android vehicle-mounted system according to claim 2, wherein the data types are encapsulated into operable data types by combining a data structure class of a folder and a data structure class of a file.
4. A method for fast loading a list of multimedia applications for an android in-vehicle system according to any of claims 1 to 3, characterized in that said media scanning process (1) and said media application process (3) are working independently and interact through a C/S mode.
CN201910338171.8A 2019-04-25 2019-04-25 Method for rapidly loading multimedia application list in android vehicle-mounted system Active CN110188211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910338171.8A CN110188211B (en) 2019-04-25 2019-04-25 Method for rapidly loading multimedia application list in android vehicle-mounted system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910338171.8A CN110188211B (en) 2019-04-25 2019-04-25 Method for rapidly loading multimedia application list in android vehicle-mounted system

Publications (2)

Publication Number Publication Date
CN110188211A CN110188211A (en) 2019-08-30
CN110188211B true CN110188211B (en) 2023-06-27

Family

ID=67714937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910338171.8A Active CN110188211B (en) 2019-04-25 2019-04-25 Method for rapidly loading multimedia application list in android vehicle-mounted system

Country Status (1)

Country Link
CN (1) CN110188211B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101401082A (en) * 2006-01-18 2009-04-01 克利普因塔奇国际有限公司 Apparatus and method for creating and transmitting unique dynamically personalized multimedia messages
CN102467546A (en) * 2010-11-16 2012-05-23 鸿富锦精密工业(深圳)有限公司 Method for generating media file list
CN107077344A (en) * 2014-06-20 2017-08-18 谷歌公司 Interface for multiple media applications
CN109062711A (en) * 2018-07-20 2018-12-21 北斗星通(重庆)汽车电子有限公司 Based on the quick scanning system of Android multimedia
CN109324731A (en) * 2017-07-27 2019-02-12 环球智达科技(北京)有限公司 Information display method and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142010A (en) * 2010-12-17 2011-08-03 华为终端有限公司 Method and equipment for inputting data to multimedia service database on embedded equipment
CN102543122A (en) * 2011-12-08 2012-07-04 上海博泰悦臻电子设备制造有限公司 Method and device for playing vehicle-mounted end U disk videos
EP2852928A4 (en) * 2012-05-23 2016-01-20 Nxtpub Inc Systems and methods for media file management
CN103473240A (en) * 2012-06-08 2013-12-25 Tcl集团股份有限公司 Storage-equipment-based file scanning method and device
CN104052823A (en) * 2014-06-30 2014-09-17 深圳市中兴移动通信有限公司 File sharing method and device based on DLNA
CN105653617B (en) * 2015-12-22 2019-02-26 广州视源电子科技股份有限公司 Multimedia file management device quickly shows the method and system of file
CN106534950A (en) * 2016-11-22 2017-03-22 深圳Tcl数字技术有限公司 Controlling method and device for media scanning and playing
US10838920B2 (en) * 2017-05-05 2020-11-17 Esoptra NV Plug-in function platform and methods
CN108965217B (en) * 2017-05-17 2020-10-27 中国科学院软件研究所 Multi-screen multimedia interaction system based on C/S framework
CN109542848B (en) * 2018-11-07 2022-01-07 深圳市布谷鸟科技有限公司 Vehicle-mounted media file rapid scanning method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101401082A (en) * 2006-01-18 2009-04-01 克利普因塔奇国际有限公司 Apparatus and method for creating and transmitting unique dynamically personalized multimedia messages
CN102467546A (en) * 2010-11-16 2012-05-23 鸿富锦精密工业(深圳)有限公司 Method for generating media file list
CN107077344A (en) * 2014-06-20 2017-08-18 谷歌公司 Interface for multiple media applications
CN109324731A (en) * 2017-07-27 2019-02-12 环球智达科技(北京)有限公司 Information display method and device
CN109062711A (en) * 2018-07-20 2018-12-21 北斗星通(重庆)汽车电子有限公司 Based on the quick scanning system of Android multimedia

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Android中的ListView控件的优化方法;孔令宏;;电子技术与软件工程(第21期);279页 *

Also Published As

Publication number Publication date
CN110188211A (en) 2019-08-30

Similar Documents

Publication Publication Date Title
US7937417B2 (en) Mobile communication terminal and method
US7970944B2 (en) System and method for platform and language-independent development and delivery of page-based content
US20070038647A1 (en) Management of media sources in memory constrained devices
EP2570917A1 (en) Method and device for adding menu items in android menu
CN105025319A (en) Video pushing method and device
CN108255915B (en) File management method and device and machine-readable storage medium
US20170091197A1 (en) Multimedia Display Method, Apparatus, and Device
US8688663B2 (en) Providing additional information from a removable storage medium
CN114153791A (en) File fast retrieval method and device, electronic equipment and storage medium
WO2023216491A1 (en) Animation resource information processing method and apparatus, device, medium and product
US20060004822A1 (en) Method and apparatus for moving multi-media file and storage medium storing program for executing the method
CN101770371A (en) Application theme content preview method and device
CN113885935A (en) Resource packaging method and device, electronic equipment and computer readable storage medium
JP2010518514A (en) System and method for displaying and navigating content on an electronic device
CN113377722A (en) Resource data reading method and device and storage medium
US20070226638A1 (en) Selecting a stored content item for use in a task
CN110188211B (en) Method for rapidly loading multimedia application list in android vehicle-mounted system
US8195635B1 (en) Indicating related but absent media content
CN115729951B (en) Data query method, system, device and computer readable storage medium
US8423585B2 (en) Variants of files in a file system
CN109446450B (en) List browsing method, device, terminal and storage medium based on red dot tracking
US9614894B1 (en) On-the-fly media-tagging, media-uploading and media navigating by tags
CN115758002A (en) Method, device, equipment and program product for displaying electronic map POI
CN107295485B (en) Multimedia message accessory management method, device and communication system
CN103686379A (en) Playing method and device for multi-media file, and television

Legal Events

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