MYFINALANDROID
MYFINALANDROID
Project Report
On
“ Quotes Generator ”
Submitted In Partial Fulfilment of the Requirement for the award of Diploma
in Computer Engineering of Government Polytechnic, Dharashiv
Affiliated to
Submitted By
Masiha Silviya Santosh
Guided by
Mr. Mangesh Dhaj
1
Certificate
This to certify that Ms. Silviya Santosh Masiha Roll No. 32 of 6th Semester of
diploma in Computer engineering has completed the term work satisfactorily in
Mobile Application Development (MAD) For academic year 2024-2025 as
prescribed in the curriculum.
2
ACKNOWLEDGMENT
3
INDEX
Sr.
no.
Content Page no.
3 Program 10- 13
4 Output 14-16
5 Conclusion 17
6 References 18
4
Annexure - I
The aim of the project is a simple application which will have the Next and Previous buttons to
change the quotes.
This micro project aims to developing a quotes generator app using mobile application
development.
5
Annexure – II
1.0 Rationale:
Quote generators are a popular feature in mobile applications, particularly those focused on
motivation, inspiration, or self-improvement. Quote generators are relatively simple to
implement in mobile applications. Developers can create a database of quotes and display them
randomly using code. This means that even novice developers can create a quote generator
feature for their applications. Quote generators can help increase user engagement with an
application. Users can interact with the application by refreshing the quote or sharing it on
social media, which can lead to increased usage and user retention.
The aim of the project is a simple application which will have the Next and Previous buttons to
change the quotes.
A quote generator application is a type of mobile application that randomly displays quotes on a
user's screen. The quotes can be sourced from a database of pre-selected quotes or generated
dynamically based on a specific category or theme. Quote generator applications are typically
designed to provide users with a source of motivation, inspiration, or reflection. They can be used
in a variety of contexts, including self-improvement, mindfulness, meditation, or daily motivation.
Users can interact with the application by refreshing the quote, sharing it on social media, or saving
it for future reference. Quote generator applications are popular due to their simplicity, ease of
development, and potential to increase user engagement and retention.
6
5.0 Actual Methodology Followed:
This micro project aims to developing a quotes generator app using mobile application
development.
7
LANGUAGE DESCRIPTION
Android:
Java is a key programming language for Android app development, providing a robust ecosystem
and mature tooling. It allows developers to create activities, manage user interactions, and handle
data effectively within Android applications. ### Android App Development with Java
Manifest File:
The AndroidManifest.xml file is essential for declaring app components and permissions.
It specifies the app's name, icon, and the minimum API level required
Android uses XML for layout design, allowing developers to create responsive and
adaptive interfaces.
UI elements include buttons, text fields, and lists, which can be customized for different
screen sizes and orientations.
8
Data Management:
9
PROGRAM
MainActivity.java file:
package com.example.quotesgenerator;
import androidx.appcompat.app.AppCompatActivity;
import android.widget.Button;
import android.widget.TextView;
private String[] quotes = {"Great things in business are never done by one person, They are done
by a team---Steve Jobs",
"To succeed in your mission, you must have single-minded devotion to your goal---A P J Abdul
Kalam",
"Many people will walk in and out of your life, but only true friends will leave footprints in your
heart-Many people will walk in and out of your life, but only true friends will leave footprints in
your heart---Eleanor Roosevelt",
"Don't worry about being successful but work toward being significant and the success will
naturally follow---Oprah Winfrey",
"Do not go where the path may lead, go instead where there is no path and leave a trail---Ralph
Waldo Emerson"};
10
private int currentQuoteIndex = 0;
@Override
setContentView(R.layout.activity_main);
quoteTextView = findViewById(R.id.quoteTextView);
previousButton = findViewById(R.id.previousButton);
nextButton = findViewById(R.id.nextButton);
displayQuote();
previousButton.setOnClickListener(new View.OnClickListener()
@Override
if (currentQuoteIndex > 0)
nextButton.setOnClickListener(new View.OnClickListener() {
@Override
{ currentQuoteIndex++; displayQuote();
11
} } });
{ quoteTextView.setText(quotes[currentQuoteIndex]); } }
Activity_main.xml:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp">
<TextView
android:id="@+id/quoteTextView"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:textSize="24sp"
android:textColor="@color/black"
android:textFontWeight="@integer/material_motion_duration_long_2"
android:gravity="center"/>
12
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal">
<Button
android:id="@+id/previousButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="65dp"
android:layout_marginBottom="55dp"
android:text="Previous" />
<Space
android:layout_width="16dp"
android:layout_height="wrap_content" />
<Button
android:id="@+id/nextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Next" />
</LinearLayout>
13
OUTPUT OF THE PROGRAM
14
15
16
CONCLUSION
Quote generator applications are a popular feature in mobile application development due to their
simplicity, ease of implementation, and potential to increase user engagement and retention. These
applications provide users with a source of motivation, inspiration, or reflection, and can be
integrated into a wide range of mobile applications, from health and wellness apps to productivity
and motivation tools.
17
REFERENCES
18