https://github.com/saahiyo/quotes-app
A simple Android application that displays random quotes using the ZenQuotes.io API.
https://github.com/saahiyo/quotes-app
android-studio api-integration kotlin kotlin-android quotes-api quotes-application
Last synced: 8 months ago
JSON representation
A simple Android application that displays random quotes using the ZenQuotes.io API.
- Host: GitHub
- URL: https://github.com/saahiyo/quotes-app
- Owner: saahiyo
- Created: 2024-12-10T11:50:23.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-10T17:38:55.000Z (over 1 year ago)
- Last Synced: 2025-02-10T20:59:42.963Z (over 1 year ago)
- Topics: android-studio, api-integration, kotlin, kotlin-android, quotes-api, quotes-application
- Language: Kotlin
- Homepage:
- Size: 109 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Quotes-app : Random Quote Generator App
A simple Android application that displays random quotes using the ZenQuotes.io API. This app is built with Kotlin and demonstrates the usage of Retrofit for API integration.
## Features
- Fetch and display random quotes
- Display quote author
- Next button to load new quotes
- Loading indicator while fetching quotes
- Error handling for failed API requests
## Technologies Used
- Kotlin
- Android Studio
- Retrofit for API calls
- ViewBinding for UI
- Coroutines for asynchronous operations
- ZenQuotes.io API
## Screenshots
[
]
## Setup
1. Clone this repository
2. Open the project in Android Studio
3. Build and run the application
## Dependencies
Add these dependencies in your app's build.gradle file:
```gradle
dependencies {
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
}
```
## API Reference
This app uses the [ZenQuotes.io](https://zenquotes.io/) API to fetch random quotes.
## Learning Resources
If you're new to Android development, here are some topics to explore:
- Kotlin fundamentals
- Android Activity lifecycle
- ViewBinding
- Retrofit and API integration
- Coroutines in Android
- Error handling in Android
## Contributing
Feel free to fork this project and submit pull requests. As a beginner project, this is open to improvements and suggestions.
## License
MIT License
Copyright (c) 2024
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
## Acknowledgments
- Thanks to ZenQuotes.io for providing the quotes API
- Built as a learning project for Android development with Kotlin