Skip to content

Sygic/driving-example-android

Repository files navigation

Driving sample app for Android

This example shows how to integrate Sygic Driving library.

Usage

  1. Open project in Android studio.
  2. Synchronize gradle project.
  3. In local.properties file set the license to sygic.license key. To get license key, please contact our support.
  4. If you want to be able to see your trips on maps, add your Google Maps API key to google.maps.key in local.properties.
  5. Run the app.

The best way to test the app is to drive a vehicle.

Migration guide from version 1.x

To update library version in your project from 1.x to 2.x follow these steps:

  1. Update driving library version in your build.gradle to latest version.
  2. initialize method signature was changed. It is no longer asynchronous, so the result of initialization is returned immediately.
  3. Sygic license key must be provided in initialize method. To get your license key, please contact our support.
  4. If you are using Driving library together with Sygic Maps SDK, you have to use single instance of Sygic Auth object. For Driving library this means you have to pass SygicAuthConfig.UseExternalAuth(authInstance) to initialize method.
  5. Some constants like DetectorState and TripState were changed to enums.
  6. Some method overloads (e.g. onTripUploaded) were removed.
  7. double timestamps were replaced by Date, GpsPosition was replaced by Location.
  8. TripValidityCriteria can be set to discard trips that are too short. Default criterias are set to 90 seconds duration and 400 meters length. When trip is discarded, onTripDiscarded event is fired (instead of onTripFinished). Discarded trips are not sent to server and are automatically deleted.
  9. Please refer to changelog for other changes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published