<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.android.wearable.speedtracker" >


    <uses-sdk
        android:minSdkVersion="18"
        android:targetSdkVersion="25" />

    <!-- BEGIN_INCLUDE(manifest) -->

    <!-- Note that all required permissions are declared here in the Android manifest.
         On Android M and above, use of permissions not in the normal permission group are
         requested at run time. -->
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.WAKE_LOCK" />

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
        android:maxSdkVersion="18"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <!-- END_INCLUDE(manifest) -->

    <uses-feature android:name="android.hardware.location.gps" android:required="true" />
    <uses-feature
        android:glEsVersion="0x00020000" android:required="true"/>

    <application
        android:name=".PhoneApplication"
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/Theme.AppCompat.Light" >
        <meta-data
            android:name="com.google.android.maps.v2.API_KEY"
            android:value="@string/map_v2_api_key"/>
        <meta-data android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version"/>
        <activity
            android:name=".PhoneMainActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <service android:name=".db.UpdateService">
            <intent-filter>
                <!-- listeners receive events that match the action and data filters -->
                <action android:name="com.google.android.gms.wearable.DATA_CHANGED" />
                <!-- filters by Constants.PATH. -->
                <data android:scheme="wear" android:host="*" android:pathPrefix="/location"/>
            </intent-filter>
        </service>
    </application>

</manifest>