Skip to content

Instantly share code, notes, and snippets.

@r0b0t3d
r0b0t3d / FileHelper.java
Created June 17, 2020 08:13
Get file path from Uri
import android.annotation.TargetApi;
import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import android.provider.DocumentsContract;
import android.provider.MediaStore;