get External Files Directory from Activity - Android Activity

Android examples for Activity:Activity Feature

Description

get External Files Directory from Activity

Demo Code


//package com.java2s;
import java.io.File;
import android.app.Activity;

public class Main {
    public static File getExternalFilesDir(Activity activity, String type) {
        return activity.getExternalFilesDir(type);
    }//from w w w  .  j a va 2s  . c o  m
}

Related Tutorials