Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Creative Commons License 

import java.io.File;

import android.content.Context;

public class Main {
    public static String getExternalFullPath(Context context, String fileName) {
        File dir = context.getExternalFilesDir(null);
        if (dir == null) {
            return null;
        }
        return dir.getAbsolutePath() + "/" + fileName;
    }
}