Android Location Tracking SDK for Background and Real Time Tracking
Add location tracking to your Android app without building every tracking component from scratch. Track SDK Hub provides the location infrastructure developers need for background tracking, geofencing, location history, and offline data capture.
- Language
- Kotlin-first
- Compatibility
- Android 8.0+ (minSdk 26)
- Build
- compileSdk 37
- Background
- Foreground service
val trackIt = TrackIt.getInstance(applicationContext)
trackIt.ready(TrackItConfig(accessKey = key))
trackIt.start(tag = "commute")
Why an SDK
Build Android Location Features Without the Tracking Complexity
Location tracking involves more than collecting GPS coordinates. Developers also need to manage background behaviour, permissions, location storage, synchronisation, and tracking logic. Track SDK Hub brings these capabilities into one SDK, helping developers focus on building their application instead of maintaining every tracking component separately.
Without Track SDK Hub
- Wiring raw FusedLocationProviderClient callbacks and threading by hand.
- Writing your own Room or SQLite buffer for points captured offline.
- Working around Doze, app standby buckets and background execution limits.
- Chasing battery complaints and OEM-specific process killing.
- Handling foreground, background and activity-recognition permission prompts.
With Track SDK Hub
- One SDK: the AAR brings its own foreground service, receivers and permissions through manifest merging.
- Offline capture: points persist locally and synchronise when connectivity returns.
- Movement detection: motion-triggered capture slows updates while stationary.
- Tracking modes: continuous, adaptive or motion-only, with strict, balanced or relaxed accuracy profiles.
- Typed results: ready() and start() return TrackItResult instead of throwing platform exceptions.
Core capabilities
Android Location Tracking SDK Features
Built for Android reliability, battery efficiency, and straightforward integration.
Background Location Tracking
Capture location updates through the SDK's Android tracking service, including supported background tracking scenarios.
Real Time Location
Request a current location or receive location updates as the device moves.
Geofencing
Define geographic boundaries and respond to location entry or exit events.
Location History
Access stored location points to build routes and activity timelines.
Offline Location Capture
Store location data locally and synchronise it when network connectivity returns.
Movement Detection
Detect movement and stationary states to support more efficient tracking behaviour.
Distance and Trip Tracking
Manage tracking sessions, calculate distance, and build recorded tracks.
Location Data Export
Build tracks and export location data in supported formats such as GeoJSON or polyline JSON.
Integration workflow
Get Started with Android Location Tracking
Up and running in three steps.
Integrate the SDK
Add the SDK dependency to your Gradle build. It supplies its own services, receivers and permissions.
implementation 'com.github.devstree-prog.TrackIt:trackit-all:TAG'
Configure Tracking
Prepare the tracker once from Application.onCreate and request the permissions your app needs, in order.
trackIt.ready(TrackItConfig(accessKey))
Start Tracking
Start a tracking session and use the location data and tracking events in your app.
trackIt.start(tag = "commute")
Developer first
Designed for Android App Development
Track SDK Hub provides an Android integration designed for developers working with native mobile applications. Use the SDK to integrate location tracking capabilities while keeping your application logic and user interface under your control.
- Android integration documentation
- Kotlin friendly implementation
- Developer controlled permission flow
- Configurable tracking behaviour
- Access to tracking data and events
// Create the process singleton and prepare it once, from Application.onCreate.
val trackIt = TrackIt.getInstance(applicationContext)
when (val result = trackIt.ready(TrackItConfig(accessKey = "TRACKIT-eyJ…"))) {
is TrackItResult.Ok -> Unit
is TrackItResult.Error -> Log.e("TrackIt", "${result.code}: ${result.message}")
}
// Once permissions are granted. Before ready(), this returns NOT_READY.
when (val session = trackIt.start(tag = "commute")) {
is TrackItResult.Ok -> Log.d("TrackIt", "recording ${session.value.id}")
is TrackItResult.Error -> Log.w("TrackIt", "${session.code}")
}
Use cases
Build Location Based Android Applications
What teams build on the Android SDK.
Delivery and Logistics
Record routes and support location based delivery workflows.
Field Operations
Support location tracking for field teams and mobile work applications.
Fleet Tracking
Build vehicle and movement tracking experiences.
Fitness and Activity Apps
Record routes, movement, and distance.
Location Based Applications
Use geofencing and location events to support app specific workflows.
FAQs
Android Location Tracking SDK FAQs
Common questions about Android background services and location capabilities.
More detail in the Android developer guide.
Start Building with Android Location Tracking
Explore Track SDK Hub and simplify the location tracking infrastructure behind your Android application.
30 day free trial · Full SDK access