path_provider_android
2.3.1, released 7 months ago by flutter.dev
Android implementation of the path_provider plugin for finding commonly used locations.
What it does
Provides the Android-specific implementation for accessing commonly used paths on the filesystem, such as temporary or application support directories. It is usually consumed via the endorsed main path_provider package.
AI-written summary of version 2.3.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are developing a Flutter app for Android and need to find standard filesystem paths.
- You are using the path_provider package and need the underlying Android platform implementation.
Skip it when
- You are targeting platforms other than Android and require a platform-agnostic approach (use path_provider instead).
Strengths
- Automatically included as an endorsed package when using path_provider.
- Handles Android-specific path resolution using JNI.
Weaknesses
- Tied directly to the Android platform implementation.
- Not intended to be used standalone unless directly accessing its specific APIs.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Endorsed plugin, automatically included by path_provider. Add to pubspec.yaml only if importing directly.
Alternatives
Packages that do the same job and could replace path_provider_android.
- file_picker
Use the native file explorer to pick single or multiple files, directories, and save files.
93Compare - file_saver
Save files from bytes, paths, streams, and URLs across Android, iOS, Web, Windows, macOS, and Linux.
87Compare - alh_pdf_view
Show PDF files or bytes as a Flutter widget on Android and iOS.
64Compare - downloadsfolder
Retrieve download folder paths and copy files into downloads on mobile and desktop.
61Compare
Works with
Packages commonly used together with path_provider_android: ones it builds on, ones built on it, and its own family.
- jnipath_provider_android depends on itProvides Dart/Flutter bindings to call native Java code via JNI.
- jni_flutterpath_provider_android depends on itAccess Flutter Android APIs from Dart.
- path_provider_windowsSame familyWindows implementation of the path_provider plugin
- path_provider_foundationSame familyiOS/macOS implementation of path_provider using direct FFI calls
- path_parsingSame familyPure Dart library for parsing SVG path strings and generating Dart path code.
- path_providerBuilt on path_provider_androidProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.