Simple time tracking app for Android in Kotlin.
What is it?
Technologies
Getting Started
Android-App to detect when I arrived or left the office with help of geofences. In addition, I can manage my working hours manually and assign different projects. The app allows me to view my working hours of the past few days.
Add your projects to book working time on them.
For each project you can define a name, shortcode and set if it should be displayed on the widget. Up to five projects can be displayed on the widget and as well on a LockScreenNotification. With the LockScreenNotification you can start/stop bookings even without unlocking your device. You have the possibility to set one default project, which will be triggered on entering a geofence.
Simple overview of your bookings. Shows days with a total of booked time:
And a detail view per day with the booked time slots per project.
Allows you to add geofences for your working areas. As soon you enter a active geofence, your default project is triggered. If there's already a running project nothing happens. Leaving a geofence ends the booking on the current running project.
Project is migrated to AndroidX. Find more information about AndroidX here.
The app is not released yet, so you have to build a debug apk.
Download the app by cloning this repository and use the gradlew installDebug
command to build and install the project directly on your connected device or running emulator.
The app uses Google Maps and Places API for the geofence-feature. If you want to use this feature, you need to get your own API-Key from Google Cloud Platforms. Make sure to register your API key for Maps SDK for Android and Places API.
Add the key to the resource-file google_api.xml
by replacing YOUR_API_KEY with the value of your API key.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="google_api_key" translatable="false" templateMergeStrategy="preserve">
YOUR_API_KEY
</string>
</resources>
Follow these steps to connect your device:
adb device -l
(if not use adb usb
to activate usb-connection)
optional connection by wifi
adb tcpip 5555
adb connect <XXX.XXX.X.XXX>:5555
> add the ip-adress of your device ('Settings > About phone > Status')