[英]How to get an array of images from internal storage in Android
i'm using Android Studio and I need to create simple slider. 我正在使用Android Studio,并且需要创建简单的滑块。 What is the easiest way to get an array of all images from internal device storage?
从内部设备存储中获取所有图像阵列的最简单方法是什么? I need a bitmap array or an array of a pathes to those images.
我需要一个位图数组或这些图像的路径数组。
You can use CursorLoader for this. 您可以为此使用CursorLoader。 Have a look at: http://developer.android.com/reference/android/provider/MediaStore.Images.html to understand what fields you need to request while creating the loader.
看一下: http : //developer.android.com/reference/android/provider/MediaStore.Images.html,以了解创建加载程序时需要请求哪些字段。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.