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 String getSystemAlbumDir() {
        File file = new File(getSdCardAbsolutePath() + "/DCIM/Camera");
        if (!file.exists())
            file.mkdirs();
        return file.getAbsolutePath();
    }

    public static String getSdCardAbsolutePath() {
        return Environment.getExternalStorageDirectory().getAbsolutePath();
    }
}