Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.content.Context;

import java.io.File;

public class Main {
    public static String getSendDir(Context context) {
        File fileDir = context.getExternalFilesDir(null);
        String dir = null;
        if (fileDir != null) {
            dir = fileDir.getAbsolutePath();
        } else {
            dir = context.getFilesDir().getAbsolutePath();
        }
        dir += "/mtc/bgimage/";
        fileDir = new File(dir);
        fileDir.mkdirs();
        return dir;
    }
}