MediaScannerConnection and MediaScannerConnectionClient.
APACHE-2.0 License
Android platform to scan media files to the system database tools.
QQ Group: 547839514 Author URL: http://www.yanzhenjie.com
compile 'com.yanzhenjie:mediascanner:1.0.3'
<dependency>
<groupId>com.yanzhenjie</groupId>
<artifactId>mediascanner</artifactId>
<version>1.0.3</version>
<type>pom</type>
</dependency>
MediaScanner mediaScanner = new MediaScanner(this);
...
String filePath = ...
mediaScanner.scan(filePath);
String[] fileArray = ...
mediaScanner.scan(fileArray);
String fileList = ...
mediaScanner.scan(fileList);
欢迎中国开发者关注作者微信公众号 扫码或者微信添加公众号-搜索严振杰
Copyright 2017 Yan Zhenjie
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.