این وبسایت یک نسخه آزمایشی از سایت developer android می‌باشد که در حال ترجمه می‌باشد.
برای پیوستن به تیم ترجمه و خواندن مستندات اینجا کلیک کنید.
SpeedTracker / Wearable /

AndroidManifest.xml

1
<?xml version="1.0" encoding="utf-8"?>
2
<!-- Copyright (C) 2014 The Android Open Source Project
3
 
4
     Licensed under the Apache License, Version 2.0 (the "License");
5
     you may not use this file except in compliance with the License.
6
     You may obtain a copy of the License at
7
 
8
          http://www.apache.org/licenses/LICENSE-2.0
9
 
10
     Unless required by applicable law or agreed to in writing, software
11
     distributed under the License is distributed on an "AS IS" BASIS,
12
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
     See the License for the specific language governing permissions and
14
     limitations under the License.
15
-->
16
 
17
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18
          package="com.example.android.wearable.speedtracker">
19
 
20
    <uses-feature android:name="android.hardware.type.watch"/>
21
    <uses-feature android:name="android.hardware.location.gps" android:required="true" />
22
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>\
23
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
24
 
25
    <uses-sdk
26
        android:minSdkVersion="20"
27
        android:targetSdkVersion="21" />
28
 
29
    <application
30
        android:allowBackup="true"
31
        android:icon="@drawable/ic_launcher"
32
        android:label="@string/app_name"
33
        android:theme="@android:style/Theme.DeviceDefault">
34
        <meta-data android:name="com.google.android.gms.version"
35
                   android:value="@integer/google_play_services_version"/>
36
        <activity
37
            android:name=".WearableMainActivity"
38
            android:label="@string/app_name">
39
            <intent-filter>
40
                <action android:name="android.intent.action.MAIN"/>
41
 
42
                <category android:name="android.intent.category.LAUNCHER"/>
43
            </intent-filter>
44
        </activity>
45
        <activity
46
            android:name="com.example.android.wearable.speedtracker.SpeedPickerActivity">
47
            <intent-filter>
48
                <action android:name="android.intent.action.MAIN"/>
49
            </intent-filter>
50
        </activity>
51
        <activity
52
            android:name=".ui.LocationSettingActivity">
53
            <inte