StoragePath not working on Android OS 10
Does StoragePath work on Android OS 10 ?, I tried it on Android OS 10, no image appears. Please help!
I tried it on Android 10 , but no images appears . how can i fix this problem??
Change your targetSdkVersion to api 29 and set the value of requestLegacyExternalStorage to true in your android app's manifest file.
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
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
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)
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