Skip to content

Instantly share code, notes, and snippets.

View rashshafee29's full-sized avatar
👊

Rashid Al Shafee rashshafee29

👊
  • Bangladesh
  • 08:40 (UTC +06:00)
View GitHub Profile
@ImaginativeShohag
ImaginativeShohag / RealPathUtil.java
Last active December 8, 2022 04:49
Real Path Utility class for Android. Tested till API 29. Kotlin version: https://gist.github.com/ImaginativeShohag/4e53572141c017369941bbbaac538576
import android.annotation.SuppressLint;
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;