Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.os.Environment;
import android.text.TextUtils;

public class Main {
    private static final String DATA_SDCARD_ROOT = "/data/sdcard";

    public static boolean isInternal(String path) {
        return TextUtils.isEmpty(path) || path.startsWith(Environment.getRootDirectory() + "/media")
                || path.startsWith(getDataSDCardRoot());
    }

    public static String getDataSDCardRoot() {
        return DATA_SDCARD_ROOT;
    }
}