Advertisement
Guest User

Manifest.xml

a guest
Nov 14th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 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.example.locationandmap">
  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. <!-- Location if you will use this -->
  11.  
  12. <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
  13. <uses-permission android:name="android.permission.INTERNET" />
  14.  
  15.  
  16. <!-- Maps API needs OpenGL ES 2.0. -->
  17. <uses-feature
  18. android:glEsVersion="0x00020000"
  19. android:required="true" />
  20. <uses-permission android:name="com.example.permission.MAPS_RECEIVE" />
  21. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  22.  
  23. <application
  24. android:allowBackup="true"
  25. android:icon="@mipmap/ic_launcher"
  26. android:label="@string/app_name"
  27. android:roundIcon="@mipmap/ic_launcher_round"
  28. android:supportsRtl="true"
  29. android:theme="@style/AppTheme">
  30.  
  31. <!--
  32. The API key for Google Maps-based APIs is defined as a string resource.
  33. (See the file "res/values/google_maps_api.xml").
  34. Note that the API key is linked to the encryption key used to sign the APK.
  35. You need a different API key for each encryption key, including the release key that is used to
  36. sign the APK for publishing.
  37. You can define the keys for the debug and release targets in src/debug/ and src/release/.
  38. -->
  39. <meta-data
  40. android:name="com.google.android.geo.API_KEY"
  41. android:value="@string/google_maps_key" />
  42.  
  43.  
  44.  
  45. <activity
  46. android:name=".MapsActivity"
  47. android:label="@string/title_activity_maps">
  48. <intent-filter>
  49. <action android:name="android.intent.action.MAIN" />
  50.  
  51. <category android:name="android.intent.category.LAUNCHER" />
  52. </intent-filter>
  53. </activity>
  54. </application>
  55.  
  56. </manifest>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement