1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2013 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.contactslist" 19 android:versionCode="1" 20 android:versionName="1.0" > 21 22 <uses-sdk 23 android:minSdkVersion="5" 24 android:targetSdkVersion="17" /> 25 26 <uses-permission android:name="android.permission.READ_CONTACTS" /> 27 28 <application 29 android:description="@string/app_description" 30 android:icon="@drawable/ic_launcher" 31 android:label="@string/app_name" 32 android:theme="@style/AppTheme" 33 android:allowBackup="true"> 34 35 <!-- When the soft keyboard is showing the views of this activity should be resized in the 36 remaining space so that inline searching can take place without having to dismiss the 37 keyboard to see all the content. Therefore windowSoftInputMode is set to 38 adjustResize. --> 39 <activity 40 android:name=".ui.ContactsListActivity" 41 android:label="@string/activity_contacts_list" 42 android:windowSoftInputMode="adjustResize"> 43 <intent-filter> 44 <action android:name="android.intent.action.MAIN" /> 45 <category android:name="android.intent.category.LAUNCHER" /> 46 </intent-filter> 47 <!-- Add intent-filter for search intent action and specify searchable configuration 48 via meta-data tag. This allows this activity to receive search intents via the 49 system hooks. In this sample this is only used on older OS versions (pre-Honeycomb) 50 via the activity search dialog. See the Search API guide for more information: 51 http://developer.android.com/guide/topics/search/search-dialog.html --> 52 <intent-filter> 53 <action android:name="android.intent.action.SEARCH" /> 54 </intent-filter> 55 <meta-data android:name="android.app.searchable" 56 android:resource="@xml/searchable_contacts" /> 57 </activity> 58 <activity 59 android:name=".ui.ContactDetailActivity" 60 android:label="@string/activity_contact_detail" 61 android:parentActivityName=".ui.ContactsListActivity"> 62 <!-- Define hierarchical parent of this activity, both via the system 63 parentActivityName attribute (added in API Level 16) and via meta-data annotation. 64 This allows use of the support library NavUtils class in a way that works over 65 all Android versions. See the "Tasks and Back Stack" guide for more information: 66 http://developer.android.com/guide/components/tasks-and-back-stack.html 67 --> 68 <meta-data android:name="android.support.PARENT_ACTIVITY" 69 android:value=".ui.ContactsListActivity" /> 70 </activity> 71 </application> 72</manifest> 73