Package com.mku.android.fs.file
Class AndroidFileSystem
java.lang.Object
com.mku.android.fs.file.AndroidFileSystem
Utility for Android file system
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ContextGet the Android context.static IFilegetRealFile(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.
-
Constructor Details
-
AndroidFileSystem
public AndroidFileSystem()
-
-
Method Details
-
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
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
-