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 {
    static public String initSavePath() {
        File dateDir = Environment.getExternalStorageDirectory();
        String path = dateDir.getAbsolutePath() + "/corp/";
        File folder = new File(path);
        if (!folder.exists()) {
            folder.mkdir();
        }
        return path;
    }
}