get External Files Directory For Alarms - Android android.os

Android examples for android.os:External Storage

Description

get External Files Directory For Alarms

Demo Code

import java.io.File;

import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.os.Environment;

public class Main {

  @TargetApi(Build.VERSION_CODES.FROYO)/* w  ww. j av a2  s. c  o m*/
  public static final File getExternalFilesDirForAlarms(Context context) {
    return context.getExternalFilesDir(Environment.DIRECTORY_ALARMS);
  }

}

Related Tutorials