private List<String> alstImage = new ArrayList<String>;
File[] listFile;
//Get files from sdcard of perticualer folder
public void getFromSdcard()
{
File file= new File(android.os.Environment.getExternalStorageDirectory(),"/WWF/WWF Images");
if (file.isDirectory())
{
listFile = file.listFiles();
for (int i = 0; i < listFile.length; i++)
{
alstImage.add(listFile[i].getAbsolutePath());
}
}
}
File[] listFile;
//Get files from sdcard of perticualer folder
public void getFromSdcard()
{
File file= new File(android.os.Environment.getExternalStorageDirectory(),"/WWF/WWF Images");
if (file.isDirectory())
{
listFile = file.listFiles();
for (int i = 0; i < listFile.length; i++)
{
alstImage.add(listFile[i].getAbsolutePath());
}
}
}
No comments:
Post a Comment