Simple vehicle rental for every trip.
KarFlex is an Android vehicle-rental application for browsing available vehicles, renting a vehicle, managing active rentals, and finding the KarFlex store location.
- Username and password registration with validation
- Four-digit OTP authentication sent by SMS on every login
- Vehicle catalog loaded from JSON and cached locally
- Vehicle detail pages with rental duration validation
- Active rental updates, cancellation, and automatic completion status
- Rental history with vehicle-name search
- Profile, logout, and KarFlex store location on Google Maps
- Kotlin and Android SDK 37
- AndroidX AppCompat, Activity KTX, ConstraintLayout, and View Binding
- Room Database over SQLite
- RecyclerView and Material Components
- Volley for vehicle JSON retrieval
- Google Maps SDK for Android
- SMS Manager and SMS Retriever API for OTP flow
app/src/main/java/com/example/karflex/
βββ data/
β βββ client/ Retrofit configuration
β βββ dao/ Room DAOs and API contract
β βββ entities/ User, vehicle, and rental entities
β βββ repository/ Vehicle and rental data access
βββ utils/ Image and SMS helpers
βββ *Activity.kt Authentication and detail screens
βββ *Fragment.kt Browse, rental, and profile sections
- Android Studio
- Android SDK Platform 37
- JDK 17 or newer
- An Android emulator or a physical Android device
-
Clone the repository:
git clone https://github.com/KarFlex-MTS-LAB/KarFlex.git cd KarFlex -
Open the project in Android Studio and allow Gradle to sync.
-
Select an emulator or connected Android device.
-
Run the
appconfiguration.
Build a debug APK from the terminal:
.\gradlew.bat :app:assembleDebugInstall the debug APK on a connected device:
.\gradlew.bat :app:installDebugThe vehicle catalog is retrieved through Volley from the course JSON endpoint and then stored in the local Room/SQLite database:
The map marker is configured for the KarFlex store location at latitude -6.201733 and longitude 106.781592.
- The app requests SMS permission so it can send the login OTP from the device.
- Google Maps functionality requires a valid Maps SDK API key in the Android application configuration.
- Local vehicle image fallbacks are bundled in
app/src/main/res/drawable/so the catalog remains usable when remote image hosts are unavailable.
This project is maintained for the KarFlex Mobile Technology Solution project.
