Mad Report22
Mad Report22
Mad Report22
INTRODUCTION
1.1 Overview of the project
Digital application designed to tell a narrative or story. Story app designed so that user
can have fun and at the same time can build up skills which will give a foundation for
starting to read.User can enter into the story app by clicking it. After entering into an
app
,the app displays plenty of stories along with the the writer of a story and each story has
its specific heading which is displayedto user.User can select the story and read the
story
.There are different kinds of a stories some include comedy,moral,Rags and
Ritches,Biopic stories.User can choose the story of his intrest and read the story and
read only one story at a time .After reading a story user can continue or exit from the
app.
Main aim of Story app is to tell the stories with a characters and to
give meaningfull messages to the users.
Story app is built to enhance the users communication skills
This app increases users cultural understanding and sharpen their memory.
Page | 1
STORY APP 2021-22
CHAPTER I
System Requirements
The required tools to develop Android applications are open source and can be
downloaded from the Web. Following is the list of software's you will need before you
start your Android application programming.
Java JDK5 or later version
Android Studio
If you are installing Android Studio on Mac or Linux, You can download the latest
version from Android Studio Mac Download, or Android Studio Linux Download,
check the instructions provided along with the downloaded file for Mac OS and Linux.
This tutorial will consider that you are going to setup your environment on Windows
machine having Windows
8.1 operating system.
Page | 2
STORY APP 2021-22
Installation
So let's launch Android Studio.exe, Make sure before launching Android Studio, Our
Machine should require installed Java JDK.
Once you launched Android Studio, its time to mention JDK7 path or later version in
android studio installer.
Need to check the components, which are required to create applications, below the
image has selected Android Studio, Android SDK, Android Virtual Machine and
performance(Intel chip).
Need to specify the location of local machine path for Android studio and Android
SDK, below the image has taken default location of windows 8.1 x64 bit architecture.
Need to specify the ram space for Android emulator by default it would take 512MB
Page | 3
STORY APP 2021-22
Page | 4
STORY APP 2021-22
CHAPTER 2
REQUIREMENT SPECIFICATION
A software requirement definition is an abstract description of the services which the
system should provide, and the constraints under which the system must operate. It
should only specify the external behavior of the system.
Page | 5
STORY APP 2021-22
2.2.2 Availability:
The ability of the system to deliver services when requested. There is no error in the
program while executing the program.
2.2.3 Reliability:
The ability of the system to deliver services as specified. The program is compatible
with all types of operating system without any failure.
2.2.4 Safety:
The ability of the system to operate without catastrophic failure. This program is user
friendly and it will never effects the system.
2.2.5 Security:
The ability of the system to protect itself against accidental or deliberate intrusion.
Page | 6
STORY APP 2021-22
It is available for download on Windows, macOS and Linux based operating systems or
as a subscription-based service in 2020. It is a replacement for the Eclipse Android
Development Tools (E-ADT) as the primary IDE for native Android application
development.
Android Studio supports all the same programming languages of lntelliJ (and CLion)
e.g. Java, C++, and more with extensions, such as Go; and Android Studio 3.0 or later
supports Kotlin and "all Java 7 language features and a subset of Java 8 language
features that vary by platform version." External projects backport some Java 9
features.
While IntelliJ states that Android Studio supports all released Java versions, and Java
12, it's not clear to what level Android Studio supports Java versions up to Java 12 (the
documentation mentions partial Java 8 support). At least some new language features
up to Java 12 are usable in Android.
Page | 7
STORY APP 2021-22
RAM:
4 GB RAM minimum;
8 GB RAM recommended.
1280 X 800
Page | 8
STORY APP 2021-22
CHAPTER 4
IMPLEMENTATION
ADAPTER:
package com.xstudioo.taletale;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.GradientDrawable;
import androidx.annotation.NonNull;
import androidx.cardview.widget.CardView;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.Random;
@NonNull
@Override
public ViewHolder onCreateViewHolder(@NonNull ViewGroup
viewGroup, int i) {
View view =
inflater.inflate(R.layout.custom_view,viewGroup,false);
return new ViewHolder(view);
}
@Override
public void onBindViewHolder(@NonNull ViewHolder
viewHolder, int i) {String title = sTitles[i];
Dept. of CS&E GECH Page 9
STORY APP 2021-22
viewHolder.number.setText(String.valueOf(title.charAt(0)));
GradientDrawable shape = new GradientDrawable();
shape.setShape(GradientDrawable.OVAL);
@Override
public int getItemCount() {
return sTitles.length;
}
TextView storyTitle,storyContent,number;
CardView circle;
itemView.setOnClickListener(new
View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new
Intent(v.getContext(),Details.class);
i.putExtra("titleOfStory",sTitles[getAdapterPosition()]);
i.putExtra("contentOfStory",sContent[getAdapterPosition()]);
v.getContext().startActivity(i);
}
});
storyTitle =
itemView.findViewById(R.id.storyTitle);
storyContent =
itemView.findViewById(R.id.storyContent);
number =
}
}
}
DETAILS :
package com.xstudioo.taletale;
import android.content.Intent;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.widget.TextView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_details);
storyContent = findViewById(R.id.contentOfStory);
Intent i = getIntent();
String title = i.getStringExtra("titleOfStory");
String content = i.getStringExtra("contentOfStory");
getSupportActionBar().setTitle(title);
storyContent.setText(content);
storyContent.setMovementMethod(new
ScrollingMovementMethod()
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
}
}
MAIN ACTIVITY :
package com.xstudioo.taletale;
import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBarDrawerToggle;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
RecyclerView recyclerView;
Adapter adapter;
Toolbar toolbar;
DrawerLayout drawer;
ActionBarDrawerToggle toggle;
NavigationView navigationView;
@Override
protected void onCreate(Bundle savedInstanceState)
{ super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
navigationView = findViewById(R.id.navi_view);
navigationView.setNavigationItemSelectedListener(this);
drawer = findViewById(R.id.drawer);
toggle = new
ActionBarDrawerToggle(this,drawer,toolbar,R.string.open,R.str
ing.close);
drawer.addDrawerListener(toggle);
toggle.setDrawerIndicatorEnabled(true);
toggle.syncState();
String[] titles =
getResources().getStringArray(R.array.stories_title);
String[] contents =
getResources().getStringArray(R.array.story_content);
recyclerView = findViewById(R.id.storiesListsView);
recyclerView.setLayoutManager(new
LinearLayoutManager(this));
adapter = new Adapter(this,titles,contents);
recyclerView.setAdapter(adapter)
@Override
}
return true;
}
}
SPLASH :
package com.xstudioo.taletale;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.TextView;
@Override
protected void onCreate(Bundle savedInstanceState)
{ super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
mContentView = findViewById(R.id.logoTitle);
mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PR
OFILE
| View.SYSTEM_UI_FLAG_FULLSCREEN
| View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
}
}
CHAPTER 5
SNAPSHOTS
Home Page: Home page displays the several stories along with the story title to users.
Settings Page : Settings page contains the users account details and
manage account setting.
CHAPTER 6
CONCLUSION
The story app displays the series of stories where we have used array to display the
stories.Here the users can find their stories and read.Story reading for kids is an important
component of successful comprehension and a valuable life skill for all young children to
develop.This application can increase the inference in young children by encouraging them
to read and infer meaning.This application would be a great entertainment factor for kids.
REFERENCES
https://github.com/bikashthapa01/story-app
www.wikipedia.com
www.Youtube.com