Java tutorial
//package com.java2s; import android.os.Environment; import java.io.File; public class Main { private static String QURAN_BASE = File.separator + "quran_android" + File.separator; public static String getQuranBaseDirectory() { String state = Environment.getExternalStorageState(); if (state.equals(Environment.MEDIA_MOUNTED)) return Environment.getExternalStorageDirectory() + QURAN_BASE; else return null; } }