Cotton code
52 lines · 3.0 KB · HTMLRaw
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android">    <application android:name="com.cottondb.downloads.DownloadsApplication">        <!-- singleTask: a share while the app is open comes to the one activity (onNewIntent), never a second deck. -->        <activity            android:name="com.cottondb.downloads.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>            <!-- The share sheet (the shell's ShareIntake; which of it is a download is the core's, share.fetchLinks):                 a link or words holding one, a magnet, a .torrent file. -->            <intent-filter>                <action android:name="android.intent.action.SEND" />                <category android:name="android.intent.category.DEFAULT" />                <data android:mimeType="text/plain" />                <data android:mimeType="application/x-bittorrent" />                <data android:mimeType="application/octet-stream" />            </intent-filter>            <intent-filter>                <action android:name="android.intent.action.SEND_MULTIPLE" />                <category android:name="android.intent.category.DEFAULT" />                <data android:mimeType="application/x-bittorrent" />            </intent-filter>            <!-- A magnet link the system opens, and a .torrent file a browser or a file manager hands over. -->            <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="magnet" />            </intent-filter>            <intent-filter>                <action android:name="android.intent.action.VIEW" />                <category android:name="android.intent.category.DEFAULT" />                <data android:scheme="content" />                <data android:scheme="file" />                <data android:mimeType="application/x-bittorrent" />            </intent-filter>        </activity>    </application></manifest>