Class AndroidFileSystem


  • public class AndroidFileSystem
    extends java.lang.Object
    Utility for Android file system
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Context getContext()
      Get the Android context.
      static IFile getRealFile​(java.lang.String uri, boolean isDirectory)
      Get the real file hosted on the android device.
      static void initialize​(Context context)
      Initialize the Android Drive before creating or opening any virtual drives.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AndroidFileSystem

        public AndroidFileSystem()
    • 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