summaryrefslogtreecommitdiffstats
path: root/samples/browseable/SpeedTracker/Application/AndroidManifest.xml
blob: bf86a10ccf72f8c87895db494c0661a0201e268b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?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>