1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2013 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.supportv7">
24    <!-- Permission for INTERNET is required for streaming video content
25         from the web, it's not required otherwise. -->
26    <uses-permission android:name="android.permission.INTERNET" />
27    <!-- Permission for SYSTEM_ALERT_WINDOW is only required for emulating
28         remote display using system alert window. -->
29    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
30    <!-- Permission for READ_EXTERNAL_STORAGE is explicitly required for
31         reading images from the media store from API v19+. -->
32    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
33
34    <!-- Permission for ACCESS_COARSE_LOCATION is required for DayNight themes. -->
35    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
36
37    <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="21" />
38
39    <!-- The smallest screen this app works on is a phone.  The app will
40         scale its UI to larger screens but doesn't make good use of them
41         so allow the compatibility mode button to be shown (mostly because
42         this is just convenient for testing). -->
43    <supports-screens android:requiresSmallestWidthDp="320"
44            android:compatibleWidthLimitDp="480" />
45
46    <application android:label="@string/activity_sample_code"
47            android:supportsRtl="true"
48            android:icon="@drawable/app_sample_code"
49            android:hardwareAccelerated="true">
50
51        <activity android:name="Support7Demos">
52            <intent-filter>
53                <action android:name="android.intent.action.MAIN" />
54                <category android:name="android.intent.category.DEFAULT" />
55                <category android:name="android.intent.category.LAUNCHER" />
56            </intent-filter>
57        </activity>
58        <receiver android:name="com.example.android.supportv7.media.SampleMediaButtonReceiver">
59            <intent-filter>
60                <action android:name="android.intent.action.MEDIA_BUTTON" />
61            </intent-filter>
62        </receiver>
63        <!-- MediaRouter Support Samples -->
64
65        <activity android:name=".media.SampleMediaRouterActivity"
66                android:configChanges="orientation|screenSize"
67                android:label="@string/sample_media_router_activity_dark"
68                android:theme="@style/Theme.SampleMediaRouter">
69            <intent-filter>
70                <action android:name="android.intent.action.MAIN" />
71                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
72            </intent-filter>
73        </activity>
74
75        <activity android:name=".media.SampleMediaRouterActivity$Light"
76                android:configChanges="orientation|screenSize"
77                android:label="@string/sample_media_router_activity_light"
78                android:theme="@style/Theme.SampleMediaRouter.Light">
79            <intent-filter>
80                <action android:name="android.intent.action.MAIN" />
81                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
82            </intent-filter>
83        </activity>
84
85        <activity android:name=".media.SampleMediaRouterActivity$LightWithDarkActionBar"
86                android:configChanges="orientation|screenSize"
87                android:label="@string/sample_media_router_activity_light_with_dark_action_bar"
88                android:theme="@style/Theme.SampleMediaRouter.Light.DarkActionBar">
89            <intent-filter>
90                <action android:name="android.intent.action.MAIN" />
91                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
92            </intent-filter>
93        </activity>
94
95        <activity android:name=".media.SampleMediaRouteSettingsActivity"
96                android:label="@string/sample_media_route_settings_activity"
97                android:theme="@style/Theme.AppCompat.Light">
98            <intent-filter>
99                <action android:name="android.intent.action.MAIN" />
100            </intent-filter>
101        </activity>
102
103        <service android:name=".media.SampleMediaRouteProviderService"
104                android:label="@string/sample_media_route_provider_service"
105                android:process=":mrp">
106            <intent-filter>
107                <action android:name="android.media.MediaRouteProviderService" />
108            </intent-filter>
109        </service>
110
111        <!-- GridLayout Support Samples -->
112
113        <activity android:name=".view.GridLayout1"
114                android:label="@string/grid_layout_1">
115            <intent-filter>
116                <action android:name="android.intent.action.MAIN" />
117                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
118            </intent-filter>
119        </activity>
120
121        <activity android:name=".view.GridLayout2"
122                android:label="@string/grid_layout_2">
123            <intent-filter>
124                <action android:name="android.intent.action.MAIN" />
125                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
126            </intent-filter>
127        </activity>
128
129        <activity android:name=".view.GridLayout3"
130                android:label="@string/grid_layout_3">
131            <intent-filter>
132                <action android:name="android.intent.action.MAIN" />
133                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
134            </intent-filter>
135        </activity>
136
137        <!-- Action Bar Samples -->
138        <activity android:name=".app.ActionBarMechanics"
139                android:label="@string/action_bar_mechanics"
140                android:theme="@style/Theme.AppCompat">
141            <intent-filter>
142                <action android:name="android.intent.action.MAIN" />
143                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
144            </intent-filter>
145        </activity>
146
147        <activity android:name=".app.SearchActivity">
148            <intent-filter>
149                <action android:name="android.intent.action.SEARCH" />
150            </intent-filter>
151
152            <meta-data android:name="android.app.searchable"
153                       android:resource="@xml/searchable" />
154
155        </activity>
156
157        <activity android:name=".app.ActionBarUsage"
158                android:label="@string/action_bar_usage"
159                android:theme="@style/Theme.AppCompat">
160            <intent-filter>
161                <action android:name="android.intent.action.MAIN" />
162                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
163            </intent-filter>
164        </activity>
165
166        <activity android:name=".app.ActionBarDisplayOptions"
167                android:label="@string/action_bar_display_options"
168                android:logo="@drawable/apidemo_androidlogo"
169                android:theme="@style/Theme.AppCompat">
170            <intent-filter>
171                <action android:name="android.intent.action.MAIN" />
172                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
173            </intent-filter>
174        </activity>
175
176        <activity android:name=".app.ActionBarTabs"
177                android:label="@string/action_bar_tabs"
178                android:theme="@style/Theme.Custom">
179            <intent-filter>
180                <action android:name="android.intent.action.MAIN" />
181                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
182            </intent-filter>
183        </activity>
184
185        <activity android:name=".app.ActionBarSettingsActionProviderActivity"
186                android:label="@string/action_bar_settings_action_provider"
187                android:theme="@style/Theme.AppCompat.Light.DarkActionBar">
188            <intent-filter>
189                <action android:name="android.intent.action.MAIN" />
190                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
191            </intent-filter>
192        </activity>
193
194        <activity android:name=".app.ActionBarShareActionProvider"
195                  android:label="@string/action_bar_share_action_provider"
196                  android:theme="@style/Theme.AppCompat.Light.DarkActionBar">
197            <intent-filter>
198                <action android:name="android.intent.action.MAIN" />
199                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
200            </intent-filter>
201        </activity>
202
203        <activity android:name=".app.ActionBarFragmentMenu"
204                android:label="@string/action_bar_fragment_menu"
205                android:theme="@style/Theme.AppCompat">
206            <intent-filter>
207                <action android:name="android.intent.action.MAIN" />
208                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
209            </intent-filter>
210        </activity>
211
212        <activity android:name=".app.ActionBarPreferences"
213                  android:label="@string/action_bar_preferences"
214                  android:theme="@style/Theme.AppCompat">
215            <intent-filter>
216                <action android:name="android.intent.action.MAIN" />
217                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
218            </intent-filter>
219        </activity>
220
221        <activity android:name=".app.ActionBarActionMode"
222                  android:label="@string/action_bar_action_mode"
223                  android:theme="@style/Theme.Custom">
224            <intent-filter>
225                <action android:name="android.intent.action.MAIN" />
226                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
227            </intent-filter>
228        </activity>
229
230        <activity android:name=".app.ActionBarHideOnScroll"
231                  android:label="@string/action_bar_hide_scroll"
232                  android:theme="@style/Theme.AppCompat.Light.DarkActionBar">
233            <intent-filter>
234                <action android:name="android.intent.action.MAIN" />
235                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
236            </intent-filter>
237        </activity>
238
239        <activity android:name=".app.AppCompatWidgetsButtons"
240                  android:label="@string/appcompat_widgets_buttons"
241                  android:theme="@style/Theme.AppCompat.Light.DarkActionBar">
242            <intent-filter>
243                <action android:name="android.intent.action.MAIN" />
244                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
245            </intent-filter>
246        </activity>
247
248        <activity android:name=".app.AppCompatWidgetsSpinners"
249                  android:label="@string/appcompat_widgets_spinners"
250                  android:theme="@style/Theme.AppCompat.Light.DarkActionBar">
251            <intent-filter>
252                <action android:name="android.intent.action.MAIN" />
253                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
254            </intent-filter>
255        </activity>
256
257        <activity android:name=".app.AppCompatWidgetsTextInput"
258                  android:label="@string/appcompat_widgets_text_input"
259                  android:theme="@style/Theme.AppCompat.Light.DarkActionBar">
260            <intent-filter>
261                <action android:name="android.intent.action.MAIN" />
262                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
263            </intent-filter>
264        </activity>
265
266        <activity android:name=".app.ToolbarUsage"
267                  android:label="@string/toolbar_usage"
268                  android:theme="@style/Theme.Custom.NoActionBar">
269            <intent-filter>
270                <action android:name="android.intent.action.MAIN" />
271                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
272            </intent-filter>
273
274            <meta-data
275                    android:name="android.app.default_searchable"
276                    android:value=".app.SearchActivity" />
277        </activity>
278
279        <activity android:name=".app.ToolbarDisplayOptions"
280                  android:label="@string/toolbar_display_options"
281                  android:theme="@style/Theme.AppCompat.Light.NoActionBar">
282            <intent-filter>
283                <action android:name="android.intent.action.MAIN" />
284                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
285            </intent-filter>
286        </activity>
287
288        <activity android:name=".app.ToolbarFragmentPagerMenu"
289                  android:label="@string/toolbar_fragment_pager"
290                  android:theme="@style/Theme.AppCompat.Light.NoActionBar">
291            <intent-filter>
292                <action android:name="android.intent.action.MAIN" />
293                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
294            </intent-filter>
295        </activity>
296
297        <activity android:name=".app.ToolbarActionMode"
298                  android:label="@string/toolbar_action_mode"
299                  android:theme="@style/Theme.AppCompat.Light.NoActionBar">
300            <intent-filter>
301                <action android:name="android.intent.action.MAIN" />
302                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
303            </intent-filter>
304        </activity>
305
306        <activity android:name=".app.DialogUsage"
307                  android:label="@string/dialog_usage"
308                  android:theme="@style/Theme.AppCompat.Light">
309            <intent-filter>
310                <action android:name="android.intent.action.MAIN" />
311                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
312            </intent-filter>
313        </activity>
314
315        <activity android:name=".app.AlertDialogUsage"
316                  android:label="@string/alert_dialog_usage"
317                  android:theme="@style/Theme.AppCompat.Light">
318            <intent-filter>
319                <action android:name="android.intent.action.MAIN" />
320                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
321            </intent-filter>
322        </activity>
323
324        <activity android:name=".app.DialogFragmentUsage"
325                  android:label="@string/dialogfragment_usage"
326                  android:theme="@style/Theme.AppCompat.Light">
327            <intent-filter>
328                <action android:name="android.intent.action.MAIN" />
329                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
330            </intent-filter>
331        </activity>
332
333        <activity android:name=".app.AppCompatNightModeActivity"
334                  android:label="@string/mode_night_activity_title"
335                  android:theme="@style/Theme.AppCompat.DayNight">
336            <intent-filter>
337                <action android:name="android.intent.action.MAIN" />
338                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
339            </intent-filter>
340        </activity>
341
342        <activity android:name=".app.AppCompatNightModeDialog"
343                  android:label="@string/mode_night_dialog_title"
344                  android:theme="@style/Theme.AppCompat">
345            <intent-filter>
346                <action android:name="android.intent.action.MAIN" />
347                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
348            </intent-filter>
349        </activity>
350
351        <activity android:name=".app.AppCompatNightModeAlertDialog"
352                  android:label="@string/mode_night_alertdialog_title"
353                  android:theme="@style/Theme.AppCompat">
354            <intent-filter>
355                <action android:name="android.intent.action.MAIN" />
356                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
357            </intent-filter>
358        </activity>
359
360        <activity android:name=".app.AppCompatAnimatedVector"
361                  android:label="@string/appcompat_vector_title"
362                  android:theme="@style/Theme.AppCompat.Light">
363            <intent-filter>
364                <action android:name="android.intent.action.MAIN" />
365                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
366            </intent-filter>
367        </activity>
368
369        <provider android:name=".app.RecentSuggestionsProvider"
370                  android:authorities="com.example.android.supportv7.RecentSuggestionsProvider" />
371
372        <!-- RecyclerView samples -->
373        <activity android:name=".widget.RecyclerViewActivity"
374                  android:label="@string/recycler_view"
375                  android:theme="@style/Theme.AppCompat">
376            <intent-filter>
377                <action android:name="android.intent.action.MAIN" />
378                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
379            </intent-filter>
380        </activity>
381
382        <activity android:name=".widget.AnimatedRecyclerView"
383                  android:label="@string/animated_recycler_view"
384                  android:theme="@style/Theme.AppCompat">
385            <intent-filter>
386                <action android:name="android.intent.action.MAIN" />
387                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
388            </intent-filter>
389        </activity>
390
391        <activity android:name=".widget.LinearLayoutManagerActivity"
392                  android:label="@string/linear_layout_manager"
393                  android:theme="@style/Theme.AppCompat">
394            <intent-filter>
395                <action android:name="android.intent.action.MAIN" />
396                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
397            </intent-filter>
398        </activity>
399
400        <activity android:name=".util.SortedListActivity"
401                  android:label="@string/sorted_list_activity"
402                  android:windowSoftInputMode="adjustResize"
403                  android:theme="@style/Theme.AppCompat">
404            <intent-filter>
405                <action android:name="android.intent.action.MAIN" />
406                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
407            </intent-filter>
408        </activity>
409
410        <activity android:name=".widget.GridLayoutManagerActivity"
411                  android:label="@string/grid_layout_manager"
412                  android:theme="@style/Theme.AppCompat">
413            <intent-filter>
414                <action android:name="android.intent.action.MAIN" />
415                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
416            </intent-filter>
417        </activity>
418
419        <activity android:name=".widget.StaggeredGridLayoutManagerActivity"
420                  android:label="@string/staggered_grid_layout_manager"
421                  android:theme="@style/Theme.AppCompat">
422            <intent-filter>
423                <action android:name="android.intent.action.MAIN" />
424                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
425            </intent-filter>
426        </activity>
427
428        <activity android:name=".widget.AsyncListUtilActivity"
429                  android:label="@string/async_list_util"
430                  android:theme="@style/Theme.AppCompat">
431            <intent-filter>
432                <action android:name="android.intent.action.MAIN" />
433                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
434            </intent-filter>
435        </activity>
436
437        <activity android:name=".view.CardViewActivity"
438                  android:label="@string/card_view"
439                  android:theme="@style/Theme.AppCompat.Light.NoActionBar">
440            <intent-filter>
441                <action android:name="android.intent.action.MAIN" />
442                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
443            </intent-filter>
444        </activity>
445
446        <activity android:name=".graphics.PaletteActivity"
447                  android:label="@string/palette"
448                  android:theme="@style/Theme.AppCompat">
449            <intent-filter>
450                <action android:name="android.intent.action.MAIN" />
451                <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
452            </intent-filter>
453        </activity>
454
455        <activity android:name=".graphics.PaletteDetailActivity"
456                  android:label="@string/palette"
457                  android:theme="@style/Theme.AppCompat" />
458
459        <!-- item touch helper demo activities-->
460        <activity android:name=".widget.touch.SwipeToDismissActivity"
461                  android:label="@string/swipe_to_dismiss_activity">
462            <intent-filter>
463                <action android:name="android.intent.action.MAIN"/>
464                <category android:name="com.example.android.supportv7.SAMPLE_CODE"/>
465            </intent-filter>
466        </activity>
467        <activity android:name=".widget.touch.DragAndDropActivity"
468                  android:label="@string/drag_and_drop_activity">
469            <intent-filter>
470                <action android:name="android.intent.action.MAIN"/>
471                <category android:name="com.example.android.supportv7.SAMPLE_CODE"/>
472            </intent-filter>
473        </activity>
474
475        <!-- DrawerLayout demo activity -->
476        <activity android:name=".widget.DrawerLayoutActivity"
477                  android:label="@string/drawer_layout_activity"
478                  android:theme="@style/Theme.SampleDrawerLayout">
479            <intent-filter>
480                <action android:name="android.intent.action.MAIN"/>
481                <category android:name="com.example.android.supportv7.SAMPLE_CODE"/>
482            </intent-filter>
483        </activity>
484
485        <!-- ListPopupWindow demo activity -->
486        <activity android:name=".widget.ListPopupWindowActivity"
487                  android:label="@string/list_popup_window_activity"
488                  android:theme="@style/Theme.AppCompat.Light">
489            <intent-filter>
490                <action android:name="android.intent.action.MAIN"/>
491                <category android:name="com.example.android.supportv7.SAMPLE_CODE"/>
492            </intent-filter>
493        </activity>
494
495        <!-- PopupMenu demo activity -->
496        <activity android:name=".widget.PopupMenuActivity"
497                  android:label="@string/popup_menu_activity"
498                  android:theme="@style/Theme.AppCompat.Light">
499            <intent-filter>
500                <action android:name="android.intent.action.MAIN"/>
501                <category android:name="com.example.android.supportv7.SAMPLE_CODE"/>
502            </intent-filter>
503        </activity>
504    </application>
505
506
507</manifest>
508