<?xmlversion="1.0"encoding="utf-8"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"><!-- Listen: the script read aloud goes on with the screen off (ListenService). --><uses-permissionandroid:name="android.permission.FOREGROUND_SERVICE" /><uses-permissionandroid:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" /><applicationandroid:name="com.cottondb.story.StoryApplication"android:allowBackup="true"android:fullBackupContent="@xml/backup_rules"android:dataExtractionRules="@xml/data_extraction_rules"tools:replace="android:allowBackup"><!-- singleTask: a .fountain opened with Story while it is open comes to the one activity (onNewIntent). --><activityandroid:name="com.cottondb.story.MainActivity"android:exported="true"android:launchMode="singleTask"android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboardHidden|uiMode|density|fontScale"android:windowSoftInputMode="adjustResize"><intent-filter><actionandroid:name="android.intent.action.MAIN" /><categoryandroid: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><actionandroid:name="android.intent.action.VIEW" /><categoryandroid:name="android.intent.category.DEFAULT" /><categoryandroid:name="android.intent.category.BROWSABLE" /><dataandroid:scheme="${urlScheme}" /></intent-filter><!-- "Open with" on a script file (StoryParts.share brings it in through story.bring_in: Fountain, Final Draft, a printed PDF). Content URIs carry no path to match, so the filter takes the types file managers give a screenplay: text, Fountain's own, Final Draft's XML, PDF, and the unknown. --><intent-filter><actionandroid:name="android.intent.action.VIEW" /><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:scheme="content" /><dataandroid:scheme="file" /><dataandroid:mimeType="text/plain" /><dataandroid:mimeType="text/x-fountain" /><dataandroid:mimeType="text/fountain" /><dataandroid:mimeType="application/xml" /><dataandroid:mimeType="text/xml" /><dataandroid:mimeType="application/pdf" /><dataandroid:mimeType="application/octet-stream" /></intent-filter><!-- The share sheet: a screenplay file sent to Story. --><intent-filter><actionandroid:name="android.intent.action.SEND" /><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:mimeType="text/plain" /><dataandroid:mimeType="text/x-fountain" /><dataandroid:mimeType="application/xml" /><dataandroid:mimeType="text/xml" /><dataandroid:mimeType="application/pdf" /><dataandroid:mimeType="application/octet-stream" /></intent-filter></activity><serviceandroid:name="com.cottondb.story.listen.ListenService"android:exported="false"android:foregroundServiceType="mediaPlayback" /></application></manifest>