Xml文件  |  81行  |  2.97 KB

<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2017 Google Inc.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.android.wearable.wear.messaging">

    <uses-feature android:name="android.hardware.type.watch" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.DeviceDefault">

        <meta-data
            android:name="com.google.android.wearable.standalone"
            android:value="true" />

        <uses-library
            android:name="com.google.android.wearable"
            android:required="false" />

        <!--
        Important Note: When you have a local/native Android Wear app that creates it's own
        notifications, you will want to disable the bridge to the phone.
        -->
        <meta-data
            android:name="com.google.android.wearable.notificationBridgeMode"
            android:value="NO_BRIDGING" />

        <activity
            android:name=".chatlist.ChatListActivity"
            android:label="@string/app_name"
            android:theme="@style/SplashTheme">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity
            android:name=".SignInActivity"
            android:label="@string/sign_in"
            android:theme="@style/BlueTheme" />
        <activity
            android:name=".contacts.ContactsListActivity"
            android:label="@string/activity_contacts"
            android:theme="@style/BlueTheme" />
        <activity
            android:name=".chat.ChatActivity"
            android:label="@string/activity_chat"
            android:theme="@style/BlueTheme" />

        <receiver android:name=".chat.MockIncomingMessageReceiver" android:exported="false">
            <intent-filter>
                <action android:name="com.example.android.wearable.wear.messaging.action.RECEIVE_MESSAGE" />
            </intent-filter>
        </receiver>

        <service android:name=".chat.ReplyToMessageIntentService" android:exported="false" />

    </application>

</manifest>