Android 获取指定文件目录下的图片
16lz
2021-01-23
//selection: 指定查询条件String selection = MediaStore.Images.Media.DATA + " like '%Camera%'";//设定查询目录String path="/mnt/sdcard/youpicpath";//定义selectionArgs:String[] selectionArgs = {path+"%"};Cursor c = this.getContentResolver().query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null,selection, selectionArgs, null);
更多相关文章
- Android 自定义AlertDialog
- android 定义圆角Button
- 自定义android混合框架开发实践1:实现基础andorid和webview交互
- Android 自定义Toast
- android UI学习 -- 设置界面的布局(包括style的使用,selector的
- Android SDK自定义更新
- 安卓自定义interpolator