Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

PROJECT REPORT ON

ANDROID APP DEVELOPMENT

By -

VAASU MAROTHIA
Email ID:
vaasumarothia45@gmail.com
• ACKNOWLEDGEMENT:

I would like to express my sincere appreciation to Azure Skynet


Solutions Private Limited for their support in facilitating the Android
App Development online training program. Their commitment to
providing resources and creating a conducive learning environment has
greatly contributed to my professional development in this field.
Additionally, I am grateful for the guidance and expertise of my
supervisor, Mr. Rakesh sir, in overseeing this training. The trainers and
instructors have also played a significant role in enhancing my
understanding and skills in Android App Development.
I am proud to announce that I have successfully completed this training
during this summer, which has been a crucial step in furthering my
career and obtaining an industry-recognized certificate. The knowledge
and practical experience gained throughout this program have
equipped me with the necessary skills to excel in the field of Android
App Development.
Finally, I would like to acknowledge the technical support team and
administrative staff at Azure Skynet Solutions Private Limited for their
assistance and coordination throughout the program. Thank you for
making this online training experience a valuable and rewarding
opportunity.

Sincerely, Vaasu Marothia


CONTENT / INDEX

S.NO. PROJECT NAME PAGE NO.


1 Stopwatch App 4-6
2 Shake Me App 6-9
3 Location App 10 - 12
STOPWATCH APP

• AIM- The main objective of this project is to build a simple application


which can work as a stopwatch tool, i.e., can start the clock of
hours:minutes:seconds format, can pause it and reset it.

• Steps performed during development of this project:

1. First open Android Studio and start a new project with Empty views activity.
You’ll find one main JAVA file and one XML file containing layout of the
activity.

2. Now in the layout XML file we first have to design one TextView containing
text as 00:00:00 in the center of the activity layout. Also design three Buttons
naming START, PAUSE, RESET with onClick attributes as onStart, onPause,
onReset which are methods in the main javafile.
3. Now in MainActivity.java file first declare second as 0 and one boolean variable
(running) for starting point of the stopwatch and state of the stopwatch
respectively. Define start=true in onStart & onPause , start=false in onReset
methods. OnReset method must have second=0; as on resetting the clock it again
sets to 00:00:00.

4. Now the main part of this app, form a method named runTimer() and first give
refrence to the TextView ID and use Handler library to define the formula of
running the stopwatch inside its method and also to avoid the use of runTimer
method again and again. Also declare format of the string of textview .
Handler.postdelayed is used to remove the delay during running. Also call
runTimer method in onCreate() function.
5. The project building is finished, so we have to just open the AVD manager and
launch our app on the device. That’s it, our Stopwatch application.

SHAKE ME APP

• AIM- The objective of this project is to build an application that changes


its display color when shaken. The application seeks the use of Sensors and
sensors library methods, and the Accelerometer type sensor is used in this
project.

• Steps performed during development of this project:

1. First, we will start a new project with Empty view activity. And we’ll set match
parent constraints for the TextView in the activity XML file to give color to the
full screen, also have to give ID to the text view.
2. Now implement SensorEventListener interface and its methods in the main
activity file as:
onSensorChanged(); and onAccuracyChanged();
And declare some variables for SensorManager and reference declaration for text
Id as:
SensorManager manager;
View view; //declaring id reference
Boolean isColor = false;
long lastUpdate;
3. In onCreate method of main activity, give reference to the view Id and set
background color of the view. lastUpdate and manager variables will also be
defined here only.

4. In this step add a new function named getAccelerometer() following onCreate()


one and add the whole base code for accelerometric function of the sensor . THis is
by far the most important step of the whole Sensor project.
5. After this, call that getAccelerometer() method inside onSensorChanged method
from Event listener interface and set sensor type as ACCELEROMETER.

6. At last, we have to implement two methods named onResume and onPause and
override them and thus how our ShakeMe App’s development is finished, we can
launch it using AVD manager device. The source code used within sensor resume
and pause is:
@Override
protected void onResume(){
super.onResume();

manager.registerListener(this,manager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),SensorM
anager.SENSOR_DELAY_NORMAL);
}

@Override
protected void onPause(){
super.onPause();
manager.unregisterListener(this);
}
LOCATION APP

• AIM- The objective of this project is to build an application that give as


precise last found location or current location of our device using Google
Maps services.

• Steps performed during development of this project:

1. First we have to start a new project in Android Studio using Google Maps Views
Activity. While using Google Maps activity, we have to generate an API key to
access Google Maps sources by going to the site address given in the manifest or
layout xml file. Paste this copied API key wherever asking in project.

2. Now, implement methods from GoogleApiClient.ConnectionCallbacks


GoogleApiClient.OnConnectionFailedListener in the main activity and also
declare the GoogleApiClient variable.
At first, these methods will display errors and problems but we need to supress
them using alt+enter context actions.
3. Then we have to add dependencies in build.gradle Gradle scripts file, one will be
dexter dependency and another will be location service dependency. The
implementation of both dependencies are as follows:
- implementation ‘com.karumi:dexter:5.0.0’
- implementation ‘com.google.android.gms:play-services-location:21.0.1’

4. Now, in onMapReady method of main java file, remove default Sydney location
and add Dexter Activity with: onPermissionGranted as:
buildGoogleApiClient();
mMap.setMyLocationEnabled(true);
Import all those classes that are showing errors using context actions.
5. And at last just add GoogleApiClient method following Dexter Activity one and
our Location application is finished . Now we can launch it easily using our AVD
manager devices.
BIBLIOGRAPHY
AND REFERENCE TAKEN

This bibliography provides a list of recommended resources I personally used for


this Android app development project. It includes books written by experts in the
field and a guide from the official Android Developers website. These resources
cover various aspects of Android app development, including programming,
Kotlin, Android Studio, and app development for beginners.
I personally used these books and resources with the material provided by Azure
Skynet Solutions pvt ltd. Meanwhile lectures provided helped a lot in
understanding android app development basics.

• LaMarche, J., & Murphy, P. (2017). Android Programming: Pushing


the Limits. Wiley.
• Android Developers. (n.d.). Android App Development Guide.
Retrieved from developer.android.com/guide .

You might also like