Cotton code
38 lines · 2.2 KB · HTMLRaw
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android">    <!-- No photo library permission: Plus's pictures come through the system photo picker, which asks for none. -->    <application android:name="com.cottondb.photos.PhotosApplication">        <!-- singleTask: pictures shared while the app is open come to the one activity (onNewIntent). -->        <activity            android:name="com.cottondb.photos.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): pictures and videos shared here go through Plus's door (share.door). -->            <intent-filter>                <action android:name="android.intent.action.SEND" />                <category android:name="android.intent.category.DEFAULT" />                <data android:mimeType="image/*" />                <data android:mimeType="video/*" />            </intent-filter>            <intent-filter>                <action android:name="android.intent.action.SEND_MULTIPLE" />                <category android:name="android.intent.category.DEFAULT" />                <data android:mimeType="image/*" />                <data android:mimeType="video/*" />            </intent-filter>        </activity>    </application></manifest>