You can download this app on your Android Device: Google Play Store
Create an app which let user test their knowledge about popular thoughts of stoics. Application is in polish language. This app contains thoughts of 4 stoics: Epictetus from Hierapolis, Marcus Aurelius, Seneca the Younger and Zeno of Citium.
- First activity is to welcome user,
- Second activity is to let user choose if they want to draw 1, 10 or 40 quotes. This layout also contains 3 dots button to settings area,
- Then in next activity user can find question/s based on thoughts and four possible answer to check. Good and bad answer is highlight in different color. If user chosen wrong answer there also good answer will be displayed,
- This layout also contain progress bar to show user which question actually is and how many is in total,
- Application requires to check one of answer to go to the next question,
- If user press back button there is dialog to protect before accidentally finish the quiz,
- At the end there is result activity were trophy is waiting for user. Also there is result of they answers (counted) related to total number of questions.
- Last option for user is to finish quiz.
- Quotes I keep in HashMap.
- There is also settings activity when user can (after click 3 dots in second activity): a) send mail to developer, b) read privacy policy, c) rate app in the google store, d) read description about application, e) check the version of app - available at the bottom of layout f) visit website with content about stoicism g) visit Google Play Store to get my other application "Wygraj Dzień".
Of course there is space to develop this app for different features.
- Clone this project,
- Open Android Studio,
- Select File -> Open... -> choose this project from path where you cloned it,
- Set Gradle: File -> Settings -> Build, Execution, Deployment -> Gradle -> Gradle JDK: set up for 1.8 (if it is necessary),
- Run the application.
- Android Studio ArcticFox (2020.3.1) Stable,
- Minimal Sdk: 21 Recommended: 32.
- Size of device - recommended minimum 5.00"
- I should write README.md up to date -> now it is difficult to put everything in nice order with more details and also with thoughts which I had in various points during develop this app,
- How to set up:
- program buttons to work in different goal,
- layouts,
- back button,
- gradle,
- intent to send mail to developer,
- How to add:
- different functionality as drawable, buttons, textViews etc.
- dialog (alert dialog) when user click back button
- Important elements and functions, as:
- make working all buttons and text view,
- cardView,
- data class,
- constants,
- progress bar,
- object - special class,
- setOnClickListener()
- intent and passing data to next activity,
- passing and retrieving data via intent
- part of collections,
- null safety,
- generate privacy policy,
- Publish application on Play Store
- I should test application more carefully before publish it. Also ask other developers for help to test it. Then there is a chance that someone will take a fresh look at the application and it helps avoid bugs.
- Denis Panjuta
- Flaticon - free icons Image sources
- Privacy policy generator
- Norio - graphic generator
- Lepiej Teraz - podcast Radosława Budnickiego
- Ryan Holiday
If you see an opportunity to improve my code do not hesitate to contact me: maciej.k.glownia@gmail.com. If you want to copy it and develop with your own idea, take it and enjoy learning path.
There are many concepts, more of them I saw first time. They need to be repeat to understand them better, but I used many lines of comments to write down explanation to understand, as good as possible, what happen in this code, which functions are responsible for, and also why some concepts I should use in these case.