Cotton code
58 lines · 3.0 KB · HTMLRaw
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android">    <uses-permission android:name="android.permission.RECORD_AUDIO" />    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />    <uses-feature android:name="android.hardware.microphone" android:required="true" />    <application android:name="com.cottondb.meetings.MeetingsApplication">        <activity            android:name="com.cottondb.meetings.MainActivity"            android:exported="true"            android:launchMode="singleTask"            android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboardHidden|uiMode|density|fontScale"            android:windowSoftInputMode="adjustResize">            <intent-filter>                <action android:name="android.intent.action.MAIN" />                <category android:name="android.intent.category.LAUNCHER" />            </intent-filter>            <!-- The app's own links (${urlScheme}://, the iPhone's urlScheme): the core says what each opens (link.open). -->            <intent-filter>                <action android:name="android.intent.action.VIEW" />                <category android:name="android.intent.category.DEFAULT" />                <category android:name="android.intent.category.BROWSABLE" />                <data android:scheme="${urlScheme}" />            </intent-filter>        </activity>        <!-- Every recording starts here, visible, so the microphone may be used; it closes at once. -->        <activity            android:name="com.cottondb.meetings.record.RecordActivity"            android:exported="false"            android:excludeFromRecents="true"            android:noHistory="true"            android:taskAffinity=""            android:theme="@android:style/Theme.Translucent.NoTitleBar" />        <!-- The recording: in the foreground with the microphone's type; swiping the app away leaves it running. -->        <service            android:name="com.cottondb.meetings.record.RecorderService"            android:exported="false"            android:foregroundServiceType="microphone"            android:stopWithTask="false" />        <!-- The Quick Settings tile: one tap records, a second stops. -->        <service            android:name="com.cottondb.meetings.record.RecordTile"            android:exported="true"            android:icon="@drawable/meetings_recording"            android:label="@string/meetings_tile"            android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">            <intent-filter>                <action android:name="android.service.quicksettings.action.QS_TILE" />            </intent-filter>            <meta-data android:name="android.service.quicksettings.TOGGLEABLE_TILE" android:value="true" />        </service>    </application></manifest>