Git Product home page Git Product logo

randomduck's Introduction

Random Duck App

Description

The Random Duck App is a simple Android application that displays random duck photos and gifs to the user. The app has only one screen with a "New Duck" button, which, when pressed, fetches and displays a new random duck photo or gif on the screen.

Features

  • Display random duck photos and gifs to the user on a single screen.
  • Fetch new duck photos from an external API upon pressing the "New Duck" button.
  • Provides a simple and intuitive user interface.

Screenshots

Duck 1 Duck 2 Duck 3

Getting Started

To use the Random Duck App, follow these steps:

  1. Clone the repository to your local machine:
git clone https://github.com/atakanakin/RandomDuck.git
  1. Open the project in Android Studio.

  2. Build and run the app on an Android emulator or a physical device.

Dependencies

  • Glide: Glide

Glide is used in this project for efficient image loading and caching. It simplifies the process of loading images and gifs from various sources and displaying them in ImageViews.

To include Glide in your Android project, add the following line to the dependencies block in your app-level build.gradle file:

implementation 'com.github.bumptech.glide:glide:4.12.0'

API Endpoint

Fetching a Random Duck Photo or Gif

To fetch a random duck photo or gif, you need to make a GET request to the API endpoint:

  • Endpoint: /api/v2/random

Example Request:

GET https://random-d.uk/api/v2/random

Example Response:

{
    "message":"Powered by random-d.uk",
    "url":"https://random-d.uk/api/115.jpg"
}

The response will contain a URL that points to the random duck photo. You can use this URL to load the duck photo or gif into your Android app using Glide or any other image loading library.

API Terms of Use

Please refer to the official API documentation provided by the https://random-d.uk/ for more detailed information about the API and its usage.

Bugs and Issues

If you encounter any bugs or issues while using the app, please report them in the "Issues" section of the GitHub repository.

License

This project is licensed under the MIT License.

Contact

For any questions or inquiries, feel free to reach out to me at [email protected].

randomduck's People

Contributors

atakanakin avatar

Watchers

 avatar

Forkers

sighaunt3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.