Package com.mku.android.fs.file
Class AndroidFileSystem
- java.lang.Object
-
- com.mku.android.fs.file.AndroidFileSystem
-
public class AndroidFileSystem extends java.lang.ObjectUtility for Android file system
-
-
Constructor Summary
Constructors Constructor Description AndroidFileSystem()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContextgetContext()Get the Android context.static IFilegetRealFile(java.lang.String uri, boolean isDirectory)Get the real file hosted on the android device.static voidinitialize(Context context)Initialize the Android Drive before creating or opening any virtual drives.
-
-
-
Method Detail
-
initialize
public static void initialize(Context context)
Initialize the Android Drive before creating or opening any virtual drives.- Parameters:
context- The context
-
getContext
public static Context getContext()
Get the Android context.- Returns:
- The Android context
-
getRealFile
public static IFile getRealFile(java.lang.String uri, boolean isDirectory)
Get the real file hosted on the android device.- Parameters:
uri- The content uri (ie: content://)isDirectory- True if filepath corresponds to a directory.- Returns:
- The real file
-
-