question: public static Uri fromFile ( File file ) { if ( file == null ) { throw new NullPointerException ( "file" ) ; } PathPart path = PathPart . fromDecoded ( file . getAbsolutePath ( ) ) ; return new HierarchicalUri ( "file" , Part . EMPTY , path , Part . NULL , Part . NULL ) ; }
target:  Creates a Uri from a file. The URI has the form "file://<absolute path>". Encodes path characters with the exception of '/'. <p>Example: "file:///tmp/android.txt"