Starting of using API of 'Croissant'
Installation of Croissant FM
First of all make sure that you already have on your device (phone/tablet) Croissant FM. You can find it in GitHub Release. After install of Croissant FM make sure that you give permission "Read external storage" (for android 10 or lower) or permission "Manage external storage" (for android 11 or higher)
Code
Adding Lines to the AndroidManifest.xml
Please find your AndroidManifest.xml file, and add this lines:
AndroidManifest.xml
<queries>
<package android:name="com.anready.croissant" />
<provider android:authorities="com.anready.croissant.files" />
</queries>
Example of full AndroidManifest.xml
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<queries>
<package android:name="com.anready.croissant" />
<provider android:authorities="com.anready.croissant.files" />
</queries>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Croissant">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>