Muddz / QuickShot

[Moved to MavenCentral] Capture images of any View, SurfaceView or Bitmap from your Android app in: .jpg .png or .nomedia with simple oneliner codes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Path is not useful in api 29-android 10

mortezaRahimi opened this issue · comments

@OverRide
public void onQuickShotSuccess(String path) {
File file = new File(path);
Uri uri = FileProvider.getUriForFile(this, BuildConfig.APPLICATION_ID +
getString(R.string.file_provider_authority), file);
}
Path not working in android 10 in order to get uri and throws exception :
java.lang.IllegalArgumentException: Failed to find configured root that contains /Pictures/1587840596143.png

Same issue

@Muddz This library should support Uri based image saving & fetching mechanism.