· 6 years ago · Sep 01, 2019, 06:44 AM
1manifestmap
2
3<?xml version="1.0" encoding="utf-8"?>
4<manifest xmlns:android="http://schemas.android.com/apk/res/android"
5 package="com.example.dist">
6
7 <!--
8 The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
9 Google Maps Android API v2, but you must specify either coarse or fine
10 location permissions for the 'MyLocation' functionality.
11 -->
12 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
13 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
14 <uses-permission android:name="android.permission.INTERNET"/>
15 <uses-permission android:name="android.permission.SEND_SMS"/>
16
17
18 <application
19 android:allowBackup="true"
20 android:icon="@mipmap/ic_launcher"
21 android:label="@string/app_name"
22 android:roundIcon="@mipmap/ic_launcher_round"
23 android:supportsRtl="true"
24 android:theme="@style/AppTheme">
25
26 <!--
27 The API key for Google Maps-based APIs is defined as a string resource.
28 (See the file "res/values/google_maps_api.xml").
29 Note that the API key is linked to the encryption key used to sign the APK.
30 You need a different API key for each encryption key, including the release key that is used to
31 sign the APK for publishing.
32 You can define the keys for the debug and release targets in src/debug/ and src/release/.
33 -->
34 <meta-data
35 android:name="com.google.android.geo.API_KEY"
36 android:value="@string/google_maps_key" />
37
38 <activity
39 android:name=".MapsActivity"
40 android:label="@string/title_activity_maps">
41 <intent-filter>
42 <action android:name="android.intent.action.MAIN" />
43
44 <category android:name="android.intent.category.LAUNCHER" />
45 </intent-filter>
46 </activity>
47 </application>
48
49</manifest>