don't use jetpack compose and make me Android Application Development Project
Objective: Develop an Android application that demonstrates proficiency in API integration, user interface design, and Android development best practices.
Project Overview: Create an Android app with three main screens: Login, Dashboard, and Details. The app will interact with the 'vu-nit3213-api' to authenticate users and retrieve data.
API Details: Base URL: https://nit3213api.onrender.com/
Login Endpoint:
URL: /footscray/auth or /sydney/auth or /ort/auth (depending on your class location)
Method: POST
Request Body: { "username": "YourFirstName", "password": "sYourStudentID" }
Successful Response (200 OK): { "keypass": "topicName" }
Dashboard Endpoint:
Requirements:
Login Screen:
Dashboard Screen:
Details Screen:
Technical Requirements:
Assessment Criteria:
Submission:
Good luck with your project!
I'll help you create an Android application using traditional XML layouts with MVVM architecture and Hilt for dependency injection. Let's break down the implementation step by step.
Let's start by setting up a well-organized project structure following clean architecture principles:
This Android application follows the MVVM (Model-View-ViewModel) architecture pattern with clean architecture principles:
Hilt is used for dependency injection throughout the application:
The project includes unit tests for ViewModels to ensure business logic works correctly:
To log in, use your first name as the username and your student ID (format: s12345678) as the password.
To further enhance this project, you could:
This implementation satisfies all the requirements specified in the project brief, including dependency injection, clean code principles, and unit testing.
make me gradle
I'll create both the project-level and module-level Gradle files needed for an Android application.
settings.gradle
build.gradle (Project)
build.gradle (App)
Configures Android build settings:
Dependencies
gradle.properties
proguard-rules.pro
gradle-wrapper.properties
This configuration provides a solid foundation for a modern Android application with all the necessary tools for development, testing, and optimization.
make it so that it works in android studio and i can just copy and paste