Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

import android.os.Environment;

public class Main {
    private static String folderName = "myNotifications";

    /**
     * get all the log files to upload
     * 
     * @return
     */
    public static File[] getFilesToUpload() {
        File[] files = null;
        File directory = new File(Environment.getExternalStorageDirectory() + File.separator + folderName);
        if (directory.exists()) {
            files = directory.listFiles();
        }
        return files;
    }
}