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 {
    public static File getHomeFileLoc() {
        File sdcard = Environment.getExternalStorageDirectory();
        File sdpath = new File(sdcard.getAbsolutePath() + File.separator + "KnouNotice");
        if (!sdpath.exists()) {
            boolean flag = sdpath.mkdirs();
        }
        return sdpath;
    }
}