This is the toy app for lesson 3 of the Android App Development in Kotlin course on Udacity.
The Android Trivia application is an application that asks the user trivia questions about Android development. It makes use of the Navigation component within Jetpack to move the user between different screens. Each screen is implemented as a Fragment. The app navigates using buttons, the Action Bar, and the Navigation Drawer. Since students haven't yet learned about saving data or the Android lifecycle, it tries to eliminate bugs caused by configuration changes.
Here are the basic steps for working with and completing exercises in the repo.
The basic steps are:
- Clone the repo
- Checkout the branch corresponding to the step you want to attempt
- Find and complete the TODOs
- Optionally commit your code changes
- Compare your code with the solution
- Repeat steps 2-5 until you've gone trough all the steps to complete the toy app
Step 1: Clone the repo
As you go through the course, you'll be instructed to clone the different exercise repositories, so you don't need to set these up now. You can clone a repository from github in a folder of your choice with the command:
git clone https://github.com/nadaeltorgoman/Android_Trivia.git
Step 2: Checkout the step branch
As you go through different steps in the code, you'll be told which step you're on, as well as a link to the corresponding branch.
You'll want to check out the branch associated with that step. The command to check out a branch would be:
git checkout BRANCH_NAME
Step 3: Find and complete the TODOs
Once you've checked out the branch, you'll have the code in the exact state you need. You'll even have TODOs, which are special comments that tell you all the steps you need to complete the exercise. You can easily navigate to all the TODOs using Android Studio's TODO tool. To open the TODO tool, click the button at the bottom of the screen that says TODO. This will display a list of all comments with TODO in the project.
We've numbered the TODO steps so you can do them in order:
Step 4: Commit your code changes
After You've completed the TODOs, you can optionally commit your changes. This will allow you to see the code you wrote whenever you return to the branch. The following git code will add and save all your changes.
git add .
git commit -m "Your commit message"
Contact
For any questions or suggestions, please contact:
- Your Name: Nada El-Torgoman
- GitHub: Nada Eltorgoman