Sei sulla pagina 1di 22

Live Cricket Match Score

Android Application

By

Bhavya Patel (14BCE077)


Harsh Patel (14BCE081)

DEPARTMENT OF COMPUTER
SCIENCE &ENGINEERING
Ahmedabad 382481
Live Cricket Match Score
Android Application

Mini Project - 3

Submitted in fulfillment of the requirements

For the degree of

Bachelor of Technology in Computer Engineering

By
Bhavya Patel (14BCE077)
Harsh Patel (14BCE081)

Guided By
Prof. Ajay Kumar Patel
DEPARTMENT OF COMPUTER
SCIENCE & ENGINEERING

DEPARTMENT OF COMPUTER
SCIENCE & ENGINEERING
Ahmedabad 382481
CERTIFICATE

This is to certify that the mini-project entitled android application for


Live cricket match score submitted by Bhavya Patel (14BCE077)
and Harsh Patel (14BCE081), towards the partial fulfillment of the
requirements for the degree of Bachelor of Technology in Computer
Engineering of Nirma University is the record of work carried out by
him/her under my supervision and guidance. In my opinion, the
submitted work has reached a level required for being accepted for
examination.

Prof. Ajay Kumar Patel Dr. Sanjay Garg


Dept. of Computer Science & Engg., Dept. of Computer Science & Engg.,
Institute of Technology, Institute of Technology,
Nirma University, Nirma University,
Ahmedabad Ahmedabad
ACKNOWLEDGEMENT

We wish to express our sincere gratitude to Prof. Ajay Kumar Patel, under
whom we executed this project. We admire her invaluable guidance which
helped us to understand the project better. Her constant guidance
throughout the semester made us understand this project. We are very
thankful to the institute for keeping such a course in which the students
are allowed to do some work of their area of interest. We might likewise
want to recognize our guardians for supporting us for the duration of our
life. We would also like to thank our course coordinator Prof. Monika Shah
for his guidance and information.
ABSTRACT/ Outline

This report gives the brief overview of the application that is used for the cricket
information. It gives the knowledge about the concepts used, its functionalities
and how the database functionalities are created and how data is stored in the
database. We can abstract data from the database like player info , upcoming
matches and news for the real time updation. The CricAPI is used for the
updation of real time data. Android Studio is used for creating an mobile
application for this use.
CONTENTS
Certificate IV
Acknowledgement V
Abstract VI

Chapter 1 Introduction 1
1.1 General introduction to the Application 1
1.2 Objective of study 1
1.3 Scope of Work 2

Chapter 2 Tools used 3


2.1 Firebase database 3
2.2 CricAPI 3

Chapter 3 Database Schema and ER Diagram 4


3.1 Project Database Schema Diagram 4
3.2 Entity Relationship diagram of Database Schema 5

Chapter 4 Working and Parameters 6


4.1 Basic Working 6
4.2 Parameters considered 6

Chapter 5 WorkFlow and Application Screenshot 7


5.1 workflow 7
5.2 Application images 8

Chapter 6 Summary and Conclusion 14


6.1 Summary 14
6.2 Conclusions 14

References 15
Appendix A List of Useful Websites 15

List of figures
3.1 Schema Diagram of Database 4
3.2 ER diagram of Database Schema 5
5.1 Navigation menu 7
5.2 Home Page of Application 8
5.3 Upcoming Matches 9
5.4 Player Stats (Bio) 10
5.4 Player Stats (Batting) 11
5.4 Player Stats (Bowling) 12
Chapter 1 - INTRODUCTION

1.1 General introduction Cricket score info application


This mobile applications are hot trend currently in the world. And
the sports application is mostly followed by everyone to get live updates
for the sports. So with the available real time database and with the API
we can create an application which will include all the current information
about the sport that you are interested in. The application will include
various features like Current matches for showing their scorecards on ball
to ball bases. Under the Upcoming matches menu you can see the
matches that are in the near future and make your plannings for that. You
can also see the recent results in the menu. The home page will contain
the matches that are being played currently and the news about the sport
that are trending. The other section of the application is the records tab. It
has mainly two sections in one you can see the player stats where you can
view the records of the individual players which are arranged via country,
and in other you can see the current series stats. The records tab is also
retrieved from the API through the database so it is also real time.

1.2 Objective of study


The major objectives of this project work are:
To understand how to obtain data from database and then use that
data into the android application.
To learn how to normalizing a database and how it can help for fast
access and better management of the database.
To learn and update the database and application for real time use.
To understand how API are used in an android application and how
to retrieve the data from API to database and update to application
through database.
1.3 Scope of work

The scope of this project work covers the field of mobile applications
which is currently the hot topic in the market. The project has a vast
applications from keeping the live updates(news), to check the live score
updates or to view records or to view upcoming matches schedule and
planned accordingly. The same application can also be created for the
other sports using the same database management and retrieval
technique just you have to update the API used. The mobile applications
are vastly used in the modern world and it can be used by the large
number of users.
CHAPTER 2 Tools Used

2.1 Firebase Database


The application is for the live cricket information. So the information
should be real time. And to store the data and to update it we use the firebase
database. As per the fetching the data from the API everytime can take longer
execution time and application may lead to failure as exceptions are not well
known. So the database is used in which data is stored and updated from the
API. And application can retrieve the data from the database directly.

2.2 CricAPI

The cricket information application requires the real time updates. To


make an admin application or to manage an website can be a lot more hard task.
So to easily get the updates the API s are used. APIs are easily available for
most of the task. For the information of the cricket we used the CricAPI which
provides all the details from the live news to recent matches and their result. It
even contains its own database for the player details and the team records. The
records that are not to be changed too frequently are retrieved and stored into
firebase. While data that is changing too frequently like player stats and live
score of a match are retrieved from the API. The key for the match or player id
are stored with the name in the database from there we can gain the key and
through that key we can retrieve the data.

CHAPTER 3 - DATABASE SCHEMA AND ER DIAGRAM


3.1 Project Database Schema Diagram

3.1 Schema Diagram of Database

3.2 Entity Relationship diagram of Database Schema


3.2 ER diagram of Database Schema
CHAPTER 4 WORKING AND PARAMETERS

4.1 Basic Working


First we open the home page which will contain the live matches and the
current trending news .

We provide the navigation menu to go through the different sections of


the application.

We can choose any menu that we want to see.

The information for that menu is retrieved from the real time database.

We can check for the records of the players that we want to see it will
fetch the key of the API and player id from the database and update the
details in the database which will then be reflected into the application.

We can follow the live matches and live updates of the cricket match
through this application.

4.2 Parameters Considered in the database

Live matches

Upcoming matches

Scorecard for the live or finished matches

Player batting records in different formats

Player bowling records in different formats

Series records contain the results of the all series matches


CHAPTER 5 Work flow and project screenshots

5.1 Work flow:-


First as soon as the application is opened the main page(Home page ) is
opened. It contains the live matches and live news updates. To go through the
other sections of the application the navigation bar is created. From the
navigation menu you can select the section to go. The navigation menu can be
open by a left swipe or by clicking on its icon. to go back from any page to home
page only back button needs to be pressed. To go from one page to another
page directly you can go through the navigation menu. The navigation menu is
only available on the main page of the activity so you have to use back button to
go back to the main page of the activity. There are also two sections in the
navigation bar the first is about the matches and second one is about the
records. There is no need to login as the application is the general purpose
application and no further account details or account specific details are showed.
If the score is updated through the admin the login would be required but for
that purpose the whole new application would be required.
5.2 Project Screenshots:-

5.1 The navigation menu


5.2 Home Page
5.3 Upcoming matches
5.4 Player Record(Bio)
5.5 Player Record(Batting)
5.6 Player Record(Bowling)
CHAPTER 6 SUMMARY AND CONCLUSION

6.1 Summary
This project work summarizes the rising importance of mobile applications
in the field of Computer Science and it also covers some of the basic aspects of
various database concepts like relational database schema and the entity
relational diagram. The report also include the use of real time database and the
API in the real time update in the application. It also covers how the database is
used to retrieve the data into the application through the API.

6.2 Conclusion
From this report the conclusion is derived that the for real time update the
database and the API are both are equally important . the database is used to
update the real time data to the application in the easy manner. While the data
in the database is updated through the API so we does not have to built a direct
interface between the API and application which is complicated and further the
records that are kept can be easily be stored in the database and retrieved in the
application. There is no need for the API connection there.

REFERENCES

Live cricket Score API


http://www.cricapi.com/
How to use API in an android application
https://developers.google.com/maps/documentation/android-api/start
How to use database and API concurrently for easy access through
applicationhttp://www.androidauthority.com/use-remote-web-api-within-
android-app-615869/
http://stackoverflow.com/questions/9673638/how-to-use-api-in-android
https://firebase.google.com/
Appendix A List of Useful Websites

http://www.cricapi.com/
https://developer.android.com/guide/index.html

Potrebbero piacerti anche