The Speedometer App is an Android application that provides real-time speed, location, and direction information. It utilizes GPS and device sensors to offer a comprehensive speedometer experience.
- Real-time speed measurement in km/h
- Maximum speed tracking
- Current latitude and longitude display
- Compass functionality showing cardinal directions
- Persistent notification with current and max speed
- Landscape and portrait mode support
- Developed for Android
- Uses GPS for speed and location data
- Utilizes accelerometer and magnetometer for direction
- Implements Android's LocationListener and SensorEventListener
- ACCESS_FINE_LOCATION: For GPS functionality
- FOREGROUND_SERVICE: For persistent notification
- The app requests location permission on startup.
- Once granted, it begins tracking the device's location and speed.
- The speed is calculated from GPS data and displayed on the screen.
- The app tracks and displays the maximum speed achieved.
- Accelerometer and magnetometer data are used to determine the device's direction.
- A persistent notification shows current and maximum speed.
- SpeedView: Displays current speed
- TextViews: Show latitude, longitude, maximum speed, and current direction
The app continues to track speed and update the notification even when not in the foreground.
- Clone the repository
- Open the project in Android Studio
- Build and run on an Android device or emulator
- AndroidX libraries
- Custom SpeedView library (not included in the provided code)
This app is designed for informational purposes only and should not be used as a definitive speed measurement tool for vehicles.
Contributions, issues, and feature requests are welcome. Feel free to check [issues page] if you want to contribute.