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.util.Log;

public class Main {
    public static void createDir(String dirPath) {
        File dir = new File(dirPath);
        if (!dir.exists()) {
            Log.d("createDir", dir.getPath() + " does not exist. Creating");
            if (!dir.mkdir()) {
                Log.e("createDir", "Unable to create " + dir.getPath());
            }
        }

    }
}