FileProvider is a special subclass of ContentProvider that facilitates secure sharing
of files associated with an app by creating a content://Uri for a file
instead of a file:///Uri.
An implementation of a ContentObserver that takes care of connecting
it to the Loader to have the loader re-load its data when the observer
is told it has changed.
This class was deprecated
in API level 26.1.0.
As of Android O, background check
restrictions make this class no longer generally useful. (It is generally not safe to
start a service from the receipt of a broadcast, because you don't have any guarantees
that your app is in the foreground at this point and thus allowed to do so.) Instead,
developers should use android.app.job.JobScheduler to schedule a job, and this
does not require that the app hold a wake lock while doing so (the system will take
care of holding a wake lock for the job).
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-11 UTC."],[],[]]