Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import java.io.File;
import android.content.Context;

public class Main {

    public static String getPrivateFilePath(Context context, String yourAppPath) {
        String PATH = context.getFilesDir().getAbsolutePath() + yourAppPath;
        File file = new File(PATH);
        if (!(file.exists() && file.isDirectory())) {
            file.mkdirs();
        }

        return PATH;
    }
}