Welcome to the Compass App repository! This project is an Android application that uses the device's orientation sensor to display a compass.
The Compass App is a simple Android application designed to help users determine their direction using the built-in sensors on their device. The app displays a compass rose and the current direction in degrees.
- Displays a dynamic compass image
- Shows the current heading in degrees
- Utilizes device sensors for real-time direction updates
- Edge-to-edge user interface for a modern look
-
Clone the repository:
git clone https://github.com/akarsh/compassapp.git
-
Open the project in Android Studio.
-
Build and run the app on an Android device or emulator.
- Open the Compass App on your Android device.
- The compass image will rotate to indicate the direction you are facing.
- The degree value shown on the screen represents the current heading in degrees.
- Language: Kotlin
- Platform: Android
- Sensor: Orientation Sensor (deprecated, consider using the rotation vector sensor for more accuracy)
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Note: This project uses the deprecated orientation sensor. For improved accuracy and compatibility, consider using the rotation vector sensor or the accelerometer and magnetometer combination.