Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method and device for triggering multimedia database scanning of Android equipment

A multimedia and database technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve problems that affect application usage and system resource shortage

Active Publication Date: 2014-02-12
GUANGDONG OPPO MOBILE TELECOMM CORP LTD
View PDF3 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a method for triggering Android device multimedia database scanning in order to solve the defects of the above-mentioned prior art, which can update the multimedia database in time, avoiding the need to perform a full disk scan every time data is obtained, thereby causing system resources to be tight. Issues Affecting Application Usage

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for triggering multimedia database scanning of Android equipment
  • Method and device for triggering multimedia database scanning of Android equipment
  • Method and device for triggering multimedia database scanning of Android equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] The method for triggering the Android device multimedia database scanning of the present embodiment includes:

[0051] 1) Create classes, write background and modify commands, such as figure 1 As shown, the details are as follows:

[0052] 1.1) Create a scanning client class ScannerClient to inherit the multimedia database query service class MediaScannerConnectionClient of the Android device, as follows:

[0053]

[0054]

[0055] Among them, the method onMediaScannerConnected is used to establish a connection with the background multimedia service of the Android device; the method onScanCompleted is used to disconnect the background multimedia service of the Android device; the method setScanPath is used to set the scanning path;

[0056] 1.2) Create a scanning class ScanFile to instantiate ScannerClient, as follows:

[0057]

[0058]

[0059] Among them, the beginScanFile method is used to trigger multimedia database scanning.

[0060] 1.3) Write a scann...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a device for triggering multimedia database scanning of Android equipment. The method comprises the following steps: establishing a scanner client class to inherit a multimedia database inquiry service class; establishing a scanning class to instantiate the scanner client class; writing a scanning service background; modifying an adb push command; copying a file to the Android equipment through the adb push command; when the file data of push is finished, acquiring the route of the file; when judging that the route of the file is legal, transmitting the file route parameter to the scanning service background and starting the scanning service background; according to the file route parameter, setting the scanning route through the scanner client class; according to the scanning route, establishing connection between the scanner client class and background multimedia service through the scanning class and triggering multimedia database scanning. According to the method and the device, the resource-critical problem of a system caused by full scanning when data is acquired every time can be avoided.

Description

technical field [0001] The invention relates to a method for triggering multimedia database scanning, in particular to a method and device for triggering Android device multimedia database scanning. It belongs to the technical field of mobile devices. Background technique [0002] For current Android devices, taking mobile phones as an example, there are many mobile assistant applications, such as 91 Assistant, Pea Pod, 360 Mobile Assistant, Tencent Mobile Assistant, etc.; these mobile assistants can operate the mobile phone file system, basically through The pc adb (Android Debug Bridge) client establishes a connection with the adb server of the mobile phone, and uses the adb command (push, pull, etc.) to upload and download files by obtaining the file system directory of the mobile phone; A certain file is pushed to the mobile phone, and there is an additional file in the mobile phone directory. However, applications such as photo albums, music, and videos have not found...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
CPCG06F16/148
Inventor 惠涛
Owner GUANGDONG OPPO MOBILE TELECOMM CORP LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More