Java Code Examples for android.os.Environment#buildPaths()
The following examples show how to use
android.os.Environment#buildPaths() .
These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: AndroidComponentPlugin File: ContextImpl.java License: Apache License 2.0 | 6 votes |
@Override public File[] getExternalFilesDirs(String type) { synchronized (mSync) { if (mExternalFilesDirs == null) { mExternalFilesDirs = Environment.buildExternalStorageAppFilesDirs(getPackageName()); } // Splice in requested type, if any File[] dirs = mExternalFilesDirs; if (type != null) { dirs = Environment.buildPaths(dirs, type); } // Create dirs if needed return ensureExternalDirsExistOrFilter(dirs); } }
Example 2
Source Project: AndroidComponentPlugin File: ContextImpl.java License: Apache License 2.0 | 6 votes |
@Override public File[] getExternalFilesDirs(String type) { synchronized (mSync) { if (mExternalFilesDirs == null) { mExternalFilesDirs = Environment.buildExternalStorageAppFilesDirs(getPackageName()); } // Splice in requested type, if any File[] dirs = mExternalFilesDirs; if (type != null) { dirs = Environment.buildPaths(dirs, type); } // Create dirs if needed return ensureDirsExistOrFilter(dirs); } }
Example 3
Source Project: AndroidComponentPlugin File: ContextImpl.java License: Apache License 2.0 | 6 votes |
@Override public File[] getExternalFilesDirs(String type) { synchronized (mSync) { if (mExternalFilesDirs == null) { mExternalFilesDirs = Environment.buildExternalStorageAppFilesDirs(getPackageName()); } // Splice in requested type, if any File[] dirs = mExternalFilesDirs; if (type != null) { dirs = Environment.buildPaths(dirs, type); } // Create dirs if needed return ensureDirsExistOrFilter(dirs); } }
Example 4
Source Project: AndroidComponentPlugin File: ContextImpl.java License: Apache License 2.0 | 6 votes |
@Override public File[] getExternalFilesDirs(String type) { synchronized (mSync) { if (mExternalFilesDirs == null) { mExternalFilesDirs = Environment.buildExternalStorageAppFilesDirs(getPackageName()); } // Splice in requested type, if any File[] dirs = mExternalFilesDirs; if (type != null) { dirs = Environment.buildPaths(dirs, type); } // Create dirs if needed return ensureDirsExistOrFilter(dirs); } }
Example 5
Source Project: AndroidComponentPlugin File: ContextImpl.java License: Apache License 2.0 | 6 votes |
@Override public File[] getExternalFilesDirs(String type) { synchronized (mSync) { if (mExternalFilesDirs == null) { mExternalFilesDirs = Environment.buildExternalStorageAppFilesDirs(getPackageName()); } // Splice in requested type, if any File[] dirs = mExternalFilesDirs; if (type != null) { dirs = Environment.buildPaths(dirs, type); } // Create dirs if needed return ensureDirsExistOrFilter(dirs); } }
Example 6
Source Project: AndroidComponentPlugin File: ContextImpl.java License: Apache License 2.0 | 5 votes |
@Override public File[] getExternalFilesDirs(String type) { synchronized (mSync) { File[] dirs = Environment.buildExternalStorageAppFilesDirs(getPackageName()); if (type != null) { dirs = Environment.buildPaths(dirs, type); } return ensureExternalDirsExistOrFilter(dirs); } }
Example 7
Source Project: AndroidComponentPlugin File: ContextImpl.java License: Apache License 2.0 | 5 votes |
@Override public File[] getExternalFilesDirs(String type) { synchronized (mSync) { File[] dirs = Environment.buildExternalStorageAppFilesDirs(getPackageName()); if (type != null) { dirs = Environment.buildPaths(dirs, type); } return ensureExternalDirsExistOrFilter(dirs); } }
Example 8
Source Project: AndroidComponentPlugin File: ContextImpl.java License: Apache License 2.0 | 5 votes |
@Override public File[] getExternalFilesDirs(String type) { synchronized (mSync) { File[] dirs = Environment.buildExternalStorageAppFilesDirs(getPackageName()); if (type != null) { dirs = Environment.buildPaths(dirs, type); } return ensureExternalDirsExistOrFilter(dirs); } }
Example 9
Source Project: AndroidComponentPlugin File: ContextImpl.java License: Apache License 2.0 | 5 votes |
@Override public File[] getExternalFilesDirs(String type) { synchronized (mSync) { File[] dirs = Environment.buildExternalStorageAppFilesDirs(getPackageName()); if (type != null) { dirs = Environment.buildPaths(dirs, type); } return ensureExternalDirsExistOrFilter(dirs); } }
Example 10
Source Project: AndroidComponentPlugin File: ContextImpl.java License: Apache License 2.0 | 5 votes |
@Override public File[] getExternalFilesDirs(String type) { synchronized (mSync) { File[] dirs = Environment.buildExternalStorageAppFilesDirs(getPackageName()); if (type != null) { dirs = Environment.buildPaths(dirs, type); } return ensureExternalDirsExistOrFilter(dirs); } }
Example 11
Source Project: AndroidComponentPlugin File: ContextImpl.java License: Apache License 2.0 | 5 votes |
@Override public File[] getExternalFilesDirs(String type) { synchronized (mSync) { File[] dirs = Environment.buildExternalStorageAppFilesDirs(getPackageName()); if (type != null) { dirs = Environment.buildPaths(dirs, type); } return ensureExternalDirsExistOrFilter(dirs); } }
Example 12
Source Project: android_9.0.0_r45 File: ContextImpl.java License: Apache License 2.0 | 5 votes |
@Override public File[] getExternalFilesDirs(String type) { synchronized (mSync) { File[] dirs = Environment.buildExternalStorageAppFilesDirs(getPackageName()); if (type != null) { dirs = Environment.buildPaths(dirs, type); } return ensureExternalDirsExistOrFilter(dirs); } }