The To-Do List App is a simple yet powerful tool to help you manage your tasks efficiently. It allows users to add, edit, and delete tasks, as well as set priorities and due dates, and mark tasks as completed. Firebase Storage is used to store and retrieve tasks for data persistence.
- Home Screen: Display a list of tasks with titles and completion status.
- Task Creation: Allow users to add new tasks with titles and optional descriptions.
- Task Editing: Provide the ability to edit task titles and descriptions.
- Task Completion: Allow users to mark tasks as completed or active.
- Task Deletion: Add the option to delete tasks from the list.
- Task Priorities: Set priorities for tasks.
- Due Dates: Assign due dates to tasks.
- User Login: Users can access their todo list data from anywhere just by login their credentials .
- Firebase Storage: Store and retrieve tasks using Firebase Storage for data persistence across devices.
- User Interface: intuitive and user-friendly interface.
- Android Studio installed on your machine
- A device or emulator to run the app
- Clone the repository:
git clone https://github.com/nihalahmed07/CodSoft-Task-1-ToDo-List.git
- Open the project in Android Studio.
- Let Android Studio install any required dependencies.
- Build and run the app on your device or emulator.
- Go to the Firebase Console and create a new project.
- In your Firebase project, add an Android app and follow the setup steps. You'll need the package name of your Android app.
- Download the
google-services.jsonfile provided by Firebase and place it in your project'sappdirectory. - Add the Firebase SDK to your project. Update your
build.gradlefiles as follows:
Project-level build.gradle (build.gradle):
gradle buildscript { dependencies { classpath 'com.google.gms:google-services:4.3.10' // Check for the latest version } }
App-level build.gradle (app/build.gradle):
```gradle
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
dependencies {
// Firebase SDK
implementation platform('com.google.firebase:firebase-bom:31.1.1') // Check for the latest version
implementation 'com.google.firebase:firebase-storage'
implementation 'com.google.firebase:firebase-auth'
implementation 'com.google.firebase:firebase-database'
// Other dependencies
}
```
- Initialize Firebase in your application. Update your
MainActivity.javaorMainActivity.kt:import com.google.firebase.FirebaseApp; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FirebaseApp.initializeApp(this); // Other initialization code }
- Open the app to view your list of tasks.
- Tap the "Add Task" button to create a new task.
- Fill in the task title and optional description, set priority and due date, then save.
- Tap on a task to edit its details.
- Swipe left or right on a task to mark it as completed or delete it.
- All tasks are saved locally on your device and synced with Firebase Storage for persistence across devices.
Contributions are welcome! If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcomed.
- Fork the repository.
- Create a new branch:
git checkout -b feature/YourFeature
- Make your changes.
- Commit your changes:
git commit -m 'Add some feature' - Push to the branch:
git push origin feature/YourFeature
- Create a new pull request.
Nihal Ahmed - n.nihalahmed1@gmail.com
Project Link: To-Do List App
Check out a video demo of the application on YouTube: Click here for demo video