Can I use FileProvider inside a Service in Android?
I’m developing 2 Android applications. App 1 receives the media files from app 2 which is actually a service. App 2 stores some videos and images downloaded from the internet and store them in cache directory. My goal is to find a way for app 1 to access those files. I’m currently implementing FileProvider inside the service class in app 2 to archive the goal. However, I keep facing this error in logcat: