Skip to content
This repository has been archived by the owner on May 10, 2020. It is now read-only.

nadershamma/android-fun-with-flags-quiz-app

Repository files navigation

Fun with Flags

This is a simple quiz style guessing game. The player is presented with a flag and asked to guess which country the flag is from. The player can choose flags (1) from a number of regions including:

  • Africa
  • Asia
  • Europe
  • North America
  • Oceania
  • South America

Screenshot of app on a phone

They then choose the difficulty of the game where they will presented with 2, 4, 6 or 8 options to guess from.

Screenshot of app on a tablet

The app was inspired by a project presented in the book Android 6 for Programmers. However there are a number of key differences in the implementation.

Firstly. This app utilises the ViewModel Architecture Component to manage how data is shared between fragments and activities.

Secondly the App utilises the DialogFragment to present the players score via an Alert Dialog which in the book is implimented as an annonymous inner class within the MainFragment Activity. Doing so sends (the current) Android Studio into a small panic. Therefore the Dialog feature is implimented as a stand alone fragment and called using the Fragment Manager.

Other improvements include creating stand alone event handlers rather than cramming everything into the activity class.

1) flags sourced from https://www.free-country-flags.com/

About

Simple flag guessing quiz game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages