0% found this document useful (0 votes)
2 views9 pages

Android Lab Practical File Bca

The document is a practical file for an Android Programming Lab course, detailing various experiments related to Android development. It includes aims, procedures, and results for each experiment, covering topics such as Android Studio, UI components, activity lifecycle, intents, Firebase integration, and a final project on an Employee Tracker System. The conclusion emphasizes the importance of these practical experiences in understanding Android application development.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views9 pages

Android Lab Practical File Bca

The document is a practical file for an Android Programming Lab course, detailing various experiments related to Android development. It includes aims, procedures, and results for each experiment, covering topics such as Android Studio, UI components, activity lifecycle, intents, Firebase integration, and a final project on an Employee Tracker System. The conclusion emphasizes the importance of these practical experiences in understanding Android application development.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Android Lab Practical File

Bachelor of Computer Applications (BCA)


Submitted By

•Name:
•Roll Number:
•Semester:
•College Name:

Subject

Android Programming Lab

Index
Experiment No. Experiment Name

1 Introduction to Android Studio

2 Simple TextView and Button Application

3 EditText and Toast Message Program

4 Android Activity Lifecycle

5 Intent and Activity Navigation

6 ListView Example

7 RecyclerView Example

8 Firebase Realtime Database


Connection
9 Login Screen Design

10 Splash Screen Design

11 Employee Tracker Project

Experiment 1 Aim
To study Android Studio environment and create a simple Android application.

1
Theory
Android Studio is the official IDE for Android application development. It provides tools for coding,
designing UI, debugging, and testing Android applications.

Procedure
1. Open Android Studio.
2. Click New Project.
3. Select Empty Views Activity.
4. Enter project name.
5. Choose Java language.
6. Click Finish.

Result
Android project was created successfully.

Experiment 2 Aim
To create a simple TextView and Button application.

XML Code

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


<LinearLayout
xmlns:android="[Link]
id" android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello Android"
android:textSize="24sp"/>

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Click Here"/>

2
</LinearLayout>

Result
Application displayed TextView and Button successfully.

Experiment 3 Aim
To use EditText and Toast message in Android.

Java Code

package [Link];

import
[Link];
import
[Link];
import
[Link];
import
[Link];
import
[Link];

import

[Link];

public class MainActivity extends

AppCompatActivity {

EditText editText;
Button button;

@Override
protected void onCreate(Bundle savedInstanceState) {
[Link](savedInstanceState);
setContentView([Link].activity_main);

editText =
findViewById([Link]); button
= findViewById([Link]);

3
});
}
}

Result
Toast message displayed successfully.

Experiment 4 Aim
To study Android Activity Lifecycle.

Theory
The Android Activity Lifecycle describes different states of an activity.

Main lifecycle methods:

•onCreate()
•onStart()
•onResume()
•onPause()
•onStop()
•onDestroy()

Result
Activity lifecycle methods were studied successfully.

Experiment 5 Aim
To perform navigation between activities using Intent.

4
Java Code
Intent intent = new
Intent([Link],
[Link]);
startActivity(intent);

Result
Navigation between activities performed successfully.

Experiment 6 Aim
To display items using ListView.

Java Code
String[] data = {"Android", "Java", "Firebase"};

ArrayAdapter<String>
adapter = new
ArrayAdapter<>(this,
[Link].simple_list_i
tem_1, data);

[Link](adapter);

Result
ListView displayed items successfully.

Experiment 7 Aim
To study RecyclerView in Android.

5
Theory
RecyclerView is an advanced and flexible version of ListView used to display large data efficiently.

Advantages
•Better performance
•Reusable views
•Supports card layouts
•Smooth scrolling

Result
RecyclerView concept studied successfully.

Experiment 8 Aim
To connect Firebase Realtime Database with Android application.

Procedure
1. Open Tools → Firebase.
2. Connect app with Firebase.
3. Add Realtime Database dependency.
4. Create Firebase project.
5. Enable Realtime Database.

Result
Firebase connected successfully.

Experiment 9 Aim
To create Login Screen in Android.

6
XML Code
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Email"/>

<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Password"/>

Result
Login screen created successfully.

Experiment 10
Aim
To create Splash Screen in Android.

Java Code
new Handler().postDelayed(new Runnable()
{ @Override
public void run() {
Intent intent = new Intent([Link],
[Link]);

startActivity(inten
t); finish();
}
},3000);

Result
Splash screen displayed successfully.

7
Experiment 11
Aim
To develop Android Employee Tracker System using Firebase.

Objective
The project is developed to manage employee records digitally using Android application and
Firebase Realtime Database.

Modules
•Splash Screen
•Login Screen
•Employee Dashboard
•Firebase Database

Features
•Add Employee
•View Employee
•Firebase Storage
•Modern UI

Technologies Used
•Android Studio
•Java
•XML
•Firebase Realtime Database

Result
Android Employee Tracker System developed successfully.

Conclusion
Android programming provides an efficient platform for developing mobile applications. Through
these practical experiments, important Android concepts such as activities, intents, Firebase
database, RecyclerView, XML layouts, and Android Studio were studied successfully.

8
The Android Employee Tracker project helped in understanding realtime database
integration and Android application development.

Viva Questions
1. What is Android Studio?
Android Studio is the official IDE for Android application development.

2. What is Firebase?
Firebase is a cloud-based platform developed by Google.

3. What is XML?
XML is used for designing Android user interfaces.

4. What is an Activity?
An Activity represents a single screen in Android.

5. What is Intent?
Intent is used for communication between Android activities.

6. What is RecyclerView?
RecyclerView is an advanced version of ListView.

7. What is [Link]?
It is the configuration file of Android applications.

Teacher Signature Student

Signature

You might also like