Home | History | Annotate | Download | only in Support4Demos
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2007 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <!-- Declare the contents of this Android application.  The namespace
     18      attribute brings in the Android platform namespace, and the package
     19      supplies a unique name for the application.  When writing your
     20      own application, the package name must be changed from "com.example.*"
     21      to come from a domain that you own or have control over. -->
     22 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     23     package="com.example.android.supportv4">
     24 
     25     <uses-permission android:name="android.permission.READ_CONTACTS" />
     26     <uses-permission android:name="android.permission.INTERNET" />
     27     <uses-permission android:name="android.permission.WAKE_LOCK" />
     28 
     29     <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="22" />
     30 
     31     <!-- The smallest screen this app works on is a phone.  The app will
     32          scale its UI to larger screens but doesn't make good use of them
     33          so allow the compatibility mode button to be shown (mostly because
     34          this is just convenient for testing). -->
     35     <supports-screens android:requiresSmallestWidthDp="320"
     36             android:compatibleWidthLimitDp="480" />
     37 
     38     <application android:label="@string/activity_sample_code"
     39             android:icon="@drawable/app_sample_code"
     40             android:hardwareAccelerated="true"
     41             android:supportsRtl="true">
     42 
     43         <activity android:name="Support4Demos">
     44             <intent-filter>
     45                 <action android:name="android.intent.action.MAIN" />
     46                 <category android:name="android.intent.category.DEFAULT" />
     47                 <category android:name="android.intent.category.LAUNCHER" />
     48             </intent-filter>
     49         </activity>
     50 
     51         <activity android:name=".app.SendResult"
     52                 android:theme="@style/ThemeDialogWhenLarge">
     53         </activity>
     54         
     55         <!-- Fragment Support Samples -->
     56 
     57         <activity android:name=".app.FragmentAlertDialogSupport"
     58                 android:label="@string/fragment_alert_dialog_support">
     59             <intent-filter>
     60                 <action android:name="android.intent.action.MAIN" />
     61                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
     62             </intent-filter>
     63         </activity>
     64 
     65         <activity android:name=".app.FragmentArgumentsSupport"
     66                 android:label="@string/fragment_arguments_support">
     67             <intent-filter>
     68                 <action android:name="android.intent.action.MAIN" />
     69                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
     70             </intent-filter>
     71         </activity>
     72 
     73         <activity android:name=".app.FragmentCustomAnimationSupport"
     74                 android:label="@string/fragment_custom_animation_support">
     75             <intent-filter>
     76                 <action android:name="android.intent.action.MAIN" />
     77                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
     78             </intent-filter>
     79         </activity>
     80 
     81         <activity android:name=".app.FragmentHideShowSupport"
     82                 android:label="@string/fragment_hide_show_support"
     83                 android:windowSoftInputMode="stateUnchanged">
     84             <intent-filter>
     85                 <action android:name="android.intent.action.MAIN" />
     86                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
     87             </intent-filter>
     88         </activity>
     89 
     90         <activity android:name=".app.FragmentContextMenuSupport"
     91                 android:label="@string/fragment_context_menu_support">
     92             <intent-filter>
     93                 <action android:name="android.intent.action.MAIN" />
     94                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
     95             </intent-filter>
     96         </activity>
     97 
     98         <activity android:name=".app.FragmentDialogSupport"
     99                 android:label="@string/fragment_dialog_support">
    100             <intent-filter>
    101                 <action android:name="android.intent.action.MAIN" />
    102                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    103             </intent-filter>
    104         </activity>
    105 
    106         <activity android:name=".app.FragmentDialogOrActivitySupport"
    107                 android:label="@string/fragment_dialog_or_activity_support">
    108             <intent-filter>
    109                 <action android:name="android.intent.action.MAIN" />
    110                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    111             </intent-filter>
    112         </activity>
    113 
    114         <activity android:name=".app.FragmentLayoutSupport"
    115                 android:label="@string/fragment_layout_support">
    116             <intent-filter>
    117                 <action android:name="android.intent.action.MAIN" />
    118                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    119             </intent-filter>
    120         </activity>
    121 
    122         <activity android:name=".app.FragmentListArraySupport"
    123                 android:label="@string/fragment_list_array_support">
    124             <intent-filter>
    125                 <action android:name="android.intent.action.MAIN" />
    126                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    127             </intent-filter>
    128         </activity>
    129 
    130         <activity android:name=".app.FragmentLayoutSupport$DetailsActivity" />
    131 
    132         <activity android:name=".app.FragmentMenuSupport"
    133                 android:label="@string/fragment_menu_support">
    134             <intent-filter>
    135                 <action android:name="android.intent.action.MAIN" />
    136                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    137             </intent-filter>
    138         </activity>
    139 
    140         <activity android:name=".app.FragmentNestingTabsSupport"
    141                 android:label="@string/fragment_nesting_tabs_support">
    142             <intent-filter>
    143                 <action android:name="android.intent.action.MAIN" />
    144                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    145             </intent-filter>
    146         </activity>
    147         
    148         <activity android:name=".app.FragmentRetainInstanceSupport"
    149                 android:label="@string/fragment_retain_instance_support">
    150             <intent-filter>
    151                 <action android:name="android.intent.action.MAIN" />
    152                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    153             </intent-filter>
    154         </activity>
    155 
    156         <activity android:name=".app.FragmentReceiveResultSupport"
    157                 android:label="@string/fragment_receive_result_support">
    158             <intent-filter>
    159                 <action android:name="android.intent.action.MAIN" />
    160                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    161             </intent-filter>
    162         </activity>
    163 
    164         <activity android:name=".app.FragmentStackSupport"
    165                 android:label="@string/fragment_stack_support">
    166             <intent-filter>
    167                 <action android:name="android.intent.action.MAIN" />
    168                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    169             </intent-filter>
    170         </activity>
    171 
    172         <activity android:name=".app.FragmentTabs"
    173                 android:label="@string/fragment_tabs">
    174             <intent-filter>
    175                 <action android:name="android.intent.action.MAIN" />
    176                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    177             </intent-filter>
    178         </activity>
    179 
    180         <activity android:name=".app.FragmentTabsPager"
    181                 android:label="@string/fragment_tabs_pager">
    182             <intent-filter>
    183                 <action android:name="android.intent.action.MAIN" />
    184                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    185             </intent-filter>
    186         </activity>
    187 
    188         <activity android:name=".app.FragmentPagerSupport"
    189                 android:label="@string/fragment_pager_support">
    190             <intent-filter>
    191                 <action android:name="android.intent.action.MAIN" />
    192                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    193             </intent-filter>
    194         </activity>
    195 
    196         <activity android:name=".app.FragmentStatePagerSupport"
    197                 android:label="@string/fragment_state_pager_support">
    198             <intent-filter>
    199                 <action android:name="android.intent.action.MAIN" />
    200                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    201             </intent-filter>
    202         </activity>
    203 
    204         <activity android:name=".app.LoaderCursorSupport"
    205                 android:label="@string/loader_cursor_support">
    206             <intent-filter>
    207                 <action android:name="android.intent.action.MAIN" />
    208                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    209             </intent-filter>
    210         </activity>
    211 
    212         <activity android:name=".app.LoaderRetainedSupport"
    213                 android:label="@string/loader_retained_support">
    214             <intent-filter>
    215                 <action android:name="android.intent.action.MAIN" />
    216                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    217             </intent-filter>
    218         </activity>
    219         
    220         <activity android:name=".app.LoaderCustomSupport"
    221                 android:label="@string/loader_custom_support">
    222             <intent-filter>
    223                 <action android:name="android.intent.action.MAIN" />
    224                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    225             </intent-filter>
    226         </activity>
    227 
    228         <activity android:name=".app.LoaderThrottleSupport"
    229                 android:label="@string/loader_throttle_support">
    230             <intent-filter>
    231                 <action android:name="android.intent.action.MAIN" />
    232                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    233             </intent-filter>
    234         </activity>
    235         <provider android:name=".app.LoaderThrottleSupport$SimpleProvider"
    236                   android:authorities="com.example.android.apis.supportv4.app.LoaderThrottle" />
    237 
    238         <activity android:name=".app.SimpleJobIntentController"
    239             android:label="@string/simple_job_intent_controller">
    240             <intent-filter>
    241                 <action android:name="android.intent.action.MAIN" />
    242                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    243             </intent-filter>
    244         </activity>
    245 
    246         <service android:name=".app.SimpleJobIntentService"
    247             android:permission="android.permission.BIND_JOB_SERVICE" />
    248 
    249         <activity android:name=".content.LocalServiceBroadcaster"
    250                 android:label="@string/local_service_broadcaster">
    251             <intent-filter>
    252                 <action android:name="android.intent.action.MAIN" />
    253                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    254             </intent-filter>
    255         </activity>
    256         <service android:name=".content.LocalServiceBroadcaster$LocalService"
    257                 android:stopWithTask="true" />
    258 
    259         <activity android:name=".content.SimpleWakefulController"
    260                   android:label="@string/simple_wakeful_controller">
    261             <intent-filter>
    262                 <action android:name="android.intent.action.MAIN" />
    263                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    264             </intent-filter>
    265         </activity>
    266 
    267         <receiver android:name=".content.SimpleWakefulReceiver" />
    268         <service android:name=".content.SimpleWakefulService" />
    269 
    270         <activity android:name=".accessibility.AccessibilityManagerSupportActivity"
    271                 android:label="@string/accessibility_manager_title">
    272             <intent-filter>
    273                 <action android:name="android.intent.action.MAIN" />
    274                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    275             </intent-filter>
    276         </activity>
    277 
    278         <activity android:name=".accessibility.AccessibilityDelegateSupportActivity"
    279                 android:label="@string/accessibility_delegate_title">
    280             <intent-filter>
    281                 <action android:name="android.intent.action.MAIN" />
    282                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    283             </intent-filter>
    284         </activity>
    285 
    286         <activity android:name=".accessibility.AccessibilityRoleDescriptionSupportActivity"
    287                 android:label="@string/accessibility_roledescription_title">
    288             <intent-filter>
    289                 <action android:name="android.intent.action.MAIN" />
    290                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    291             </intent-filter>
    292         </activity>
    293 
    294         <activity android:name=".app.SharingSupport"
    295                   android:label="@string/sharing_support_title">
    296             <intent-filter>
    297                 <action android:name="android.intent.action.MAIN" />
    298                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    299             </intent-filter>
    300         </activity>
    301 
    302         <activity android:name=".app.SharingReceiverSupport"
    303                   android:label="@string/sharing_receiver_title">
    304             <intent-filter>
    305                 <action android:name="android.intent.action.SEND" />
    306                 <action android:name="android.intent.action.SEND_MULTIPLE" />
    307                 <data android:mimeType="text/plain" />
    308                 <category android:name="android.intent.category.DEFAULT" />
    309             </intent-filter>
    310         </activity>
    311 
    312         <activity android:name=".text.BidiFormatterSupport"
    313                   android:label="@string/bidiformatter_support_title">
    314             <intent-filter>
    315                 <action android:name="android.intent.action.MAIN" />
    316                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    317             </intent-filter>
    318         </activity>
    319 
    320         <activity android:name=".view.ViewPagerActivity"
    321                   android:label="@string/view_pager_layout_support">
    322             <intent-filter>
    323                 <action android:name="android.intent.action.MAIN" />
    324                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    325             </intent-filter>
    326         </activity>
    327 
    328         <activity android:name=".widget.SwipeRefreshLayoutActivityList"
    329                   android:label="@string/swipe_list"
    330                   android:theme="@style/ThemeHoloLight">
    331             <intent-filter>
    332                 <action android:name="android.intent.action.MAIN" />
    333                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    334             </intent-filter>
    335         </activity>
    336 
    337         <activity android:name=".widget.SwipeRefreshLayoutActivityTextView"
    338                   android:label="@string/swipe_text"
    339                   android:theme="@style/ThemeHoloLight">
    340             <intent-filter>
    341                 <action android:name="android.intent.action.MAIN" />
    342                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    343             </intent-filter>
    344         </activity>
    345 
    346         <activity android:name=".widget.SwipeRefreshLayoutActivityNestedScrollView"
    347                   android:label="@string/swipe_nested_sv"
    348                   android:theme="@style/ThemeHoloLight">
    349             <intent-filter>
    350                 <action android:name="android.intent.action.MAIN" />
    351                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    352             </intent-filter>
    353         </activity>
    354 
    355 
    356         <activity android:name=".widget.ContentLoadingProgressBarActivity"
    357                   android:label="@string/content_loading_progress_bar">
    358             <intent-filter>
    359                 <action android:name="android.intent.action.MAIN" />
    360                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    361             </intent-filter>
    362         </activity>
    363 
    364         <activity android:name=".widget.SlidingPaneLayoutActivity"
    365                   android:label="@string/sliding_pane_layout_support">
    366             <intent-filter>
    367                 <action android:name="android.intent.action.MAIN" />
    368                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    369             </intent-filter>
    370         </activity>
    371 
    372         <activity android:name=".widget.ExploreByTouchHelperActivity"
    373                   android:label="@string/explore_by_touch_helper_support">
    374             <intent-filter>
    375                 <action android:name="android.intent.action.MAIN" />
    376                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    377             </intent-filter>
    378         </activity>
    379 
    380         <provider android:authorities="com.example.supportv4.content.sharingsupportprovider"
    381                   android:name=".content.SharingSupportProvider" />
    382 
    383         <!-- FileProvider Example -->
    384 
    385         <activity android:name=".content.FileProviderExample"
    386                 android:label="@string/file_provider_example">
    387             <intent-filter>
    388                 <action android:name="android.intent.action.MAIN" />
    389                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    390             </intent-filter>
    391         </activity>
    392 
    393         <activity android:name=".widget.NestedScrollActivity"
    394                   android:label="@string/nested_scroll">
    395             <intent-filter>
    396                 <action android:name="android.intent.action.MAIN" />
    397                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    398             </intent-filter>
    399         </activity>
    400 
    401         <activity android:name=".graphics.RoundedBitmapDrawableActivity"
    402             android:label="Graphics/RoundedBitmapDrawable">
    403             <intent-filter>
    404                 <action android:name="android.intent.action.MAIN" />
    405                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    406             </intent-filter>
    407         </activity>
    408 
    409         <activity android:name=".graphics.DrawableCompatActivity"
    410                   android:label="Graphics/DrawableCompat">
    411             <intent-filter>
    412                 <action android:name="android.intent.action.MAIN" />
    413                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    414             </intent-filter>
    415         </activity>
    416 
    417 <!-- BEGIN_INCLUDE(file_provider_declaration) -->
    418         <provider
    419             android:name="android.support.v4.content.FileProvider"
    420             android:authorities="com.example.android.supportv4.my_files"
    421             android:grantUriPermissions="true"
    422             android:exported="false">
    423             <meta-data
    424                 android:name="android.support.FILE_PROVIDER_PATHS"
    425                 android:resource="@xml/my_paths" />
    426         </provider>
    427 <!-- END_INCLUDE(file_provider_declaration) -->
    428 
    429         <!-- MediaBrowserCompat Sample -->
    430         <activity android:name=".media.MediaBrowserSupport"
    431             android:label="@string/media_browser_support">
    432             <intent-filter>
    433                 <action android:name="android.intent.action.MAIN" />
    434                 <category android:name="com.example.android.supportv4.SUPPORT4_SAMPLE_CODE" />
    435             </intent-filter>
    436         </activity>
    437 
    438         <!-- (OPTIONAL) use this meta data to indicate which icon should be used in media
    439             notifications (for example, when the music changes and the user is
    440             looking at another app) -->
    441         <meta-data android:name="com.google.android.gms.car.notification.SmallIcon"
    442             android:resource="@drawable/ic_notification" />
    443 
    444         <!--
    445              (OPTIONAL) use this meta data to override the theme from which Android Auto will
    446              look for colors. If you don't set this, Android Auto will look
    447              for color attributes in your application theme.
    448         -->
    449         <meta-data android:name="com.google.android.gms.car.application.theme"
    450             android:resource="@style/CarTheme" />
    451 
    452         <service android:name=".media.MediaBrowserServiceSupport"
    453             android:exported="true" android:process=":service">
    454             <intent-filter>
    455                 <action android:name="android.media.browse.MediaBrowserService" />
    456             </intent-filter>
    457         </service>
    458 
    459         <receiver android:name="android.support.v4.media.session.MediaButtonReceiver" >
    460             <intent-filter>
    461                 <action android:name="android.intent.action.MEDIA_BUTTON" />
    462             </intent-filter>
    463         </receiver>
    464 
    465     </application>
    466 </manifest>
    467