Of course, it asks a very difficult question to answer, but I have some difficulty in implementing this Has been there. My problem is this: I need to read the file (or list) inside a special folder in the internal memory of Android ("My Folder", located in the internal storage route). Sure, it is possible, but how to do it? thank you in advanced!
To read the files inside your device, you will do something like this:
// gets the file in the file file file directory = new file (environment; gatedata directory) + "/ your directory /"); // lists all the files in an array file [] dirFiles = fileDirectory.listFiles (); If (dirFiles.length! = 0) {// loops through the array of files, the output for the console is named (int ii = 0; ii If you want to get the file from an SD card, you can simply change the getDataDirectory to getExternalStorageDirectory . >
Comments
Post a Comment