We have already seen in various apps that we can view images saved in sdcard folder in android. And that's really helps in using that allocated sapce by just accessing sdcard folder.
If you want to do the same for your android application and you have no idea about it, then don't worry we will learn together in this article.
1. Get path
3. Showing in GridView
You can get the path of files from a particular folder as given below and once you got the path of the files you can easily display the images in gridview.
ArrayList<String> f = new ArrayList<String>();// list of file paths
public void getFromSdcard()
File file= new File(android.os.Environment.getExternalStorageDirectory(),"TMyFolder");
listFile = file.listFiles();
for (int i = 0; i < listFile.length; i++)
Remember to add permission manifest file
By having write permission will have read permission by default.