The ANS Battery Monitor is an Android application designed to help users monitor battery performance and manage battery-related metrics effectively. The application includes features for historical data tracking, Bluetooth connectivity, and customizable settings for user preferences.
- Battery Measurement Tracking: Monitor and store battery performance metrics.
- History View: View historical measurements and trends.
- Settings: Customize application behavior and preferences.
- Bluetooth Integration: Connect to external devices for data synchronization using the HM10 module (UART communication).
The project is structured as follows:
app/src/main/java/com/example/ans_batterymonitor_project
MainActivity.java
: The main entry point of the application.- Fragments: Separate modules for the user interface, including:
HomeFragment.java
HistoryFragment.java
SettingsFragment.java
MeasurementFragment.java
- Measurement Management: Classes to handle measurement data, such as:
Measurement.java
MeasurementHistoryManager.java
app/src/main/res
: Resources for layouts, drawables, and strings.build.gradle.kts
: Build configuration using Kotlin DSL.
To build and run the project, ensure you have the following:
- Android Studio (latest version recommended)
- JDK 11 or higher
- Gradle (configured with the project)
- A physical or virtual Android device for testing
git clone <repository_url>
cd ans-batterymonitor-project
- Launch Android Studio.
- Select Open an Existing Project.
- Navigate to the cloned repository and select it.
- Sync the Gradle files.
- Select a target device (physical or emulator).
- Click Run to install and start the application.
This project is licensed under the MIT License. See the LICENSE
file for more details.
For more information or issues, please contact the project maintainer.