I’m new to Android software development, on Kotlin, there was a problem that the application basically refuses to request permission to read memory, in particular audio files, even if you manually give this permission (in the application settings on the device itself, an item appears to read these very audio files, but when you first launch no standard access windows not output)
Тhat is, even if permission to read this type of file is not required in Android api 13, the application still does not display audio files in the list.
**My Manifest
**“`
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_NOTIFICATION_POLICY" />
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:requestLegacyExternalStorage="true"
android:theme="@style/Theme.MPMP"
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:exported="true"
android:theme="@style/Theme.AppCompat">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
“`
**Theme.AppCompat – yes, it may not be used much anymore, but for my application personally, this part is a brick in its operability (lol)
please be understanding
Also, you can tell me how to “search” all audio files on the device (regardless of the folder)?
this is the only and latest version of the manifest code in which at least a request for permission to read audio files appears in the application settings.
KaiserxPyro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.