I installed FileProvider with the following res/xml/file_paths.xml :
<paths xmlns:android="http://schemas.android.com/apk/res/android"> <external-path name="suggestions" path="Android/data/com.example.app.dev/files/suggestions" /> </paths>
The problem is that I have many products that change applicationId . Is there a way to replace this value with the appropriate application without creating a file path for each product? How to replace a tag like this Android/data/{appId}/files/suggestions ? Or even using the relative path ... (I tried everything, but only this full path worked).
android android-studio gradle
Fabricio
source share