0% found this document useful (0 votes)
37 views56 pages

E Learning Compressed

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views56 pages

E Learning Compressed

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 56

ANDROID APP DEVELOPMENT

e-Learning App

A PROJECT REPORT
Submitted by

Mrutyunjay Sahoo
Regd No: 220720100118

in partial fulfilment for the award of the

degree of

MCA
In
COMPUTER SCIENCE AND ENGINEERING

SCHOOL OF ENGINEERING AND TECHNOLOGY


BHUBANESWAR CAMPUS
CENTURION UNIVERSITY OF TECHNOLOGY AND MANAGEMENT
ODISHA
APRIL 2024

1
DEPARTMENT OF MASTER IN COMPUTER APPLICATIONS
SCHOOL OF ENGINEERING AND TECHNOLOGY
BHUBANESWAR CAMPUS

BONAFIDE CERTIFICATE

Certified that this project report e-Learning App is the bonafide work of “Mrutyunjay
Sahoo, Regd No: 220720100118” who carried out the project work under my
supervision. This is to further certify to the best of my knowledge, that this project has not
been carried out earlier in this institute and the university.

SIGNATURE

(Asst. Prof. Mr. Rasmi Prakash Swain)


Professor of Computer Science and Engineering

Certified that the above-mentioned project has been duly carried out as per the norms of
the college and statutes of the university.

SIGNATURE
(Asst. Prof. Mr. Rakesh Kumar Ray)

HEAD OF THE DEPARTMENT


Professor of Computer Science and Engineering

DEPARTMENT SEAL

2
DECLARATION

I hereby declare that the project entitled “e-Learning App” submitted for the “Major
Project” of 4th semester MCA in Computer Science and Engineering is my original work
and the project has not formed the basis for the award of any Degree or any other similar
titles in any other University / Institute.

Name of the Student: Mrutyunjay Sahoo


Signature of the Student:
Registration No:220720100118
Place: CUTM, BHUBANESWAR CAMPUS
Date:

3
ACKNOWLEDGEMENT

I wish to express my profound and sincere gratitude to Asst. Prof. Mr. Rasmi
Prakash Swain, Department of Computer Science and Engineering, SOET,
Bhubaneswar Campus, who guided me into the intricacies of this project nonchalantly
with matchless magnanimity.
I thank Asst. Prof. Rakesh Kumar Ray, Head of the Department of Master in
Computer Applications, SOET, Bhubaneswar Campus and Asst. Prof. Sujata
Chakravarthy, Dean, School of Engineering and Technology, Bhubaneswar Campus for
extending their support during Course of this investigation.

I am highly grateful to Asst. Prof. Mr. Rasmi Prakash Swain who evinced keen
interest and invaluable support in the progress and successful completion of my project
work.
I am indebted to Asst. prof. Mr. Rasmi Prakash swain for their constant
encouragement, co- operation and help. Words of gratitude are not enough to describe
the accommodation and fortitude which they have shown throughout my endeavor.

Name of the Student: Mrutyunjay Sahoo


Signature of the Student:
Registration No: 220720100118
Place: CU TM, BHUBANESWAR CAMPUS

4
TABLE OF CONTENT
Sl. No. Topic Page No.

1 ABSTRACT 6

2 INTRODUCTION 7

3 PROBLEM STATEMENT 7

4 OBJECTIVE 7-8

5 SCOPE 8

6 METHODOLOGY 9-10

7 PROJECT WORK PART-I 11-12

UML DIAGRAM

8 PROJECT WORK PART-II 13-53

CODING

9 OUTPUT 54

10 FIREBASE CONNECTION 55

11 SUMMARY & CONCLUSION 55

12 REFERENCES 56

5
ABSTRACT

The exponential growth in the use of digital technologies and the availability of
mobile software applications (apps) has been well documented over the past decade. Literature on
the integration of mobile technology into higher education reveals an increasing focus on how
mobile devices are used within the classroom environment, both physical and online, rather than
on how mobile applications may be used for either teaching or the research process. Our study
surveyed staff and higher degree research students at a New Zealand university using an online
questionnaire to gain insight into the use of mobile apps for tertiary teaching and research, seeking
information, particularly on which apps were used for which tasks and what obstacles hindered
their use. The online survey used 29 questions and ran in 2016/2017. 269 participants completed
the survey, nearly 20% of the potential sample. We found that mobile apps were used by academics
and students for both teaching and research, primarily in the form of document and data storage
and exchange, and communication. Very little app use was recorded for in-class activities
(teaching) or in-field activities (research). Apps use resulted from personal motivation rather than
institutional planning. Both students and academics reported that institutional support and
flexibility would likely provide motivation and lead to increased app use for both research and
teaching.

6
CHAPTER-I
1. INTRODUCTION
When utilizing a study material app on Android, users can leverage the platform's mobile
capabilities for on-the-go learning. With features such as offline access, push notifications, and adaptive
learning modules, Android study apps enhance flexibility and cater to diverse learning styles. Users can
conveniently access a wealth of educational resources directly from their Android devices, fostering a
seamless integration of technology into their learning routines. Additionally, many study apps on
Android offer interactive features, collaborative tools, and progress tracking, contributing to a more
engaging and effective learning experience.
1.1. PROBLEM STATEMENT:

In the realm of education, there exists a growing need for a comprehensive and user-friendly study
material app on the Android platform. Current offerings lack seamless integration with the diverse
learning styles of users, often presenting challenges in accessibility, interactive engagement, and
adaptive content delivery. Additionally, there is a gap in providing robust features that cater to offline
learning, collaborative study environments, and personalized progress tracking. Addressing these
shortcomings is crucial to enhance the overall effectiveness and user experience of study material apps
on the Android platform, ensuring that learners have a convenient, engaging, and tailored resource at
their fingertips.
1.1 OBJECTIVE:
The objective of a study material app in Android is to provide a convenient and efficient
platform for users to access, organize, and interact with educational content. The app aims to enhance
the learning experience by leveraging the capabilities of mobile devices. Here are some key objectives
of a study material app:
• Organization and Structure:
Goal: Help users organize their study materials efficiently.
Objective: Implement features such as categorization, tags, and search functionality to enable users to
structure and locate their study materials effectively.
• Enhanced Learning Experience:
Goal: Improve the learning experience through interactive and engaging features.
Objective: Include multimedia elements, interactive quizzes, and other educational tools to make the
learning process more dynamic and enjoyable.
7
• Collaboration and Social Learning:
Goal: Foster collaboration and social learning among users.
Objective: Integrate features such as discussion forums, group study functionalities, or collaborative
note-sharing to encourage interaction and knowledge exchange among students.
• Offline Access:
Goal: Provide access to study materials even without an internet connection.
Objective: Allow users to download content for offline use, ensuring that students can continue their
studies in environments with limited or no internet connectivity.
• User Engagement:
Goal: Keep users engaged and motivated.
Objective: Implement features like gamification, achievement badges, or rewards to incentivize
consistent and effective use of the app.

CHAPTER-II
2 FORMULATION OF PROJECT/PROBLEM
2.1 SCOPE:
The scope of a study material app in Android is substantial, given the increasing reliance
on mobile technology for learning and the desire for more flexible and personalized educational
experiences. Here are some aspects that highlight the scope of a study material app in Android:
• Accessibility and Convenience:
Users can access study materials anytime, anywhere through their Android devices.
• Diverse Content Integration:
The app can incorporate a wide range of study materials, including text, images, videos,
interactive quizzes, and more.
• Adaptability to Various Subjects and Levels:
The app can cover a wide array of subjects and educational levels.
• Personalization and Customization:
Users can personalize their learning experience, bookmark content, set preferences, and create
personalized study plans.
• Offline Capabilities:
Offline access to study materials, allowing users to download content for use in areas with
limited or no internet connectivity.
8
• Learning Analytics and Progress Tracking:
Features for tracking user progress, quiz scores, and providing analytics on study habits.
• Continuous Updates and Content Expansion:
Regular updates and the addition of new study materials to keep content relevant and up-to-date.
2.2 METHODOLOGY:
Developing a study material app in Android involves a structured methodology to ensure the
creation of a functional, user-friendly, and effective application. Here is a step-by-step
methodology:
1. Define Objectives and Requirements:
Objective Definition: Clearly define the objectives of your study material app. Identify the target
audience and understand their needs.
Requirements Gathering: List the features and functionalities your app must have to meet the
defined objectives.
2. Market Research:
Identify Competitors: Research existing study material apps to understand what features they
offer and how you can differentiate your app.
User Feedback: Gather feedback from potential users to understand their preferences and pain
points.
3. Design the User Interface (UI):
Wireframing: Create wireframes or mockups of your app's UI to visualize the layout and
structure.
UI Design: Develop the actual UI design, considering usability, accessibility, and aesthetics.
4. Set Up the Development Environment:
Install Android Studio: Set up the official IDE for Android development.
Configuration: Configure your development environment and connect it to the necessary SDKs.
5. Create the App Architecture:
Choose Architecture Pattern: Select an appropriate architecture pattern such as MVC, MVVM,
or MVI for organizing your code.
Database Design: Define the structure of your database to store study materials, user data, and
any other relevant information.
6. Implement Core Features:

9
List View/Recycler View: Implement the UI components for displaying a list of study materials.
Navigation: Set up navigation between different screens (e.g., main activity, detail activity).
Data Handling: Implement logic for fetching and displaying study materials.
7. Add Functionalities:
User Authentication: If required, implement user authentication to personalize the user
experience.
Search Functionality: Add search features to help users find specific study materials.
Personalization Features: Allow users to bookmark, highlight, or customize their study materials.
8. Testing:
Unit Testing: Test individual components and functions.
Integration Testing: Verify that different parts of the app work seamlessly together.
User Testing: Conduct usability testing with actual users to gather feedback.
Bug Fixing: Address any bugs or issues identified during testing.
9. Documentation:
Code Documentation: Document your code for future reference and collaboration.
User Documentation: Create user guides or in-app help sections for users.
10. Deployment:
Prepare for Deployment: Ensure that your app meets all necessary requirements and guidelines
for deployment on the Google Play Store.
Release: Publish your app on the Google Play Store or any other distribution platform.
11. Post-Launch Support and Updates:
Monitoring: Monitor app performance, user feedback, and analytics after launch.
Iterative Improvements: Release updates to address issues, add new features, or improve existing
functionalities based on user feedback.

10
CHAPTER-III
3. PROJECT WORK PART-I
3.1 UML DIAGRAM:

3.1.1 Use Case Diagram:

3.1.2 ER Diagram:

11
3.1.3 Activity diagram:

CHAPTER-IV

3. PROJECT WORK PART-II

Activity_.xml

<?xml version="1.0" encoding="utf-8"?>


<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".cTutorial.Ac">

</androidx.constraintlayout.widget.ConstraintLayout>

12
Activity_c.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/bgcolor"
tools:context=".ActivityC">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >

<TextView
android:id="@+id/textView3"
android:layout_width="match_parent"
android:layout_height="112dp"
android:background="@drawable/gradientcard"
android:fontFamily="@font/aldrich"
android:paddingLeft="50dp"
android:paddingTop="25dp"
android:text="C Content"
android:textSize="44dp"
android:textStyle="bold" />

<androidx.cardview.widget.CardView
android:id="@+id/one"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="10dp"
android:background="@drawable/login2"
app:cardBackgroundColor="@color/bgcolor" >

<TextView
android:id="@+id/ahtml"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@drawable/bottom_gradient"
android:fontFamily="@font/aldrich"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:text="1. Intro to C"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:id="@+id/two"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
13
app:cardBackgroundColor="@color/bgcolor" >

<TextView
android:id="@+id/bhtml"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@drawable/bottom_gradient"
android:fontFamily="@font/aldrich"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:text="2. Variables in C"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/three"

android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor" >

<TextView
android:id="@+id/chtml"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@drawable/bottom_gradient"
android:fontFamily="@font/aldrich"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:text="3. Keywords in C"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:id="@+id/four"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor"
>

<TextView
android:id="@+id/dhtml"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@drawable/bottom_gradient"
android:fontFamily="@font/aldrich"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:text="4. Statements in C"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
14
android:id="@+id/five"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor"
>

<TextView
android:id="@+id/ehtml"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@drawable/bottom_gradient"
android:fontFamily="@font/aldrich"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:text="5. Loops in C"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/six"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor"

>

<TextView
android:id="@+id/fhtml"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@drawable/bottom_gradient"
android:fontFamily="@font/aldrich"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:text="6. Functions in C"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/seven"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor"
>

<TextView
android:id="@+id/ghtml"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@drawable/bottom_gradient"
android:fontFamily="@font/aldrich"
android:paddingLeft="20dp"
15
android:paddingTop="25dp"
android:text="7. Arrays in C "
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/eight"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor"
>

<TextView
android:id="@+id/hhtml"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@drawable/bottom_gradient"
android:fontFamily="@font/aldrich"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:text="8. Pointers in C"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
</LinearLayout>
</ScrollView>
</LinearLayout>
Activity_css.xml

<?xml version="1.0" encoding="utf-8"?>


<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Activity_CSS"
android:background="@color/bgcolor">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginHorizontal="5dp"
android:layout_marginBottom="10dp"
android:orientation="horizontal">

<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
16
android:layout_margin="10dp"
android:layout_weight="1"
android:backgroundTint="@color/bgcolor"
app:cardElevation="50dp">

<LinearLayout
android:id="@+id/html"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/gradientcard1"
android:orientation="vertical"
android:paddingHorizontal="10dp"
android:paddingVertical="20dp">

<ImageView
android:layout_width="43dp"
android:layout_height="38dp"
android:src="@drawable/paidcourses" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="5dp"
android:layout_weight="1"
android:text="CSS course"
android:textColor="#fff"
android:textSize="26dp"
android:textStyle="bold" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="1dp"
android:layout_weight="1"
android:text="Unlock the secrets of CSS with our
comprehensive free course, covering everything from basic styling to advanced
layout techniques."
android:textColor="#f1f1f1"
android:textSize="8dp"
android:textStyle="bold"
tools:ignore="TextSizeCheck" />

</LinearLayout>

</androidx.cardview.widget.CardView>

</LinearLayout>

<androidx.cardview.widget.CardView
android:id="@+id/one"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="17dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor">
<TextView
android:id="@+id/acss"
17
android:layout_width="match_parent"
android:layout_height="74dp"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:fontFamily="@font/aldrich"
android:textStyle="bold"
android:background="@drawable/bottom_gradient1"
android:textSize="20dp"
android:text="1. What is CSS" />
</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:id="@+id/two"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="17dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor">
<TextView
android:id="@+id/bcss"
android:layout_width="match_parent"
android:layout_height="74dp"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:fontFamily="@font/aldrich"
android:background="@drawable/bottom_gradient1"
android:textStyle="bold"
android:textSize="20dp"
android:text="2. Types of CSS" />
</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:id="@+id/three"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="17dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor">
<TextView
android:id="@+id/ccss"
android:layout_width="match_parent"
android:layout_height="74dp"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:fontFamily="@font/aldrich"
android:background="@drawable/bottom_gradient1"
android:textStyle="bold"
android:textSize="20dp"
android:text="3. Display Properties " />
</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:id="@+id/four"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="17dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor">
18
<TextView
android:id="@+id/dcss"
android:layout_width="match_parent"
android:layout_height="74dp"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:fontFamily="@font/aldrich"
android:background="@drawable/bottom_gradient1"
android:textStyle="bold"
android:textSize="20dp"
android:text="4. CSS Buttons " />
</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:id="@+id/five"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="17dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor">
<TextView
android:id="@+id/ecss"
android:layout_width="match_parent"
android:layout_height="74dp"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:fontFamily="@font/aldrich"
android:background="@drawable/bottom_gradient1"
android:textStyle="bold"
android:textSize="20dp"
android:text="5. CSS Fonts " />
</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:id="@+id/six"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="17dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor">
<TextView
android:id="@+id/fcss"
android:layout_width="match_parent"
android:layout_height="74dp"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:fontFamily="@font/aldrich"
android:background="@drawable/bottom_gradient1"
android:textStyle="bold"
android:textSize="20dp"
android:text="6. Margin and Padding " />
</androidx.cardview.widget.CardView>

</LinearLayout>
</ScrollView>
</LinearLayout>

19
Activity_html.xml

<?xml version="1.0" encoding="utf-8"?>


<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/bgcolor"
tools:context=".html.Html">

<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >

<TextView
android:id="@+id/textView3"
android:layout_width="match_parent"
android:layout_height="112dp"
android:background="@color/yellow"
android:fontFamily="@font/aldrich"
android:paddingLeft="50dp"
android:paddingTop="25dp"
android:text="Html Content"
android:textSize="44dp"
android:textStyle="bold" />

<androidx.cardview.widget.CardView
android:id="@+id/one"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="10dp"
android:background="@drawable/login2"
app:cardBackgroundColor="@color/bgcolor" >

<TextView
android:id="@+id/ahtml"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/yellow"
android:fontFamily="@font/aldrich"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:text="1. What is Html ?"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:id="@+id/two"
android:layout_width="match_parent"
android:layout_height="72dp"
20
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor" >

<TextView
android:id="@+id/bhtml"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/yellow"
android:fontFamily="@font/aldrich"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:text="2. HTML Tags "
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/three"

android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor" >

<TextView
android:id="@+id/chtml"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/yellow"
android:fontFamily="@font/aldrich"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:text="3. HTML Table "
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:id="@+id/four"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor"
>

<TextView
android:id="@+id/dhtml"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/yellow"
android:fontFamily="@font/aldrich"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:text="4. HTML Form "
android:textSize="20dp"
android:textStyle="bold" />
21
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/five"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor"
>

<TextView
android:id="@+id/ehtml"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/yellow"
android:fontFamily="@font/aldrich"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:text="5. Id Attribute "
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/six"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor"

>

<TextView
android:id="@+id/fhtml"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/yellow"
android:fontFamily="@font/aldrich"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:text="6. HTML with JavaScript "
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/seven"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor"
>

<TextView
android:id="@+id/ghtml"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/yellow"
22
android:fontFamily="@font/aldrich"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:text="7. HTML File Handling "
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/eight"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/bgcolor"
>

<TextView
android:id="@+id/hhtml"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/yellow"
android:fontFamily="@font/aldrich"
android:paddingLeft="20dp"
android:paddingTop="25dp"
android:text="8. HTML File Handling "
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>

</LinearLayout>
</ScrollView>
</LinearLayout>

Activity_java.xml

<?xml version="1.0" encoding="utf-8"?>


<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/dark_green"
tools:context=".JavaTutorial1">

<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >

<TextView
android:id="@+id/textView3"
android:layout_width="match_parent"
23
android:layout_height="112dp"
android:background="@color/btnstart"
android:fontFamily="@font/aldrich"
android:paddingLeft="50dp"
android:paddingTop="25dp"
android:text="Java Content"
android:textSize="44dp"
android:textStyle="bold" />

<androidx.cardview.widget.CardView
android:id="@+id/one"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="10dp"
android:background="#B15858"
app:cardBackgroundColor="@color/dark_green" >

<TextView
android:id="@+id/java1"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/cardstart"
android:fontFamily="@font/aldrich"
android:paddingLeft="50dp"
android:paddingTop="25dp"
android:text="What is Java ?"
android:textSize="20dp"
android:textStyle="bold" />

</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:id="@+id/two"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/dark_green">

<TextView
android:id="@+id/java2"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/cardstart"
android:fontFamily="@font/aldrich"
android:paddingLeft="50dp"
android:paddingTop="25dp"
android:text="What is Java Variable ?"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/three"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
24
app:cardBackgroundColor="@color/dark_green">

<TextView
android:id="@+id/java3"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/cardstart"
android:fontFamily="@font/aldrich"
android:paddingLeft="50dp"
android:paddingTop="25dp"
android:text="What is Java Operators ?"
android:textSize="20dp"
android:textStyle="bold" />

</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/four"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/dark_green">

<TextView
android:id="@+id/java4"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/cardstart"
android:fontFamily="@font/aldrich"
android:paddingLeft="50dp"
android:paddingTop="25dp"
android:text="What is Java Keyword ?"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/five"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/dark_green">

<TextView
android:id="@+id/java5"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/cardstart"
android:fontFamily="@font/aldrich"
android:paddingLeft="50dp"
android:paddingTop="25dp"
android:text="What is Java Loops ?"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/six"
android:layout_width="match_parent"
25
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/dark_green">

<TextView
android:id="@+id/java6"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/cardstart"
android:fontFamily="@font/aldrich"
android:paddingLeft="50dp"
android:paddingTop="25dp"
android:text="What is Java Oops Concept ?"
android:textSize="20dp"
android:textStyle="bold" />

</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/seven"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/dark_green">

<TextView
android:id="@+id/java7"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/cardstart"
android:fontFamily="@font/aldrich"
android:paddingLeft="50dp"
android:paddingTop="25dp"
android:text="What is Java Constructors ?"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/eight"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/dark_green">

<TextView
android:id="@+id/java8"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/cardstart"
android:fontFamily="@font/aldrich"
android:paddingLeft="50dp"
android:paddingTop="25dp"
android:text="What is Java Inheritance ?"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
26
<androidx.cardview.widget.CardView
android:id="@+id/nine"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"

android:background="#B15858"
app:cardBackgroundColor="@color/dark_green">

<TextView
android:id="@+id/java9"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/cardstart"
android:fontFamily="@font/aldrich"
android:paddingLeft="50dp"
android:paddingTop="25dp"
android:text="What is Java MethodOverLoading ?"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/ten"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/dark_green">

<TextView
android:id="@+id/java10"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/cardstart"
android:fontFamily="@font/aldrich"
android:paddingLeft="50dp"
android:paddingTop="25dp"
android:text="What is Java OverRiding ?"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/eleven"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/dark_green">

<TextView
android:id="@+id/java11"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/cardstart"
android:fontFamily="@font/aldrich"
android:paddingLeft="50dp"
android:paddingTop="25dp"
android:text="What is Java Polymorphism ?"
27
android:textSize="20dp"
android:textStyle="bold" />

</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/twelve"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/dark_green">

<TextView
android:id="@+id/java12"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/cardstart"
android:fontFamily="@font/aldrich"
android:paddingLeft="50dp"
android:paddingTop="25dp"
android:text="What is Java Interface ?"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/thirteen"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/dark_green">

<TextView
android:id="@+id/java13"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/cardstart"
android:fontFamily="@font/aldrich"
android:paddingLeft="50dp"
android:paddingTop="25dp"
android:text="What is Java Encapsulation ?"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/fourteen"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_marginTop="5dp"
android:background="#B15858"
app:cardBackgroundColor="@color/dark_green">

<TextView
android:id="@+id/java14"
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/cardstart"
android:fontFamily="@font/aldrich"
28
android:paddingLeft="50dp"
android:paddingTop="25dp"
android:text="What is Java Arrays ?"
android:textSize="20dp"
android:textStyle="bold" />
</androidx.cardview.widget.CardView>

</LinearLayout>
</ScrollView>
</LinearLayout>

Activity_main2.xml

<?xml version="1.0" encoding="utf-8"?>


<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/loginbackground"
tools:context=".MainActivity2">

<View
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#8F000000" />

<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="16dp"
android:fillViewport="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >

<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="160dp"
android:fontFamily="@font/aldrich"
android:text="Login"
android:textColor="@color/white"
android:textSize="24sp"
android:textStyle="bold"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />

<EditText
android:id="@+id/inputEmail"
android:layout_width="0dp"
29
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:layout_marginEnd="16dp"
android:layout_marginStart="16dp"
android:background="@drawable/input_bg"
android:drawableLeft="@drawable/baseline_email_24"
android:drawablePadding="10dp"
android:ems="10"
android:hint="Email"
android:inputType="textEmailAddress"
android:padding="10dp"
android:textColor="@color/white"
android:textColorHint="@color/white"
app:layout_constraintTop_toBottomOf="@+id/textView2"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />

<EditText
android:id="@+id/inputPassword"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:layout_marginEnd="16dp"
android:layout_marginStart="16dp"
android:background="@drawable/input_bg"
android:drawableLeft="@drawable/baseline_security_24"
android:drawablePadding="10dp"
android:ems="10"
android:hint="Password"
android:inputType="textPassword"
android:padding="10dp"
android:textColor="@color/white"
android:textColorHint="@color/white"
app:layout_constraintTop_toBottomOf="@+id/inputEmail"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />

<TextView
android:id="@+id/textView9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="Forgot Password ?"
android:textColor="@color/white"
android:textSize="20sp"
app:layout_constraintTop_toBottomOf="@+id/inputPassword"
app:layout_constraintStart_toStartOf="@+id/inputPassword"
app:layout_constraintEnd_toEndOf="@+id/inputPassword" />

<Button
android:id="@+id/btnLogin"
android:layout_width="300dp"
android:layout_height="48dp"
android:layout_marginTop="16dp"
android:background="@drawable/input_bg"
android:text="Login"
android:textColor="@color/white"
app:layout_constraintTop_toBottomOf="@+id/textView9"
30
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />

<TextView
android:id="@+id/createNewAccount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="Create New Account?"
android:textColor="@color/white"
android:textSize="20sp"
app:layout_constraintTop_toBottomOf="@+id/btnLogin"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>

Activity_payment.xml

<?xml version="1.0" encoding="utf-8"?>


<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".PaymentActivity"
android:orientation="vertical"
android:background="@drawable/background"
android:padding="50dp">

<TextView
android:id="@+id/textView2"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:fontFamily="@font/aldrich"
android:text="Payment Method"
android:textColor="@color/white"
android:textSize="34sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0" />

<EditText
android:id="@+id/edtname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="150sp"
android:layout_marginBottom="10dp"
android:hint="Name"
tools:ignore="TouchTargetSizeCheck" />
31
<EditText
android:id="@+id/edtupiid"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:hint="UPI Id"
tools:ignore="TouchTargetSizeCheck" />

<EditText
android:id="@+id/edtmsg"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:hint="Course Name"
tools:ignore="TouchTargetSizeCheck" />

<EditText
android:id="@+id/edttnid"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:hint="Mobile"
tools:ignore="TouchTargetSizeCheck" />

<EditText
android:id="@+id/edtamt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:hint="amount"
tools:ignore="TouchTargetSizeCheck" />

<Button
android:id="@+id/btnpay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:backgroundTint="@color/teal_700"
android:text="pay" />

</LinearLayout>
Activity_register.xml

<?xml version="1.0" encoding="utf-8"?>


<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity2"
android:background="@drawable/register">

<View>
32
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#8F000000"/>

<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
app:layout_constraintTop_toTopOf="parent"
tools:layout_editor_absoluteX="0dp">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">

<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="132dp"

android:fontFamily="@font/aldrich"
android:text="Register"
android:textColor="@color/white"
android:textSize="44sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0" />

<EditText
android:id="@+id/inputEmail"
android:layout_width="343dp"
android:layout_height="53dp"
android:layout_marginTop="220dp"
android:background="@drawable/input_bg"
android:drawableLeft="@drawable/baseline_email_24"
android:drawablePadding="10dp"
android:ems="10"
android:hint="Email"
android:inputType="textEmailAddress"
android:padding="10dp"
android:paddingLeft="20dp"
android:paddingTop="13dp"
android:paddingRight="20dp"
android:paddingBottom="13dp"
android:textColor="@color/white"
android:textColorHint="@color/white"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.544"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<EditText
android:id="@+id/inputPassword"
android:layout_width="343dp"
33
android:layout_height="53dp"
android:layout_marginTop="290dp"
android:background="@drawable/input_bg"
android:drawableLeft="@drawable/baseline_security_24"
android:drawablePadding="10dp"
android:ems="10"
android:hint="Password"
android:inputType="textPassword"
android:padding="10dp"
android:paddingLeft="20dp"
android:paddingTop="13dp"
android:paddingRight="20dp"
android:paddingBottom="13dp"
android:textColor="@color/white"
android:textColorHint="@color/white"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.578"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<EditText
android:id="@+id/inputConfirmPassword"
android:layout_width="340dp"
android:layout_height="57dp"
android:layout_marginTop="360dp"
android:background="@drawable/input_bg"
android:drawableLeft="@drawable/baseline_security_24"
android:drawablePadding="10dp"
android:ems="10"
android:hint="Confirm Password"
android:inputType="textPassword"
android:padding="10dp"
android:paddingLeft="20dp"
android:paddingTop="13dp"
android:paddingRight="20dp"
android:paddingBottom="13dp"
android:textColor="@color/white"
android:textColorHint="@color/white"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.578"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<Button
android:id="@+id/btnRegister"
android:layout_width="281dp"
android:layout_height="51dp"
android:layout_marginTop="440dp"
android:background="@drawable/input_bg"
android:padding="10dp"
android:paddingLeft="20dp"
android:paddingTop="13dp"
android:paddingRight="20dp"
android:text="Register"
android:textColor="@color/white"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
34
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/alreadyHaveaccount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="512dp"
android:text="Already have account?"
android:textColor="@color/white"
android:textSize="20sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.516"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

</ScrollView>

</androidx.constraintlayout.widget.ConstraintLayout>

Activity_result.xml

<?xml version="1.0" encoding="utf-8"?>


<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/primary_color"
tools:context=".settingActivity">
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/aldrich"
android:text="Score : "
android:textColor="@color/white"
android:textSize="35sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.3" />

<Button
android:id="@+id/btn_restart"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="30dp"
android:layout_marginEnd="30dp"
android:background="@drawable/background_btn"
android:fontFamily="@font/aldrich"
android:padding="8dp"
android:text="Restart"
35
android:textColor="@color/primary_color"
android:textSize="20sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView"
app:layout_constraintVertical_bias="0.37" />

</androidx.constraintlayout.widget.ConstraintLayout>

Activity_splash_screen.xml

<?xml version="1.0" encoding="utf-8"?>


<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/bgcolor"
tools:context=".SplashScreen">

<ImageView
android:id="@+id/imageView"
android:layout_width="7000dp"
android:layout_height="7000dp"
android:layout_centerInParent="true"
app:srcCompat="@drawable/studypnglogo" />

</RelativeLayout>

dashboard_activity.xml

<?xml version="1.0" encoding="utf-8"?>


<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:padding="15dp"
android:layout_height="match_parent"
android:background="@color/bgcolor"
tools:context=".Dashboard">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
tools:ignore="MissingConstraints">

<LinearLayout
36
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:layout_marginTop="5dp"
android:layout_marginEnd="14dp"
android:orientation="horizontal">

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Study Meterial !\nFind What You Wants"
android:textColor="#fff"
android:textSize="26dp"
android:textStyle="bold" />

<ImageView
android:layout_width="35dp"
android:layout_height="wrap_content"
android:src="@drawable/gradientsearch" />

</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="@+id/linearLayout"
app:layout_constraintStart_toStartOf="@+id/linearLayout"
app:layout_constraintTop_toBottomOf="@+id/linearLayout">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginHorizontal="5dp"
android:layout_marginBottom="10dp"
android:orientation="horizontal">

<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="175dp"
android:layout_margin="5dp"
android:layout_weight="1"
android:backgroundTint="@color/bgcolor"
app:cardElevation="50dp">

<LinearLayout
android:id="@+id/freecourses"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/gradientcard"
android:orientation="vertical"
37
android:paddingHorizontal="10dp"
android:paddingVertical="20dp">

<ImageView
android:layout_width="51dp"
android:layout_height="40dp"
android:src="@drawable/courses" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="5dp"
android:layout_weight="1"
android:text="Free\nCourses"
android:textColor="#fff"
android:textSize="26dp"
android:textStyle="bold" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="1dp"
android:layout_weight="1"
android:text="Hello join with me on Free Courses"
android:textColor="#f1f1f1"
android:textSize="15dp"
android:textStyle="bold"
tools:ignore="TextSizeCheck" />

</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>

<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_margin="5dp"
android:layout_weight="1"
android:backgroundTint="@color/bgcolor"
app:cardElevation="50dp">

<LinearLayout
android:id="@+id/paidCourse"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/uigradient"
android:orientation="vertical"
android:paddingHorizontal="10dp"
android:paddingVertical="20dp">

<ImageView
android:layout_width="43dp"
android:layout_height="38dp"
android:src="@drawable/paidcourses" />

<TextView
android:layout_width="match_parent"
38
android:layout_height="wrap_content"
android:layout_marginVertical="5dp"
android:layout_weight="1"
android:text="@string/paid_amp_npremium_ncourses"
android:textColor="#fff"
android:textSize="26dp"
android:textStyle="bold" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="1dp"
android:layout_weight="1"
android:text="Hello join with me on Premium Courses"
android:textColor="#f1f1f1"
android:textSize="15dp"
android:textStyle="bold"
tools:ignore="TextSizeCheck" />

</LinearLayout>

</androidx.cardview.widget.CardView>

<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="190dp"
android:layout_weight="1"
android:layout_margin="5dp"
android:backgroundTint="@color/bgcolor"
app:cardElevation="50dp">

<LinearLayout
android:id="@+id/practicetest"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/gradientcard"
android:orientation="vertical"
android:paddingHorizontal="10dp"
android:paddingVertical="20dp">

<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:src="@drawable/apaid3" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="5dp"
android:layout_weight="1"
android:text="Practice\nTest"
android:textColor="#fff"
android:textSize="26dp"
android:textStyle="bold" />

<TextView
android:layout_width="match_parent"
39
android:layout_height="wrap_content"
android:layout_marginVertical="1dp"
android:layout_weight="1"
android:text="Check\nyour knowledge"
android:textColor="#f1f1f1"
android:textSize="15dp"
android:textStyle="bold"
tools:ignore="TextSizeCheck" />

</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

Activity_CSS.java
package com.example.studymeterialapp;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.example.studymeterialapp.CssTutorial.acss;
import com.example.studymeterialapp.CssTutorial.bcss;
import com.example.studymeterialapp.CssTutorial.ccss;
import com.example.studymeterialapp.CssTutorial.dcss;
import com.example.studymeterialapp.CssTutorial.ecss;
import com.example.studymeterialapp.CssTutorial.fcss;
public class Activity_CSS extends AppCompatActivity {
CardView one,two,three,four,five,six,seven;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_css);
one=findViewById(R.id.one);
two=findViewById(R.id.two);
three=findViewById(R.id.three);
four=findViewById(R.id.four);
five=findViewById(R.id.five);
six=findViewById(R.id.six);
seven=findViewById(R.id.seven);

one.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(Activity_CSS.this, acss.class);
startActivity(intent);
}
});
two.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(Activity_CSS.this, bcss.class);
startActivity(intent);
}
40
});
three.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(Activity_CSS.this, ccss.class);
startActivity(intent);
}
});
four.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(Activity_CSS.this, dcss.class);
startActivity(intent);
}
});
five.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(Activity_CSS.this, ecss.class);
startActivity(intent);
}
});
six.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(Activity_CSS.this, fcss.class);
startActivity(intent);
}
});
}}

ActivityC.java

package com.example.studymeterialapp;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.example.studymeterialapp.cTutorial.Ac;
import com.example.studymeterialapp.cTutorial.Bc;
import com.example.studymeterialapp.cTutorial.Cc;
import com.example.studymeterialapp.cTutorial.Dc;
import com.example.studymeterialapp.cTutorial.Ec;
import com.example.studymeterialapp.cTutorial.Fc;
import com.example.studymeterialapp.cTutorial.Gc;
import com.example.studymeterialapp.cTutorial.Hc;

public class ActivityC extends AppCompatActivity {

CardView one,two,three,four,five,six,seven,eight;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_c);
one=findViewById(R.id.one);
41
two=findViewById(R.id.two);
three=findViewById(R.id.three);
four=findViewById(R.id.four);
five=findViewById(R.id.five);
six=findViewById(R.id.six);
seven=findViewById(R.id.seven);
eight=findViewById(R.id.eight);

one.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(ActivityC.this, Ac.class);
startActivity(intent);
}
});
two.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(ActivityC.this, Bc.class);
startActivity(intent);
}
});
three.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(ActivityC.this, Cc.class);
startActivity(intent);
}
});
four.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(ActivityC.this, Dc.class);
startActivity(intent);
}
});
five.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(ActivityC.this, Ec.class);
startActivity(intent);
}
});
six.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(ActivityC.this, Fc.class);
startActivity(intent);
}
});
seven.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(ActivityC.this, Gc.class);
startActivity(intent);
}
});
eight.setOnClickListener(new View.OnClickListener() {
42
@Override
public void onClick(View v) {
Intent intent=new Intent(ActivityC.this, Hc.class);
startActivity(intent);
}
});
}
}
Cources.java

package com.example.studymeterialapp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.example.studymeterialapp.html.Html;
import
com.smarteist.autoimageslider.IndicatorView.animation.type.IndicatorAnimationType;
import com.smarteist.autoimageslider.SliderAnimations;
import com.smarteist.autoimageslider.SliderView;
public class Courses extends AppCompatActivity {
LinearLayout java,html,c,css,clanguage,Spring;
SliderView sliderView;
int[] images = {R.drawable.one,
R.drawable.two,
R.drawable.three,
R.drawable.four,
R.drawable.five,
R.drawable.six};

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.courses_activity);
java=findViewById(R.id.java);
html=findViewById(R.id.html);
clanguage=findViewById(R.id.clanguage);
css=findViewById(R.id.css);
Spring=findViewById(R.id.Spring);
sliderView = findViewById(R.id.image_slider);

SliderAdapter sliderAdapter = new SliderAdapter(images);

sliderView.setSliderAdapter(sliderAdapter);
sliderView.setIndicatorAnimation(IndicatorAnimationType.WORM);

sliderView.setSliderTransformAnimation(SliderAnimations.DEPTHTRANSFORMATION);
sliderView.startAutoCycle();

java.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(Courses.this, JavaTutorial1.class);
startActivity(intent);
}
});
43
html.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(Courses.this, Html.class);
startActivity(intent);
}
});
css.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(Courses.this, Activity_CSS.class);
startActivity(intent);
}
});
clanguage.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(Courses.this, ActivityC.class);
startActivity(intent);
}
});
}
}

Mainactivity2.java

package com.example.studymeterialapp;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.auth.AuthResult;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;

public class MainActivity2 extends AppCompatActivity {


TextView createnewAccount;

EditText inputEmail,inputPassword;
Button btnLogin;
ImageView btnGoogle;
String emailPattern="[a-zA-Z0-9_-]+@[a-z]+\\.+[a-z]+";
ProgressDialog progressDialog;
FirebaseAuth mAuth;
FirebaseUser mUser;

@Override
protected void onCreate(Bundle savedInstanceState) {
44
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main2);

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager
.LayoutParams.FLAG_FULLSCREEN);
inputEmail=findViewById(R.id.inputEmail);
inputPassword=findViewById(R.id.inputPassword);
btnLogin=findViewById(R.id.btnLogin);
// btnGoogle=findViewById(R.id.btnGoogle);
createnewAccount=findViewById(R.id.createNewAccount);
progressDialog=new ProgressDialog(this);
mAuth= FirebaseAuth.getInstance();
mUser=mAuth.getCurrentUser();

createnewAccount.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new
Intent(MainActivity2.this,RegisterActivity.class));
}
});

btnLogin.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
perforLogin();
}
});
}

private void perforLogin() {


String email=inputEmail.getText().toString();
String password=inputPassword.getText().toString();

if(!email.matches(emailPattern)){
inputEmail.setError("Enter Context Email");
} else if (password.isEmpty()|| password.length()<6) {
inputPassword.setError("Enter Proper Password");

}
else{
progressDialog.setMessage("Please Wait While Login...");
progressDialog.setTitle("Login");
progressDialog.setCanceledOnTouchOutside(false);
progressDialog.show();

mAuth.signInWithEmailAndPassword(email,password).addOnCompleteListener(new
OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
if(task.isSuccessful()){
progressDialog.dismiss();
sendUserToNextActivity();
Toast.makeText(MainActivity2.this, "Login
45
SUccessfully", Toast.LENGTH_SHORT).show();

}else{
progressDialog.dismiss();
Toast.makeText(MainActivity2.this,
""+task.getException(), Toast.LENGTH_SHORT).show();
}
}
});
}
}
private void sendUserToNextActivity() {
Intent intent=new Intent(MainActivity2.this,Dashboard.class);

intent.setFlags(intent.FLAG_ACTIVITY_CLEAR_TASK|Intent.FLAG_ACTIVITY_NEW_TASK
);
startActivity(intent);
}
}

PaymentActivity.java

package com.example.studymeterialapp;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import java.util.ArrayList;
public class PaymentActivity extends AppCompatActivity {

EditText nametxt, upiIdtxt, msgtxt, amttxt, transIdtxt, refIdtxt;

Button paybtn;

final int PAY_REQUEST = 1;


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_payment);

nametxt = findViewById(R.id.edtname);
upiIdtxt = findViewById(R.id.edtupiid);
msgtxt = findViewById(R.id.edtmsg);
amttxt = findViewById(R.id.edtamt);
transIdtxt = findViewById(R.id.edttnid);
// refIdtxt = findViewById(R.id.edtrefid);

paybtn = findViewById(R.id.btnpay);
paybtn.setOnClickListener(new View.OnClickListener() {

46
@Override
public void onClick(View v) {
String name = nametxt.getText().toString();
String upiId = upiIdtxt.getText().toString();
String amt = amttxt.getText().toString();
String msg = msgtxt.getText().toString();

String tnid = transIdtxt.getText().toString();


String refId = refIdtxt.getText().toString();

if(name.isEmpty() || upiId.isEmpty()){
Toast.makeText(PaymentActivity.this, "Name and Upi Id is
necessary", Toast.LENGTH_SHORT).show();
}else PayUsingUpi(name,upiId,amt,msg,tnid,refId);
}
});
}

private void PayUsingUpi(String name,String upiId,String amt,String msg,


String trnId, String refId){
Uri uri = new Uri.Builder()
.scheme("upi").authority("pay")
.appendQueryParameter("pa",upiId)
.appendQueryParameter("pn",name)
.appendQueryParameter("tn",msg)
.appendQueryParameter("am",amt)
.appendQueryParameter("tid",trnId)
.appendQueryParameter("tr",refId)
.appendQueryParameter("cu","INR")
.build();

Intent upiIntent = new Intent(Intent.ACTION_VIEW);


upiIntent.setData(uri);
Intent chooser = Intent.createChooser(upiIntent,"Pay");
if(chooser.resolveActivity(getPackageManager()) != null){
startActivityForResult(chooser,PAY_REQUEST);
}else{
Toast.makeText(this, "No UPI app found",
Toast.LENGTH_SHORT).show();
}
}

@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable
Intent data) {
super.onActivityResult(requestCode, resultCode, data);

if(requestCode == PAY_REQUEST){

if(isInternetAvailabe(PaymentActivity.this)){

if (data == null) {
ArrayList<String> dataList = new ArrayList<>();
dataList.add("nothing");
String temp = "nothing";
Toast.makeText(PaymentActivity.this, "Transaction not
complete", Toast.LENGTH_SHORT).show();
}else {
47
String text = data.getStringExtra("response");
ArrayList<String> dataList = new ArrayList<>();
dataList.add(text);

upiPaymentCheck(text);
}
}

}
}

void upiPaymentCheck(String data){


String str = data;

String payment_cancel = "";


String status = "";
String response[] = str.split("&");

for (int i = 0; i < response.length; i++)


{
String equalStr[] = response[i].split("=");
if(equalStr.length >= 2)
{
if (equalStr[0].toLowerCase().equals("Status".toLowerCase()))
{
status = equalStr[1].toLowerCase();
}
}
else
{
payment_cancel = "Payment cancelled";
}
}
if(status.equals("success")){
Toast.makeText(this, "Transaction Successfull",
Toast.LENGTH_SHORT).show();
}else if("Payment cancelled".equals(payment_cancel)){
Toast.makeText(this, "payment cancelled by user",
Toast.LENGTH_SHORT).show();
}else{
Toast.makeText(this, "Transaction failed",
Toast.LENGTH_SHORT).show();
}
}
public static boolean isInternetAvailabe(Context context){
ConnectivityManager connectivityManager =
(ConnectivityManager)context.getSystemService(context.CONNECTIVITY_SERVICE);
if(connectivityManager != null){
NetworkInfo networkInfo =
connectivityManager.getActiveNetworkInfo();
if(networkInfo.isConnected() &&
networkInfo.isConnectedOrConnecting() && networkInfo.isAvailable()){
return true;
}
}
return false;
}
}
48
PlayActivity.java

package com.example.studymeterialapp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class playActivity extends AppCompatActivity {

String[] question_list = {" What is the difference between == and


equals() method in Java?",
" Question: What is the purpose of the final keyword in Java?",
" Question: What is the Java Virtual Machine (JVM)?"
,"What is the difference between ArrayList and LinkedList in
Java?",
"What is the purpose of the super keyword in Java?",
"What is the difference between an interface and an abstract
class in Java?",
" How does Java handle multiple inheritance?"
};
String[] choose_list = {" A. Both are used for object comparison","B. ==
compares references, equals() compares values"," C. == compares values,
equals() compares references","D. They are interchangeable",
" A. Marks a class as abstract"," B. Marks a method as
static","C. Marks a variable as constant","D. Marks a class as final",
"A. Compiler for Java programs","B. Interpreter for Java
programs","C. Runtime environment for Java programs","D. Java development
tool",
"A. ArrayList is faster for random access, LinkedList is faster
for insertions and deletions","B. ArrayList is faster for insertions and
deletions, LinkedList is faster for random access","C. Both have similar
performance characteristics","D. ArrayList is used for singly linked lists,
LinkedList for doubly linked lists",
"A. Refers to the superclass object","B. Refers to the subclass
object","C. Marks a method as overridden","D. Used to call the constructor
of the superclass",
"A. Interfaces can have constructors, abstract classes
cannot","B. Abstract classes can have method implementations, interfaces
cannot","C. Both can have method implementations","D. Interfaces can have
variables, abstract classes cannot",
"A. Java supports multiple inheritance through classes","B. Java
supports multiple inheritance through interfaces","C. Java does not support
multiple inheritance","D. Multiple inheritance is achieved using the extends
keyword"
};
String[] correct_list = {
"B. == compares references, equals() compares values",
"C. Marks a variable as constant",
"C. Runtime environment for Java programs",
"A. ArrayList is faster for random access, LinkedList is faster
for insertions and deletions",
"D. Used to call the constructor of the superclass",
"B. Abstract classes can have method implementations, interfaces
49
cannot",
"C. Java does not support multiple inheritance"
};
TextView cpt_question , text_question;
Button btn_choose1 , btn_choose2 , btn_choose3 , btn_choose4 , btn_next;
int currentQuestion = 0 ;
int scorePlayer = 0 ;
boolean isclickBtn = false;
String valueChoose = "";
Button btn_click;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_play);
cpt_question = findViewById(R.id.cpt_question);
text_question = findViewById(R.id.text_question);

btn_choose1 = findViewById(R.id.btn_choose1);
btn_choose2 = findViewById(R.id.btn_choose2);
btn_choose3 = findViewById(R.id.btn_choose3);
btn_choose4 = findViewById(R.id.btn_choose4);
btn_next = findViewById(R.id.btn_next);

findViewById(R.id.image_back).setOnClickListener(
a-> finish()
);
remplirData();
btn_next.setOnClickListener(
view -> {
if (isclickBtn){
isclickBtn = false;
if(!valueChoose.equals(correct_list[currentQuestion])){
Toast.makeText(playActivity.this ,
"erreur",Toast.LENGTH_LONG).show();

btn_click.setBackgroundResource(R.drawable.background_btn_erreur);

}else {
Toast.makeText(playActivity.this ,
"correct",Toast.LENGTH_LONG).show();

btn_click.setBackgroundResource(R.drawable.background_btn_correct);

scorePlayer++;
}
new Handler().postDelayed(() -> {
if(currentQuestion!=question_list.length-1){
currentQuestion = currentQuestion + 1;
remplirData();
valueChoose = "";
btn_choose1.setBackgroundResource(R.drawable.background_btn_choose);
btn_choose2.setBackgroundResource(R.drawable.background_btn_choose);
btn_choose3.setBackgroundResource(R.drawable.background_btn_choose);
btn_choose4.setBackgroundResource(R.drawable.background_btn_choose);

}else {
Intent intent = new
Intent(playActivity.this , ResulteActivity.class);
50
intent.putExtra("Resute" , scorePlayer);
startActivity(intent);
finish();
}

},2000);

}else {
Toast.makeText(playActivity.this , "Vous devez en
choisir un",Toast.LENGTH_LONG).show();
}
}
);
}

void remplirData(){
cpt_question.setText((currentQuestion+1) + "/" +
question_list.length);
text_question.setText(question_list[currentQuestion]);

btn_choose1.setText(choose_list[4 * currentQuestion]);
btn_choose2.setText(choose_list[4 * currentQuestion+1]);
btn_choose3.setText(choose_list[4 * currentQuestion+2]);
btn_choose4.setText(choose_list[4 * currentQuestion+3]);
}
public void ClickChoose(View view) {
btn_click = (Button)view;

if (isclickBtn) {

btn_choose1.setBackgroundResource(R.drawable.background_btn_choose);
btn_choose2.setBackgroundResource(R.drawable.background_btn_choose);
btn_choose3.setBackgroundResource(R.drawable.background_btn_choose);
btn_choose4.setBackgroundResource(R.drawable.background_btn_choose);
}
chooseBtn();
}
void chooseBtn(){

btn_click.setBackgroundResource(R.drawable.background_btn_choose_color);
isclickBtn = true;
valueChoose = btn_click.getText().toString();
}
}

PracticeTest.java

package com.example.studymeterialapp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import java.util.ArrayList;
51
import java.util.List;
public class PracticeTest extends AppCompatActivity {
String interviewList[]=
{
"Java Practice Test"
};
int
interviewImages[]={R.drawable.placejava,R.drawable.placec,R.drawable.placehtml,
R.drawable.placejava,R.drawable.placec,R.drawable.placehtml,R.drawable.placejav
a,R.drawable.placec,R.drawable.placehtml,R.drawable.placejava,R.drawable.placec
,R.drawable.placehtml};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_practice_test);
ListView listView2 = findViewById(R.id.listview2);
CustomTestAdapter customTestAdapter=new
CustomTestAdapter(getApplicationContext(),interviewList,interviewImages);
listView2.setAdapter(customTestAdapter);
listView2.setOnItemClickListener(new AdapterView.OnItemClickListener()
{
@Override
public void onItemClick(AdapterView<?> parent, View view, int
position, long id) {
if(position==0){

startActivity(new
Intent(PracticeTest.this,TestMainActivity.class));

}else if(position==1){
startActivity(new
Intent(PracticeTest.this,HtmlInterview.class));
}else{
}
}
});
}
}
PurchaseCourse.java

package com.example.studymeterialapp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
public class PurchaseCourse extends AppCompatActivity {

LinearLayout css,spring,react;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_purchase_course);
css=findViewById(R.id.css);
spring=findViewById(R.id.spring);
react=findViewById(R.id.react);
52
css.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent=new
Intent(PurchaseCourse.this,PaymentActivity.class);
startActivity(intent);
}
});
spring.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent=new
Intent(PurchaseCourse.this,PaymentActivity.class);
startActivity(intent);

}
});
react.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent=new
Intent(PurchaseCourse.this,PaymentActivity.class);
startActivity(intent);

} });
}
}
SplashScreen.java

package com.example.studymeterialapp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import
com.smarteist.autoimageslider.IndicatorView.animation.type.IndicatorAnimationType;
import com.smarteist.autoimageslider.SliderAnimations;
import com.smarteist.autoimageslider.SliderView;
public class SplashScreen extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash_screen);

new Handler().postDelayed(new Runnable() {


@Override
public void run() {
Intent intent=new Intent(SplashScreen.this,MainActivity2.class);
startActivity(intent);
}
},3000);
}

53
OUTPUT

54
Firebase Connection:

SUMMARY AND CONCLUSION


A study material app for Android is a mobile application designed to help users access and organize
educational content. It typically includes features such as:

1. *Content Repository:* A central place for storing and organizing study materials, including documents,
notes, andmultimedia resources.
2. *User Accounts:* Users can create accounts to personalize their experience, track progress, and sync
data across devices.
3. *Search Functionality:* A search feature allows users to quickly find specific topics or keywords within
the study materials.
4. *Offline Access:* The ability to download study materials for offline use, enabling users to study
without an internet connection.
5. *Note-taking and Highlighting:* Tools for users to take notes, highlight important information, and
annotate study materials.
6. *Quiz and Assessment Tools:* Some apps include quizzes or practice tests to help users
evaluate theirunderstanding of the material.
7. *Progress Tracking:* Users can monitor their progress, set goals, and receive feedback on their performance.

8. *Collaboration Features:* Options for users to collaborate with peers, share materials, or engage
in group discussions.
9. *Notifications:* Reminders and notifications to help users stay on track with their study schedules and
55
deadlines.
10. *User-Friendly Interface:* Intuitive design and navigation to enhance the overall user experience.

These features collectively aim to provide a convenient and efficient way for students and learners to access,
organize, and interact with educational content on their Android devices.

In conclusion, study material apps for Android play a crucial role in modern education by
offering a versatile platform for users to access, organize, and enhance their learning experience. With features
like content repositories, user accounts, search functionality, offline access, note-taking, quizzes, progress
tracking, collaboration tools, and user-friendly interfaces, these apps contribute significantly to creating a
more personalized and efficient study environment. As technology continues to evolve, these apps are likely
to play an increasingly integral part in the educational journey, providing learners with accessible and
interactive tools to succeed in their academic pursuits.

REFERENCES
/1/ https://www.irjet.net/archives/V8/i4/IRJET-V8I4457.pdf

/2/Android Developers: https://developer.android.com/develop/ui/views/theming/look-and-feel

/3/ Android Programming with Kotlin for Beginners by John Horton

/4/ Head First Android Development: A Brain-Friendly Guide

/5/ https://www.scribd.com/document/388303699/Android-Based-Study-Materials-and-Notes-Management-
System

/6/ Android Studio 3.0 Development Essentials

56

You might also like