You are on page 1of 36

WORD CHALLENGE WITH FRIEND

LIST APP

By

WASIM KHAN
(2018-Arid-0270)

Master’s in Computer Science


(MCS)

Barani Institute of Information Technology


PMAS Arid Agriculture University Rawalpindi

November, 2020
WORD CHALLENGE WITH FRIEND
LIST APP

A report submitted in partial fulfillment of the


Requirements for the degree of
Master’s in Computer Science

Submitted By
WASIM KHAN
(2018-Arid-0270)

Supervised By
MR. AZHAR JAMIL

Barani Institute of Information Technology


PMAS Arid Agriculture University Rawalpindi
November, 2020
CERTIFICATE

It is certified that the contents and form of thesis entitled WORD


CHALLENGE WITH FRIEND LIST APP submitted by WASIM KHAN
have been found satisfactory for the requirement of the degree.

SUPERVISORY COMMITTEE

PROJECT SUPERVISOR: _____________________

Mr. Azhar Jamil

REPORT COORDINATOR: _____________________

Mr. Shahid Rasheed

WRITEUP COMMITEE HEAD: _____________________

Dr. Mohsin Raza


ACKNOWLEDGEMENT

First, I owe gratitude to Allah Almighty, the most merciful and compassionate
most gracious and beneficial who enabled me to accomplish the task. I feel
honors to express heartiest feelings to professor of BIIT, Mr. Azhar Jamil for
his guidance and kind supervision. I am very thankful to my all teachers
especially Mr. Azhar Jamil, all credit goes to them for my current and future
work in this field.

Furthermore, I am extremely grateful to all my official and unofficial teachers


from class one to this Master’s in Computer Science everyone is exceptional,
excellent and superior. Words cannot say the gratitude that for my parents whose
affection and prayers has always been the key to my success. Sincere thanks to all
family members and loved ones for every possible support. I am thankful to all of
my old and new friends for their help and moral support, during my life, their
thinking gives me the strength and power. They are so many that it will take
another write-up for only mentioning their names.
DEDICATION

This project is dedicated to my father and brothers who have never failed to give us
financial and moral support, for giving all our needs during the time we developed our
system and for teaching us that even the largest task can be accomplished if we take
one step at a time. “I pray that ALLAH (SWT) give continuous skill to my hands,
clear visions to my mind, kindness and meekness to my heart”. “I have learned many
things from this venture, but most of all, I have come to realize more than ever”.
“Quality is never an accident. It is always the result of high intention, intelligent
direction, sincere effort and skillful execution. It is the wise choice of many
alternatives”.
ABSTRACT

The “Word Challenge With Friend List” game is an android application game. In this
game, users will register themselves or they can get random login id. The basic
purpose of this project was to facilitate the players to play game. Various functions
have been added in this project.

For instance, this project created an option whereby multiple users could play
with each other at the same time when they were online. In addition, one player
has to select word for the other opponent in this game. The other opponent needs
to guess that word by dashing of this word. Moreover, users can also add their
friends in this game. They can also saw their friends’ list in a separate section.
However, admin has no right to challenge anyone. Admin can add Category,
level and word, in database. Finally, a proper database system was recorded by
using web services. Novices can implement similar web services in order to
secure the database and entertain the user.
TABLE OF CONTENTS
Contents Page No.

CERTIFICATEiii
ACKNOWLEDGEMENTiv
DEDICATIONS.................................................................................................................v
ABSTRACTvi
TABLE OF CONTENTSvii
LIST OF FIGURESix
CHAPTER 1- INTRODUCTION01
1.1 Project View01
1.2 Problem Statement01
1.3Objectives01
1.4 Proposed Solution02
1.5 Scope02
CHAPTER 2- Project Background03
2.1 Related Projects and Research Articles03
CHAPTER 3- CONCEPTUAL DESIGN07
3.1 Requirement Elicitation (Sources of requirements)07
3.2 Requirement Specification07
3.2.1 Functional Requirements..........................................................................................07
3.2.2 Non-functional Requirements...................................................................................07
3.2.3 Domain Requirements..............................................................................................08
3.3 Requirement Modeling08
3.3.1 Dataflow Diagram or Usecase Diagram................................................................................08
3.4 Database Design09
3.4.1 Entity Relatonship Diagram...................................................................................................10
3.5 Conceptual Diagram.................................................................................................................10
CHAPTER 4- IMPLEMENTATION12
4.1 Tools & Technologies12
CHAPTER 5- CONCLUSION22
5.1 Concluding Remarks22
5.2 Future Directions22
5.3 Limitations22
BIBILIOGRAPHY………23
LIST OF FIGURES

Figures PageN

3.1: Data Flow Diagram ................................................................................................08


3.2: Entity Relationship Diagram...................................................................................10
3.3: Conceptual Diagram................................................................................................10
CHAPTER 1

INTRODUCTION

1.1 PROJECT VIEW

The project titled “Word Challenge With Friend List” is basically an


application for Android. This is an Android based application in which multiple users
could register themselves .They can challenge their opponent by selecting category,
level and word .The opponent will guess his word through hint. They can add friends
and sender can see the opponent activity. Anyone can see the active users and friend
list after register themselves. Friends could challenge to each other.

On admin side, all the management of project overall strategies are handled by
the admin like he can add category, level and word which is not present in activity.

Report is generated and sent to the administration. Every person with a little
knowledge of android platform can use this software application services. This
software application provides the easy and understandable user interface. Android
based smart phones are getting popular and it is everyone's need in this era.

Android is a software stack for mobile devices that includes an operating


system, middleware and key applications. Android is a software platform and
operating system for mobile devices based on the Linux operating system and
developed by Google and the Open Handset Alliance. It allows developers to write
managed code in a java-like language that utilizes Google-developed java libraries,
but does not support programs developed in native code.

The unveiling of the Android platform on 5 November 2007 was announced


with the founding of Open Handset Alliance, a consortium of 34 hardware ,software
and telecom companies devoted to advancing open standards for mobile devices.
When released in 2008, most of the android platform will be made available under the
Apache free-software and open-source license.

1
2
1.2 PROBLEM STATEMENT

 Word challenge is a guessing game for two or more players.


 One player select a word and other tries to guess it by suggesting the
letters.
 The word to guess is represented by a row of dashes, given the number of
letters.
 At the first incorrect guess a head is drawn, then the body, then the arm,
then the other arm, then one leg and lastly the other leg.

1.3 OBJECTIVES

Following are the important objectives of application:

 To provide user friendly interface to users


 To Send a request to each other
 To add new category, level and word to this system
 To get quick result regarding online users
 To makes friends separately
 Hind for the opponent player
 Use for the multiplayer player
 One major objective of playing games and participating in activities is to learn
problem-solving, strategy, trust, calculated risk-taking, how to adapt to
unforeseen issues and how to share. The rules of most games can have far-
reaching positive effects when they are applied to real-life situations.

1.4 PROPOSED SOLUTION

In order to overcome the limitation of existing system, I have proposed an


upgraded system in which.

 Record is maintained in app and database.


 Multiplayer can play with other.
 User’s information stored in database
 New category. Level and word could be add.
3
 Admin separate id to do changing
1.5 SCOPE
This application is a special purpose application which will be used only for
entertainment purpose. This system will be very easy to maintain.

The user will first interact with the application and after that he will fetch
different reports for his requirement. This system will be efficient & accurate. This
system will be user friendly and easy to use due to its simple and attractive interface.
The System will be more secure. Android is spreading quickly, increasing number of
mobile phone manufacturers today are considering using it in their most current cell
phones. Android application development is gaining momentum to support the
growing need for Android-based smartphones and increasing adaptation with such
devices. It is an open source OS used to develop applications to support customers
demands. Android mobile application can also be customized to meet varying client
needs. Android game development is utilized to produce out of the box games which
would thrill all its players.

It will be launched or can be used only in android environment and with the
specific login accounts. The data will be kept safe because we use WCF Web Service
to fetch the data from the database.
CHAPTER 2

PROJECT BACKGROUND
Word Challenge With Friend List was not already developed .But this
application concept matches with my project. In this application (Swaira Sahar,2017)
stated that accepts first it display the splash Screen Android is a first complete, then
game interface shows below. It is developed by the open handset Alliance, a group of
more than 30 technology and mobile companies. It is supported by Google and this
project uses a Google Mobile SDK for testing an application.
The aim Hangman is a game that cheats at the classic game Hangman.
Normally, when writing a computer to play Hangman, the computer picks a single
word and accurately represents it as the human player tries to guess all of the letters in
the word. In Evil Hangman, the computer instead maintain the word list of every word
in the English language, and then continuously cuts down the word list to try to dodge
the guesses as much possible.
This project focuses on developing a game application that is developed using
XML and JAVA where the service seeker and service providers can have their
profiles to know about each other. This web application increases the security
allowing the service seeker to know the person who is going to fix the problem posted
by him. Both services provider and seeker will have an option to choose the person
according to the ratings and reviews that are posted previously.

4
5

2.1 RELATED PROJECT AND RESEARCH ARTICLES

Figure 2.1 Splash Screen


In Figure 2.1, When user will interact with the interface of application .He will
see this splash screen .After that he can play his game.
6

Figure 2.2 Challenge Screen

In Figure 2.2 When user will start the game, he will see the game
screen where he will guess the word that opponent his send a challenge to him.
7

Figure 2.3 Game Over Screeen


In Figure 2.3 When user will start the game, he will see the game
screen where he can guess the word through dashing line as a hint in start
activity. When he will guess wrong a hang man picture will create on every
wrong attempt.
CHAPTER 3

CONCEPTUAL DESIGN
3.1 REQUIREMENT ELICITATION

The requirements are gathered from director of BIIT and supervisor. In each
meeting, there was discussion of assigning the objectives/requirements. I have
follows each instruction from supervisor and director.

3.2 REQUIREMENT SPECIFICATION

Word Challenge With Friend List App user can insert own data and store that
data in the database by using web services. On server side, the data will be view by
the admin.

3.2.1 Functional Requirements

According to nature of attaining specific behavior of the application following


specification were made mandatory by the supervisor and the director.

 Login Account
New logins account for user (Player) for Registration.
 Add Friend
In adding new friend, user will send friend request.
 Multi player
Multi player will participate and could challenge each other.
 Add Word
In adding new word, only admin would add new category, level and
word.
 Admin Login
Admin can change category, level and word.
 Hint For Player
Opponent player can see hint for his challenge.

8
9
3.2.2 Non-Functional Requirements
Following are the non-functional requirements which are mandatory for these
applications according to the international policies.

 Reliability
This system is safety ensured. Exceptional handling is ensured for avoiding
unwanted crash and errors.

 Performance
This system is full of speed and accuracy user does not have to wait for any
response and the databases and portal has been optimized.

 Availability
24/7 server availability is ensured.

 Design Constraints
The interfaces are simple and user friendly, user does not have to bother about
it.

3.2.3 Domain Requirements


It is the requirement that comes from the application domain of the system
that reflects the characteristics of that domain. The domain requirement of this system
should concern about the requirements that reflect characteristic application. This
system requires strong internet connection.

3.3 REQUIREMENT MODELING


Following is the modeling of the requirements in the form of DFD so a
technical person can judge the application.

3.3.1 Data Flow Diagram


This figure shows the basic operation of user request the app and application
will response the user, which user can view image and update information, and
connect the database.
10
Level 1

Figure 3.3.1: Representation of Data Flow Diagram

Approved By: Mr. Azhar Jamil

In figure 3.3.1 shows the detailed operation done by user, how the request will
be forward and from which table response will be get. The application performs
action according to the needs of user.

3.4 DATABASE DESIGN


Database Design is a collection of processes that facilitate the designing,
development, implementation and maintenance of enterprise data management
systems. It helps produce database systems. That meets the requirements of the users.
Have high performance.

Every application requires a database design because we have to store the data
for every entity. Following is the design of the database of my application. This
database is implemented by Web services.
11
3.4.1 ENTITY RELATIONSHIP DIAGRAM

Figure 3.4.1: Entity Relationship Diagram

Approved By: Mr. Azhar Jamil


In Figure 3.4.1 shows all the table
relation between them, and shows a complete mechanism between each other. Every
table has some relation which can be one to one, many too many or many to one
relation.

3.5 CONCEPTUAL DIAGRAM

Figure 3.5.1: Representation of Conceptual Diagram

Approved By: Mr. Azhar Jamil

In Figure 3.5.1 A conceptual diagram is essentially an illustration depicting


the arrangement and relationships of key attributes within a system by using a variety
12
of appropriate symbols that are easily understood. Put simply, conceptual
diagrams are “thought drawings.

Admin sends request to the Web service and SQL database and to store or
retrieve the data and the database stores or sends the data as a response.
CHAPTER 4

IMPLEMENTATION

4.1 TOOLS AND TECHNOLOGY

Technology is the collection of techniques, skills, methods, and processes used


in the production of goods or services or in the accomplishment of objectives
Technology can be the knowledge of techniques, processes, and the like, or it can be
embedded.

• SQL Server (2010).

• Android Studio.

• Fiddler.

• Microsoft Windows 10  Visual Studio (2012).

Module 1: Login

Output Screen

Figure 4.1 Login Screen

13
14

In Figure 4.1 is login screen in which admin and user enter email and password

Code

String result = WCFHandler.GetJsonResult("wordchallenge/Login?Userid=" +


login.Id +"&Pssword="+login.Password);
try
{
if(result.contains("error::"))
{
Toast.makeText(getApplicationContext(),"Invalid
details",Toast.LENGTH_SHORT).show();
return false;
}
else
{
login = gson.fromJson(result, Login.class);

SharedPreferences sharedPref = getSharedPreferences("MainPrefs",


Context.MODE_PRIVATE);
SharedPreferences.Editor editor = sharedPref.edit();
editor.putString("user_id", login.Id.split("@")[0]);
editor.putString("user_name", login.FirstName + " " + login.LastName);
editor.apply();

return true;
}
}
catch (Exception ex)
{
Toast.makeText(getApplicationContext(),"user not found
",Toast.LENGTH_SHORT).show();
return false;
}
public void validation()
{
if(TextUtils.isEmpty(edtSignInUserId.getText().toString()))
{
edtSignInUserId.setError("Please enter your Id");
}
if(TextUtils.isEmpty(edtSignInUserpassword.getText().toString()))
{
edtSignInUserpassword.setError("Please enter your Password");
}
else{
15
if (edtSignInUserId.getText().toString().equals("wasim@gmail.com" )&&
edtSignInUserpassword.getText().toString().equals("123") )
{
SharedPreferences sharedPref = getSharedPreferences("MainPrefs",
Context.MODE_PRIVATE);
SharedPreferences.Editor editor = sharedPref.edit();
editor.putString("user_id", "wasim");
editor.putString("user_name", "Wasim Khan");
editor.apply();

Intent intent = new Intent(getApplicationContext(),AddWordActivity.class);


startActivity(intent);
}

Module 2: User Registration

Output screen

Figure 4.2 Sign Up Screen

In Figure 4.2 is registration screen of User in which user make the account for game
playing.

Code
Signupbutton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
16
if(TextUtils.isEmpty(edtSignupUserFname.getText().toString())) {
edtSignupUserFname.setError("Please enter first name");
}
if(TextUtils.isEmpty(edtSignupUserLname.getText().toString())) {
edtSignupUserLname.setError("Please enter last name");
}
if(TextUtils.isEmpty(edtSignupId.getText().toString())) {
edtSignupId.setError("Please enter id");
}
if(TextUtils.isEmpty(edtSignupPassword.getText().toString())) {
edtSignupPassword.setError("Please enter password");
}
if(TextUtils.isEmpty(edtSignupConfirmpassword.getText().toString())) {
edtSignupConfirmpassword.setError("Please enter confirm password");
}
else {
registerUser();

Toast.makeText(getApplicationContext(),"successfully data
save",Toast.LENGTH_SHORT).show();
Intent intent = new Intent(getApplicationContext(), SignInActivity.class);
startActivity(intent);
}
}
});
private void registerUser() {
Registration registration = new Registration();
registration.FirstName=edtSignupUserFname.getText().toString().trim();
registration.LastName=edtSignupUserLname.getText().toString().trim();
registration.id=edtSignupId.getText().toString().trim();
registration.password=edtSignupPassword.getText().toString().trim();

registration.confirmpassword=edtSignupConfirmpassword.getText().toString().tri
m();

Gson gson = new Gson();


String json = gson.toJson(registration);
WCFHandler.PostJsonResult("wordchallenge/Register",json);
}
public void initialiazation()
{
edtSignupUserFname=findViewById(R.id.userid);
edtSignupUserLname=findViewById(R.id.username);
edtSignupId=findViewById(R.id.id);
edtSignupPassword=findViewById(R.id.password);
edtSignupConfirmpassword=findViewById(R.id.confirmpassword);
Signupbutton=findViewById(R.id.SignUpbutton);
alreadyRegister=findViewById(R.id.alreadyRegister);
17
btn_alreadyRegister=findViewById(R.id.btn_alreadyRegister);
}

Module 3: User Friends

Output screen

Figure 4.3 Friends Screen

In Figure 4.3 is view friend screen of user in which user can see his friends
and their friend can accept and reject their challenge.

Code
public class FriendsFragment extends Fragment {
ArrayList<FriendList> friendListArrayList=new ArrayList<>();
ArrayList<friendList> friendLists = new ArrayList<>();
friendAdapter friendAdapter;

public FriendsFragment() {
// Required empty public constructor

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_friends, container, false);
18
ListView friendList = rootView.findViewById(R.id.friendList);

String strJson = WCFHandler.GetJsonResult("WordChallenge/showFriends");


Gson gson = new Gson();
TypeToken<ArrayList<friendList>> typeToken = new
TypeToken<ArrayList<friendList>>() {};
friendLists = gson.fromJson(strJson, typeToken.getType());
if (friendLists.size()>0)
{
for (int i=0; i<friendLists.size();i++)
{
FriendList friendList1 = new FriendList(friendLists.get(i).fromid,
friendLists.get(i).toid, friendLists.get(i).attempted);

friendListArrayList.add(friendList1);

}
friendAdapter = new friendAdapter(getContext(), R.layout.friendlist,
friendListArrayList);
friendList.setAdapter(friendAdapter);
public FriendList (){};

public String getFromId() {


return fromId;
}

public void setFromId(String fromId) {


this.fromId = fromId;
}

public String getToId() {


return toId;
}

public void setToId(String toId) {


this.toId = toId;
}

public String getAttempted() {


return attempted;
}

public void setAttempted(String attempted) {


this.attempted = attempted;
}
19
Module 4: Active User

Output Screen

Figure 4.4 Active User Screen

In Figure 4.4 all the active user will show in this activity and anyone can send
challenge to the active user.

Code

addfriendbutton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (pos==0)
{
Toast.makeText(getContext(),"Item selected
first",Toast.LENGTH_SHORT).show();
}
else
{
/* Fragment fragment = new FriendsFragment();
FragmentManager fragmentManager =
getActivity().getSupportFragmentManager();
FragmentTransaction fragmentTransaction =
fragmentManager.beginTransaction();
fragmentTransaction.replace(R.id.frame_layout, fragment);
fragmentTransaction.addToBackStack(null);
fragmentTransaction.commit();*/
20

FriendList friendList = new FriendList();


// String fromid = getIntent().getExtras().getString("key");

SharedPreferences sharedPref =
getActivity().getSharedPreferences("MainPrefs", Context.MODE_PRIVATE);

String UId = sharedPref.getString("user_id", "NOTHING FOUND");


String ToId = sharedPref.getString("to_id", "NOTHING FOUND");
String attmp="0";

if (UId.equals("NOTHING FOUND"))
{
Toast.makeText(getActivity().getApplicationContext(), "Something
went wrong", Toast.LENGTH_LONG).show();
return ;
}

if (ToId.equals("NOTHING FOUND"))
{
Toast.makeText(getActivity().getApplicationContext(), "Something
went wrong", Toast.LENGTH_LONG).show();
return ;
}
else
{
Toast.makeText(getActivity().getApplicationContext(), "Data Save
Successfully", Toast.LENGTH_LONG).show();
}

friendList.fromId = UId;
friendList.toId = ToId;
friendList.attempted=attmp;
// Toast.makeText(getActivity().getApplicationContext(), "Data Save
Successfully", Toast.LENGTH_LONG).show();
Gson gson = new Gson();
String json = gson.toJson(friendList);
//String jsonString = "";
WCFHandler.PostJsonResult("wordchallenge/FriendList",json);

//
}

}
});
private void FetchActiveUsers()
{
String result = WCFHandler.GetJsonResult("wordchallenge/AllUsers");
Gson gson = new Gson();
21
// _activeuser = gson.fromJson(result,String[]);
_activeuser = gson.fromJson(result, new TypeToken<List<String>>()
{}.getType());

}
}
Module 5: Play Activity
Output Screen

Figure 4.5 Play Screen

In Figure 4.5 is show the user playing the game and he will guess the word
that opponent sent as a challenge.

Code

challengeuser.setOnClickListener(new View.OnClickListener() {
@Override

public void onClick(View view)


{
Challenge challenge = new Challenge();
if (count==0) {
count++;
challenge.word = wspinner.getSelectedItem().toString().trim();

SharedPreferences shared1 = getSharedPreferences("MainPrefs",


Context.MODE_PRIVATE);
SharedPreferences.Editor editor1 = shared1.edit();
editor1.putString("user_word", challenge.word);
22
editor1.apply();
}
else if (count==1) {
count++;
challenge.word1 = wspinner.getSelectedItem().toString().trim();

SharedPreferences shared1 = getSharedPreferences("MainPrefs",


Context.MODE_PRIVATE);
SharedPreferences.Editor editor1 = shared1.edit();
editor1.putString("user_word1", challenge.word1);
editor1.apply();
}
else if (count==2) {
count++;
challenge.word2 = wspinner.getSelectedItem().toString().trim();

SharedPreferences shared1 = getSharedPreferences("MainPrefs",

Context.MODE_PRIVATE);
SharedPreferences.Editor editor1 = shared1.edit();
editor1.putString("user_word2", challenge.word2);
editor1.apply();
}
challenge.category = sspinner.getSelectedItem().toString().trim();
// String fromid = getIntent().getExtras().getString("key");

SharedPreferences sharedP = getSharedPreferences("MainPrefs",

Context.MODE_PRIVATE);
SharedPreferences.Editor editor = sharedP.edit();
editor.putString("category", challenge.category);
editor.apply();
23

Module 6: Admin

Output Screen

Figure 4.6 Admin Screen

In Figure 4.6 is admin can add category, level and new word into database.

Code

private static final String


REGISTER_USER="http://192.168.43.119/wordChallengeAPI/api/wordchalleng
e/category";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_add_word);
initialiazation();
backbtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new
Intent(getApplicationContext(),BottomNavigationActivity.class);
startActivity(intent);
}
});
savebtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if(TextUtils.isEmpty(categorytxt.getText().toString())) {
categorytxt.setError("Please enter category");
24
}
if(TextUtils.isEmpty(leveltxt.getText().toString())) {
leveltxt.setError("Please enter level");
}
if(TextUtils.isEmpty(wordtxt.getText().toString())) {
wordtxt.setError("Please enter word");
}
else {
registerUser();
//loading=ProgressDialog.show(getApplicationContext(),"please
wait",null,true);
Toast.makeText(getApplicationContext(),"successfully data
save",Toast.LENGTH_SHORT).show();
Intent intent = new Intent(getApplicationContext(),SignInActivity.class);
startActivity(intent);
}
}
});

}
public void initialiazation()
{
categorytxt=findViewById(R.id.categoryeditText);
leveltxt=findViewById(R.id.leveleditText);
wordtxt=findViewById(R.id.wordeditText);
savebtn=findViewById(R.id.savebutton);
backbtn=findViewById(R.id.backbutton);

}
private void registerUser() {
// Registration registration = new Registration();
Admin admin=new Admin();
admin.Category=categorytxt.getText().toString().trim();
admin.Levels=leveltxt.getText().toString().trim();
admin.Word1=wordtxt.getText().toString().trim();

//register(firstname,lastname,id,password);

//Registration ki class bnao with same fields


// Fill object with values
//Convert Object to Json using GSon library
Gson gson = new Gson();
String json = gson.toJson(admin);
//String jsonString = "";
WCFHandler.PostJsonResult("wordchallenge/category",json);
}
}
25
Module 7: Last Activity

Output Screen

Figure 4.7 Game Over Screen

In Figure 4.7 is that show that user is win or lose.


CODE

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_last);
trybtn=findViewById(R.id.PlayButton);
ebtn=findViewById(R.id.ExitButton);
trybtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent=new Intent(getApplicationContext(),TryActivity.class);
startActivity(intent);
}
});
ebtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
// System.exit(0);

}
});
}}
CHAPTER 5

CONCLUSION

5.1 Concluding Remarks


“Word Challenge With Friend List Game” is basically an application for
Android user. This app is Android application that facilitates the user to play the
game.

Word Challenge With Friend List App User can get information regarding the
active user and separate friends section. They can easily register themselves for
playing the game. As a result, the next frontier of educational gaming will be created
by the very generation who were nurtured by games throughout childhood.
Application will allow a new user to register and after successfully registration. Then
visit the side of app.

A component-based architecture inspired by Internet mash-ups. Parts of one


application can be used in another ways not originally envisioned by the developer,
can even replace built-in components with own improved versions. This will unleash
a new round of creativity in the mobile space.

5.2 Future Directions


In future I can update this application. I can also add functionality as user need
more over this is help full onward data about chatting and can talk. This application
can be modified for more functionalities for the ease of people to find easy ways in
finding appropriate of entertainment. Options of chatting and talking activity can be
added .The opponent will watch the activity of playing user.

5.3 Limitations
This software application is easy to use, easy to install in Android supported
mobile devices. Users have to just download and install it.

26
BIBLIOGRAPHY
Code. (2017, may 19). Retrieved December 2019, from Managing multiple login/registration
flows in an Android Java app:www.lynxpro.com/blog/managing-multiple-
loginregistration-flows-android-java-app/

(2018, June 15). Retrieved January 2020, from 16 Android Menu Open Source UI Animation
Components Libraries [Java & Obj-C]:uxplanet.org/16-java-menu-open-source-ui-
animation-components-libraries-java-obj-c-75b0c3f7dcc8

(2018, march 1). Retrieved november 2019, from Stackoverflow:


stackoverflow.com/questions/28630253/uipickerview-best-practice

(2018, December 8). Retrieved january 2020, from Start Developing Android Apps (Java):
developer.apple.com/library/archive/referencelibrary/GettingStarted/Develop Androi
dAppsJava/CreateATableView.html

(2019, march 13). Retrieved october 2019, from Getting started with Core Data using Java 4:
wojciechkulik.pl/ android/getting-started-with-core-data-using-java-4

(2019, may 28). Retrieved january 2020, from Hackingwithjava:


www.hackingwithjava.com/example-code/uikit/how-to-take-a-photo-using-the-
camera-and-uiimagepickercontroller

27

You might also like