mad-micro-project-06
mad-micro-project-06
Micro project
On
Submitted By
Vitthal Deshmukh (06)
Guided By
Mrs. T. R. Vallakathi
Sinhgad Institutes
PUNE – 411041
INDEX
SR NO CONTENTS PAGE NO
2 Rationale 3
4 Literature Review 3
8 Skills Developed 11
9 Conclusion 12
10 References 12
Annexure - I
Micro-Project Proposal
Quotes Generator
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.
Name of
Sr. Planned Planned
Details of Activity responsible
No. Start Date Finish Date
Team members
Identify the requirements of the
1
project.
1 06 Vitthal S. Deshmukh
Annexure - II
Micro-Project Report
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.
• Activity_main.xml
<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"/>
<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>
</LinearLayout>
• Design of Application
• MainActivity.java
package com.example.quotesgenerator;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
private String[] quotes = {"Great things in business are never done by one
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
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
public void onClick(View view) {
if (currentQuoteIndex > 0) {
currentQuoteIndex--;
displayQuote();
}
}
});
nextButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (currentQuoteIndex < quotes.length - 1) {
currentQuoteIndex++;
displayQuote();
}
}
});
• Outputs-
8.0 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.
9.0 Reference:
https://www.geeksforgeeks.org/
https://developer.android.com/studio