Skip to content

Prototype of a quiz game application based on the Android TV platform.

License

Notifications You must be signed in to change notification settings

LucaBerardi6/Android-TV-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Android-TV-application


Prototype of a quiz game application based on the Android TV platform.

Abstract

The prototype created is a quiz game, in which questions are asked to be answered correctly. The user can choose one of the following two game modes:

Single player: You can play alone on your TV. The user is asked a series of questions and, for each of them, he must select, among the three options proposed, the one he deems correct. Only at the end of the game, after having answered all the questions, the user gets a score based on the correct answers given during the game.

Two Players: You can play on the same TV with someone else. Players are asked the same number of questions and, as with the previous mode, the answer options are three, but the right one is only one.

For each of the two modes there are three types of challenges:

• game with five questions
• game with ten questions
• game with fifteen questions

Development

The application was developed using four Activities:

MainActivity: the launch Activity which represents the main screen of the application where it is possible to choose the game mode and the type of challenge. The MainFragment class is used to create the layout. The CardPresenter class was used to create each of the home cards. With this class it is possible to create a View associated with the game mode.

GameActivity: the Activity that represents the game screen. The user interacts with the application by answering the questions, selecting the option he deems correct.

NextActivity: the Activity used when the challenge between two players is chosen. The second player is invited to prepare, as he is about to start his turn.

EndActivity: the Activity used at the end of each game. The outcome of the game is displayed on the user interface and it is possible to start the MainActivity to play a new game.

The Question class has been created with which it is possible to associate its correct answer and its incorrect answers to a question. A Question object consists of five variables: the question, the correct answer, and the three possible answers.

A game mode is represented by a Mode object. A Mode object consists of a set of variables that are: a title that identifies the type of challenge, a description, the number of players, the number of questions, an image. A Mode is used in conjunction with the CardPresenter class to create the cards visible on the main screen that represent a given challenge for a specific game mode.

Sample video of the app

video.mp4

Screenshots of the app

Some screenshots from the app (to see other screenshots go to the dir Images):




Other details

Dark backgrounds have been used and a light gray color has been chosen for most of the text, so as not to create difficulties for the user in reading and viewing the elements. In addition, for better processing, the text is always divided into small parts. Each element has been made to a size that allows the user to see it properly at a distance of three meters and has been positioned to be easily reached, thus creating a coherent navigation for a TV device. All the layouts have been created with a horizontal orientation and, in addition to the resources available in the AndroidX Leanback library, RelativeLayout and LinearLayout have been used exclusively to create the View containers, so as to adapt the layout to the different characteristics of the television screens.

Bibliograpy

About

Prototype of a quiz game application based on the Android TV platform.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages