HERE SDK for Android (Premium Edition)
SDK for Android Developer's Guide

Add Credentials to the Manifest

You can add your HERE credentials as <meta-data/> attributes to AndroidManifest.xml file as follows:

  1. In your development environment double-click your project's AndroidManifest.xml file and ensure that you are viewing the file in text editor mode.
  2. Within the <application></application> block of tags, add the following markup directly beneath the <activity></activity> tag:
    <meta-data android:name="com.here.android.maps.appid" android:value="{YOUR_APP_ID}"/>
    <meta-data android:name="com.here.android.maps.apptoken" android:value="{YOUR_APP_CODE}"/>
    <meta-data android:name="com.here.android.maps.license.key" android:value="{YOUR_LICENSE_KEY}"/>
  3. Replace {YOUR_APP_ID}, {YOUR_APP_CODE} and {YOUR_LICENSE_KEY} with the appropriate credentials for your application.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.here.android.tutorial">

  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
  <uses-permission android:name="android.permission.INTERNET"/>
  <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

  <application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:hardwareAccelerated="true"
    android:theme="@style/AppTheme">
    <activity android:name=".BasicMapActivity">
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />

        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
    </activity>

    <meta-data
      android:name="com.here.android.maps.appid"
      android:value="{YOUR_APP_ID}" />
    <meta-data
      android:name="com.here.android.maps.apptoken"
      android:value="{YOUR_APP_CODE}" />
    <meta-data
      android:name="com.here.android.maps.license.key"
      android:value="{YOUR_LICENSE_KEY}" />
  </application>

</manifest>
Note: For other available authentication options, see the Identity & Access Management Developer Guide.