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

Android Lab File S

This document outlines a practical lab file for Android Development and Applications as part of a Bachelor of Science program at Sharda University. It includes a list of experiments covering basic app creation, user interface design, database management, and advanced functionalities like chat applications and location tracking. Each experiment provides a step-by-step guide for implementation using Android Studio.

Uploaded by

2025364814.aman
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)
14 views9 pages

Android Lab File S

This document outlines a practical lab file for Android Development and Applications as part of a Bachelor of Science program at Sharda University. It includes a list of experiments covering basic app creation, user interface design, database management, and advanced functionalities like chat applications and location tracking. Each experiment provides a step-by-step guide for implementation using Android Studio.

Uploaded by

2025364814.aman
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

PRACTICAL LAB FILE

On
ANDROID DEVELOPMENT AND APPLICATIONS

Bachelor of Science
Semester -VI

2024-25

DEPARTMENT OF COMPUTER SCIENCE & APPLICATIONS


SHARDA SCHOOL OF ENGINEERING & TECHNOLOGY
SHARDA UNIVERSITY, GREATER NOIDA
March, 2025

Submitted By: Under The Supervision of

Name :- Aman Chaudhary (2101128003) Ms. RAHEEL HASSAN


System ID :- 2021450071 Assistant Professor, CSA
Course :- BSc. IT
LIST OF EXPERIMENTS

S. NO EXPERIMENT NAME DATE SIGNATURE

1. Create a "Hello World" app. Explore folders


such as manifests, java, res, and gradle.

2. Create a basic login form using TextView,


EditText, and Button with XML.

3. Develop a calculator app that handles button


clicks and displays results using TextView.

4. Create an app with two activities and navigate


between them using explicit Intents.

5. Develop an audio player app to play music in


the background using Android Services.

6. Write a program to create a database and a


table using SQLite.

7. Create an SQLite database and a table to store


user data (e.g., name, email).

8. Build a student management app with


functionalities to add, view, update, and delete
student records from an SQLite database.

9. Access and display accelerometer data on the


screen.

10. Develop a step-counter app using the


accelerometer sensor.

11. Create a simple animation where an object


moves across the screen using
ObjectAnimator.
12. Build a ball movement app where the ball
moves based on device tilting (using
accelerometer data) with added animation
effects.
VALUE ADDED EXPERIMENTS

[Link] EXPERIMENT LIST DATE SIGNATURE

1. Develop a chat application using Firebase


Realtime Database. Allow users to send and
receive messages in real-time.

2. Create a location tracker app to display the user's


current location on a Google Map. Add a feature
to display nearby places (e.g., restaurants or
ATMs) using Google Places API.

3. Create an app that receives promotional


notifications from a server using FCM.
Customize the notification content and actions.

4. Create a file downloader app using AsyncTask or


WorkManager. Show progress through a progress
bar and notify the user upon completion.

5. Create a weather app that fetches current weather


data from an open API like OpenWeatherMap.
Display temperature, humidity, and other details
in a user-friendly interface.

Signature of In-Charge Faculty


PROGRAM 1:

Create a "Hello World" app. Explore folders such as


manifests, java, res, and gradle.
Step 1: Create a New Project

1. Open Android Studio and start a new project with "Empty Activity."
2. Configure the project:
o Name: HelloWorldApp
o Language: Java
o Minimum API Level: 28 (Android 9.0 - Pie)
3. Click Finish.

Step 2: Explore Project Structure

 manifests/: Contains [Link], which defines app components like


activities.
 java/: Contains Java code. In [Link], set up your app logic (e.g.,
display "Hello World!").
 res/: Contains resources like layouts and strings.
o layout/activity_main.xml: Defines UI elements. You can add a
TextView with "Hello World!".
o values/[Link]: Contains string resources (e.g., app name).
 gradle/: Contains build configuration files.

Step 3: Modify Code

1. [Link]:
o Set content view to [Link].activity_main.
2. activity_main.xml (if not already):
o Add a TextView with android:text="Hello World!".

Step 4: Run the App

1. Click Run (green play button).


2. Choose an emulator or a physical device.
3. The app should display "Hello World!" on the screen.

OUTPUT:
PROGRAM 2:
Create a basic login form using TextView, EditText, and
Button with XML.
1. Create a New Project:

 Open Android Studio and create a new project with an Empty Activity.
 Set the language to Kotlin and the API level to API 28.

2. Design the Layout (XML):

 Open activity_main.xml.
 Use a LinearLayout with vertical orientation.
 Add a TextView for the title (e.g., "Login").
 Add two EditText fields for Username and Password.
 Add a Button for the Login action.

3. Write the Logic in [Link]:

 Access the EditText and Button using findViewById.


 Set a click listener on the Button to validate the fields.
 Use a Toast to show a success or error message based on the input.

4. Run the Application:

 Build and run the app on your emulator or device.


 Test the login form by entering a username and password and clicking the login
button.

OUTPUT:
PROGRAM 3:
Develop a calculator app that handles button clicks and
displays results using TextView.
Steps to Create a Calculator App in Android Studio (API 28, Java)

1. Create a New Project


o Open Android Studio → New Project → Empty Activity
o Set Minimum API Level to 28 (Android 9.0 Pie)

2. Design the UI (XML Layout - activity_main.xml)


o Add a TextView to display the result
o Use a GridLayout for numeric and operator buttons

3. Write Java Code in [Link]


o Declare TextView and Button variables
o Set up OnClickListener for buttons
o Implement basic arithmetic operations (addition, subtraction, multiplication, division)
o Update the TextView with user inputs and results

4. Handle Button Clicks


o Append numbers when pressed
o Perform calculations when an operator is clicked
o Clear the display when the "C" button is pressed

5. Run and Test the App


o Connect a device or use an emulator
o Build and run the app to ensure correct functionality
Output:

You might also like