Android

Last updated 11 days ago

This product feature is still under development and is not available in production. Please reach out to us on Slack if you want an early access.

You can build a view with Live Location of a device on Android with just a few lines of code.

Step 1: Add SDK

Add the SDK to your build.gradle.

// Import the SDK within your repositories block
repositories {
maven { url 'http://hypertrack-core-android.s3-website-us-east-1.amazonaws.com/' }
...
}
//Add HyperTrack as a dependency
dependencies {
compile("com.hypertrack.core:android:0.9.0@aar"){
transitive = true;
}
...
}

Step 2: Add view

Include Live Location view into any view’s layout file.

<com.hypertrack.android.view.LiveLocation
android:id="@+id/live_location"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>

Step 3: Customize view

Customize marker, map theme, map source and more.

tbd