1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright 2015 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.directshare"
19    android:versionCode="1"
20    android:versionName="1.0">
21
22    <application
23        android:allowBackup="true"
24        android:icon="@mipmap/ic_launcher"
25        android:label="@string/app_name"
26        android:theme="@style/DirectShareTheme">
27
28        <activity
29            android:name=".MainActivity"
30            android:label="@string/app_name">
31            <intent-filter>
32                <action android:name="android.intent.action.MAIN" />
33                <category android:name="android.intent.category.LAUNCHER" />
34            </intent-filter>
35        </activity>
36
37        <activity
38            android:name=".SendMessageActivity"
39            android:label="@string/app_name"
40            android:theme="@style/DirectShareDialogTheme">
41            <intent-filter>
42                <action android:name="android.intent.action.SEND" />
43                <category android:name="android.intent.category.DEFAULT" />
44                <data android:mimeType="text/plain" />
45            </intent-filter>
46            <meta-data
47                android:name="android.service.chooser.chooser_target_service"
48                android:value=".SampleChooserTargetService" />
49        </activity>
50
51        <activity
52            android:name=".SelectContactActivity"
53            android:label="@string/app_name"
54            android:theme="@style/DirectShareDialogTheme" />
55
56        <service
57            android:name=".SampleChooserTargetService"
58            android:label="@string/app_name"
59            android:permission="android.permission.BIND_CHOOSER_TARGET_SERVICE">
60            <intent-filter>
61                <action android:name="android.service.chooser.ChooserTargetService" />
62            </intent-filter>
63        </service>
64
65    </application>
66
67</manifest>
68