1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Copyright (C) 2011 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 <manifest xmlns:android="http://schemas.android.com/apk/res/android" 18 package="com.example.android.hcgallery" android:versionCode="2" 19 android:versionName="1.5"> 20 21 <uses-sdk android:minSdkVersion="11" android:targetSdkVersion="14" /> 22 23 <!-- Declares that the app supports devices w/o touch, such as a mouse-driven device 24 or a device that provides only a d-pad for navigation --> 25 <uses-feature android:name="android.hardware.touchscreen" android:required="false" /> 26 <!-- The app uses the camera, but checks for it at runtime and will work without it --> 27 <uses-feature android:name="android.hardware.camera" android:required="false" /> 28 29 <uses-permission android:name="android.permission.CAMERA" /> 30 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 31 32 <application android:label="@string/app_name" 33 android:icon="@drawable/icon" 34 android:logo="@drawable/logo" 35 android:theme="@style/AppTheme.Light" 36 android:hardwareAccelerated="true"> 37 38 <activity android:name=".MainActivity" 39 android:label="@string/app_name" 40 android:launchMode="singleTop"> 41 <intent-filter> 42 <action android:name="android.intent.action.MAIN" /> 43 <category android:name="android.intent.category.LAUNCHER" /> 44 </intent-filter> 45 <intent-filter> 46 <action android:name="com.example.android.hcgallery.action.DIALOG" /> 47 <category android:name="android.intent.category.DEFAULT" /> 48 </intent-filter> 49 </activity> 50 51 <!-- Holds the ContentFragment for small/normal screens --> 52 <activity android:name=".ContentActivity" /> 53 54 <!-- Camera Sample --> 55 <activity android:name=".CameraActivity" 56 android:label="@string/camera_sample" 57 android:screenOrientation="landscape" /> 58 </application> 59 </manifest> 60