I am new to android, please help me to resolve this. I need to retrieve all images from gallery and show that like an animation using timer or thread. I Used below code get images from gallery how can I store the images in an array?My idea is to make animation using timer by picking images from an array and put in a single Imageview. but I could not store the images retrieved from gallery to an array. I could display it in gridview by using Imageadapter. In short I need to get n number of images from gallery and place it in an array and make animation using timer and single imageview.
String[] projection = {MediaStore.Images.Thumbnails._ID};
cursor=getContentResolver().query(MediaStore.Images.Thumbnails.INTERNAL_CONTENT_URI,
projection,null,null,MediaStore.Images.Thumbnails.IMAGE_ID);