I want to list a names of the files and put them into String array. To list a names of the files I'm using this code:
File dir = new File("/sdcard/Images/1124/"); File[] files = dir.listFiles(); for (int i = 0; i < files.length; ++i){ Log.i(String.valueOf(files[i].getName()),"files"); } I want to get something like that but with automatic values of files[i]:
String[] files = new String[] { "/sdcard/Images/1124/pic.jpg","/sdcard/Images/1124/pic2.jpg" }; So how can I do it?
Thanks