/here-android-sdk-examples

Java-based projects using the HERE SDK for Android.

Primary LanguageJavaApache License 2.0Apache-2.0

Build Status

HERE SDK for Android example projects

Copyright (c) 2011-2018 HERE Europe B.V.

This repository holds a series of Java-based projects using the HERE SDK for Android. More information about the API can be found on the HERE Developer Portal's Mobile SDKs page.

This set of individual, use-case based projects is designed to be cloned by developers for their own use.

Note: In order to be able to build the examples, you have to sign up for a 90-day Free Trial. After signing in with a HERE account, follow these steps to download the Premium SDK:

  1. Choose to Generate App ID and App Code for use with the Android SDK: Generate App ID and App Code

  2. Enter the package name of the example you want to build, e.g. com.here.android.example.map.basic. The package name entered here must match the name in your app: Enter package name

  3. Click on GENERATE to obtain the App ID, App Code, and License Key: Enter package name

  4. CLick on Download SDK to get a files named like HERE_Android_SDK_Premium_v3.3.1_205.zip (your version number might differ).

  5. Extract HERE_Android_SDK_Premium_v3.3.1_205.zip as well as the contained HERE-sdk.zip.

  6. Copy the contained HERE-sdk/libs/HERE-sdk.aar file to your example's libs directory. Again taking the map-rendering example, the libs directory would be here.

  7. Replace the instances of the {YOUR_APP_ID}, {YOUR_APP_CODE} and {YOUR_LICENSE_KEY} placeholders in the example's AndroidManifest.xml with your obtained values. Yet again looking at the map-rendering examples, this would be here, here and here.

  8. Replace the instances of the {YOUR_LABEL_NAME} and {YOUR_INTENT_NAME} placeholders in the example's AndroidManifest.xml with your own custom values. Do not reuse HERE SDK defaults.

  9. Launch Android Studio and import the example's build.gradle file..

  10. Run the app.

License

Unless otherwise noted in LICENSE files for specific files or directories, the LICENSE in the root applies to all content in this repository.

Android Premium SDK

All of the following projects use version 3.10 of the Android Premium SDK