Uri.FromFile(File) Uri.FromFile(File) Method

Definition

Creates a Uri from a file.

[Android.Runtime.Register("fromFile", "(Ljava/io/File;)Landroid/net/Uri;", "")]
public static Android.Net.Uri FromFile (Java.IO.File file);
static member FromFile : Java.IO.File -> Android.Net.Uri

Parameters

file
File File

Returns

Exceptions

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to