Package 

Object AcraContentProvider.Companion

    • Method Summary

      Modifier and Type Method Description
      final Uri getUriForFile(Context context, File file) Get an uri for this content provider for the given file
      final Uri getUriForFile(Context context, Directory directory, String relativePath) Get an uri for this content provider for the given file
      final String guessMimeType(Uri uri) Tries to guess the mime type from uri extension
      • Methods inherited from class java.lang.Object

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

      • getUriForFile

         final Uri getUriForFile(Context context, File file)

        Get an uri for this content provider for the given file

        Parameters:
        context - a context
        file - the file
      • getUriForFile

         final Uri getUriForFile(Context context, Directory directory, String relativePath)

        Get an uri for this content provider for the given file

        Parameters:
        context - a context
        directory - the directory, to with the path is relative
        relativePath - the file path
      • guessMimeType

         final String guessMimeType(Uri uri)

        Tries to guess the mime type from uri extension

        Parameters:
        uri - the uri