Advertisement
Guest User

api

a guest
Jul 28th, 2017
513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.74 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  3.    package="com.codepro.app_maps">
  4.  
  5.     <!--
  6.         The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
  7.         Google Maps Android API v2, but you must specify either coarse or fine
  8.         location permissions for the 'MyLocation' functionality.
  9.    -->
  10.     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
  11.  
  12.     <application
  13.        android:allowBackup="true"
  14.        android:icon="@mipmap/ic_launcher"
  15.        android:label="@string/app_name"
  16.        android:supportsRtl="true"
  17.        android:theme="@style/AppTheme">
  18.  
  19.         <!--
  20.             The API key for Google Maps-based APIs is defined as a string resource.
  21.             (See the file "res/values/google_maps_api.xml").
  22.             Note that the API key is linked to the encryption key used to sign the APK.
  23.             You need a different API key for each encryption key, including the release key that is used to
  24.             sign the APK for publishing.
  25.             You can define the keys for the debug and release targets in src/debug/ and src/release/.
  26.        -->
  27.         <meta-data
  28.            android:name="com.google.android.geo.API_KEY"
  29.            android:value="AIzaxxxxxxxxxxxxxxxxxxxxxxxxxx"/> <!-- API KEY letakkan disini -->
  30.  
  31.         <activity
  32.            android:name=".MapsActivity"
  33.            android:label="@string/title_activity_maps">
  34.             <intent-filter>
  35.                 <action android:name="android.intent.action.MAIN" />
  36.  
  37.                 <category android:name="android.intent.category.LAUNCHER" />
  38.             </intent-filter>
  39.         </activity>
  40.     </application>
  41.  
  42. </manifest>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement