Search code examples
androidhere-api

Initialize SDK with licence programmatically


In here SDK 3.4 release note, we can read: "Applications can now dynamically initialize the HERE Android SDK with a license key rather than hard coding the license key in the application's Android manifest file."

This is a nice addition, but I can't find documentation. The current doc regarding authentication is only presenting the old manifest.xml way (https://developer.here.com/documentation/android-premium/topics/credentials.html)

Can you point me out to some relevant documentation?


Solution

  • Create an ApplicationContext object to set the appid, appcode and permission key. After that, use the new MapEngine#init(ApplicationContext, OnEngineInitListener) instead.