![]() ![]() Since the HERE SDK encourages the use of Lambda expressions, Java 8 or newer is required. On you can find the latest release artifacts including the HERE SDK framework archive to include in your application (named xx.yy.zz.release_date).Ĭopy the HERE SDK AAR file (*.aar) to your application's app/libs folder. Let's begin with the first step to see how we can add the HERE SDK to our project. The rendering of the map view is optimized for mobile device GPUs. The overall performance will be better, and some features like gestures are just easier to use on multi-touch enabled hardware. Note: While all of the functionalities of the HERE SDK are accessible from the emulator, usage of a real device is strongly recommended. Add the code to load your first map scene.Add a map view to your main activity's layout file.Set required credentials and permissions.Adapt your gradle script to integrate the HERE SDK.Once we have a working Android application, it's time to include the HERE SDK and to show a map on your emulator or device. If all goes well, you should see the "Hello World" text. Once the wizard finishes, make sure to build the plain project and execute it on an emulator (or on a device). If not done already, in Android Studio click Refactor -> Migrate to AndroidX. We recommend to use AndroidX support libaries. Make sure an appropriate directory is chosen in "Save location" and click Finish to continue.Next to "Minimum API level", set API 21 as the minimum Android SDK.For the example below, we have chosen Java. "HelloMap" and select Java or Kotlin as the language. Choose Phone and Tablet, select Empty Activity and click Next.Start Android Studio (for this guide, we have used version Bumblebee 2021.1.1 Patch 2) and create a new project by selecting: The example code for "HelloMap" is available from here. Now you are ready to open the project with Android Studio and you can instantly execute the app on your device or simulator. Insert your HERE credentials ( access_key_id and access_key_secret) in the MainActivity.java file.Add the HERE SDK framework to the app's libs folder.The easiest way to get started, is to try one of the many example projects that are available for the HERE SDK. See also the below section Authenticating Applications to learn more details on how to set the credentials for an app. The APP ID is only relevant for the Lite Edition and the Explore Edition and has no use for other editions. These IDs are not needed by the public APIs of the HERE SDK, but they can be useful when contacting the HERE support team. When you obtain your credentials, also a or an APP ID is shown. For the Navigate Edition you need to contact your HERE representative to generate a set of evaluation credentials. For example, they will work with all example apps you can find on GitHub. Note that these credentials can be reused for the Lite and Explore Editions regardless of the platform - furthermore, you can use these credentials for more than one app. Once registered, you can create credentials. Alternatively, on the HERE platform portal go to your apps page and register a new app.Then scroll down to the HERE SDK product family and click Create a Key. You can either choose an existing project or Select a plan for a new project. ![]()
0 Comments
Leave a Reply. |