Anke
September 19, 2023, 3:26pm
21
If this image was previously downloaded from another app or you copied it there manually, you will need to use SAF to delete it.
Anke
September 19, 2023, 3:28pm
22
Why? What is the purpose / goal of your app?
c'est de pouvoir renouveler les photos tous les mois et certains mois je ne mettrai pas de photos donc je laisserai le champs vide
avez vous des exemples concernant la méthode SAF
Anke
September 19, 2023, 3:35pm
25
Which folder is it about? Which folder should be empty and why? If you do not want your app to be published in the Play Store, request and grant MANAGE_EXTERNAL_STORAGE
permission to be able to remove images without SAF.
In this guide I show you, how to request and grant → MANAGE_EXTERNAL_STORAGE on devices with Android 11+. Be aware that this permission is usually not granted by Google. However, let’s assume the app is only intended for private use or for special users or for other app stores.
This permission must be declared in the Manifest (since it is not declared the Companion app you can't test this with Companion):
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
Here is a s…