Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.io.File;

public class Main {
    public static String[] ListFile() {

        File file = new File("/sdcard/xUtils/");
        File[] f = file.listFiles();
        if (f != null) {
            String Path[] = new String[f.length];
            for (int i = 0; i < f.length; i++)

            {

                Path[i] = f[i].getPath();
            }
            return Path;
        } else {
            return null;
        }

    }
}