mobile/android/services/manifests/SyncAndroidManifest_activities.xml.in
author Matt Woodrow <mwoodrow@mozilla.com>
Fri, 10 May 2013 09:02:49 +1200
changeset 138210 fed9c75cd9fddf92f502584ac7e29062aac1486d
parent 123119 642ce348bb5f06674cd2e538eec49b87ab46c2e7
child 172252 daa2a0781fecbf5196004fccfa0a103449ccf6be
permissions -rw-r--r--
Bug 756601 - Setup our OpenGL surface before compositing. r=mstange

        <activity
            android:theme="@style/SyncTheme"
            android:icon="@drawable/icon"
            android:label="@string/sync_app_name"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:windowSoftInputMode="adjustResize|stateAlwaysHidden"
            android:taskAffinity="org.mozilla.gecko.sync.setup"
            android:name="org.mozilla.gecko.sync.setup.activities.SetupSyncActivity" >
            <!-- android:configChanges: SetupSyncActivity will handle orientation changes; no longer restarts activity (default) -->
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <!-- Adding a launcher will make Firefox Sync appear
                     on the Apps screen, which we only want when testing. -->
                <!-- <category android:name="android.intent.category.LAUNCHER" /> -->
            </intent-filter>
        </activity>

        <!-- On tablets, SyncTheme is in a dialog, which is not what
             we want for install instructions. -->
        <activity
            android:theme="@style/Gecko"
            android:name="org.mozilla.gecko.sync.setup.activities.WebViewActivity" />

        <activity
            android:theme="@style/SyncTheme"
            android:clearTaskOnLaunch="true"
            android:name="org.mozilla.gecko.sync.setup.activities.AccountActivity"
            android:windowSoftInputMode="adjustResize|stateHidden"/>

        <activity
            android:theme="@style/SyncTheme"
            android:clearTaskOnLaunch="true"
            android:name="org.mozilla.gecko.sync.setup.activities.RedirectToSetupActivity"
            android:windowSoftInputMode="adjustResize|stateHidden"/>

        <!-- Secondary Sync activities. These depend on other activities for context
             (display a result, or a next step). Since these don't make sense as stand-alone
             activities, set excludeFromRecents="true" -->
        <activity
            android:theme="@style/SyncTheme"
            android:noHistory="true"
            android:excludeFromRecents="true"
            android:name="org.mozilla.gecko.sync.setup.activities.SetupFailureActivity" />

        <activity
            android:theme="@style/SyncTheme"
            android:noHistory="true"
            android:excludeFromRecents="true"
            android:name="org.mozilla.gecko.sync.setup.activities.SetupSuccessActivity" />

        <activity
            android:theme="@style/SyncTheme"
            android:excludeFromRecents="true"
            android:taskAffinity="org.mozilla.gecko.sync.setup"
            android:name="org.mozilla.gecko.sync.config.activities.SelectEnginesActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
         </activity>

        <receiver
            android:name="org.mozilla.gecko.sync.receivers.UpgradeReceiver">
            <intent-filter>
                <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
            </intent-filter>
        </receiver>

        <receiver
            android:name="org.mozilla.gecko.sync.receivers.SyncAccountDeletedReceiver"
            android:permission="@MOZ_ANDROID_SHARED_ACCOUNT_TYPE@.permission.PER_ACCOUNT_TYPE">
            <intent-filter>
                <!-- This needs to be kept the same as
                     GlobalConstants.SYNC_ACCOUNT_DELETED_ACTION. -->
                <action android:name="@MOZ_ANDROID_SHARED_ACCOUNT_TYPE@.accounts.SYNC_ACCOUNT_DELETED_ACTION"/>
            </intent-filter>
        </receiver>

        <activity
            android:theme="@style/SyncTheme"
            android:excludeFromRecents="true"
            android:icon="@drawable/icon"
            android:label="@string/sync_app_name"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:windowSoftInputMode="adjustResize|stateHidden"
            android:taskAffinity="org.mozilla.gecko.sync.setup"
            android:name="org.mozilla.gecko.sync.setup.activities.SendTabActivity" >

            <intent-filter>
                <action android:name="android.intent.action.SEND" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="text/*" />
            </intent-filter>
        </activity>