StoragePath icon indicating copy to clipboard operation
StoragePath copied to clipboard

StoragePath not working on Android OS 10

Open SyahrirMbojo opened this issue 5 years ago • 6 comments

Does StoragePath work on Android OS 10 ?, I tried it on Android OS 10, no image appears. Please help!

SyahrirMbojo avatar Sep 22 '20 04:09 SyahrirMbojo

I tried it on Android 10 , but no images appears . how can i fix this problem??

HimanshiPuniya avatar Oct 26 '20 09:10 HimanshiPuniya

Change your targetSdkVersion to api 29 and set the value of requestLegacyExternalStorage to true in your android app's manifest file.

noeGnh avatar Nov 04 '20 11:11 noeGnh

This method was deprecated in API level 29. To improve user privacy, direct access to shared/external storage devices is deprecated. When an app targets Build.VERSION_CODES.Q, the path returned from this method is no longer directly accessible to apps. Apps can continue to access content stored on shared/external storage by migrating to alternatives such as Context#getExternalFilesDir(String), MediaStore, or Intent#ACTION_OPEN_DOCUMENT.

https://developer.android.com/reference/android/os/Environment

ShellsOfSilver avatar Jan 01 '21 14:01 ShellsOfSilver

need update - https://github.com/follow2vivek/StoragePath/blob/0070715210134af8b2f65a9041b05e3a5c4cd024/android/src/main/java/com/follow2vivek/storagepath/StoragePathPlugin.java#L106 as in https://stackoverflow.com/a/58009636/14191288

ShellsOfSilver avatar Jan 01 '21 15:01 ShellsOfSilver

https://github.com/ShellsOfSilver/StoragePath try this but you will have to convert the result with FlutterAbsolutePath.getAbsolutePath(<result>) (https://pub.dev/packages/flutter_absolute_path)

ShellsOfSilver avatar Jan 01 '21 17:01 ShellsOfSilver

https://github.com/ShellsOfSilver/StoragePath try this but you will have to convert the result with FlutterAbsolutePath.getAbsolutePath(<result>) (https://pub.dev/packages/flutter_absolute_path)

Kindly tell me how I can do this ,I need help regarding this thanks

bismatariq98 avatar Jun 25 '21 10:06 bismatariq98