Internship Report
Internship Report
On
Web Development
Submitted in partial fulfilment of the requirements
for the degree of
Bachelor of Technology
by
Sapna Jayram Shelar
PRN No: 2030331246012
Under the guidance of
Prof. S.R.Hivre
1
2
Acknowledgement
The successful joining of this internship would not have been possible
without the support and assistance of many individuals and organizations.I
feel immensely blessed to have gotten this during the course of my internship
program. I would like to take this opportunity to offer my earnest admiration
to each and every one of them.
I express my sentiment of gratitude to Mr. Omkar Malkar sir, who has been a
continuous source of inspiration as my intern trainer. without his constant
guidance and suggestions, this report would have been nowhere near
completion. My gratitude for his trust and generosity goes beyond words. I
am indebted and thankful to my learned and revered Prof. Sadhana Hivre, for
her encouraging support and providing a meticulous platform to learn.
3
Abstract
Website Design and learning HTML were the main objective of this
internship. To develop a webbased application there are several
programming languages that are in use. Some of them are only used for
the frontend and backend design of the software. For example, HTML3,
HTML4,HTML5,CSS,Bootstrap,Javascript etc. There are also some other
programming languages that are used to develop the dynamic functions of
the software or application. For example- PHP, Java etc. Nowadays there
are also some frameworks that use vastly. Frameworks are basically
structured programming by using Model, View and Controller. It is also
called as MVC. If we develop web based application that is very useful
for us
4
Contents
1 Introduction 1
1.1 What is Android? . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 Need of Android? . . . . . . . . . . . . . . . . . . . . . . . 4
5
1.3 Features of Android . . . . . . . . . . . . . . . . . . . . . . 7
2 Steps Installation and Configure Android Studio 10
2.1 Installation Steps of JAVA JDK . . . . . . . . . . . . . . . 10
2.2 Installation Steps of Android Studio for Windows . . . . . 12
2.3 Installation Steps of Android Studio for Mac . . . . . . . . 16
2.4 Installation Steps of Android Studio for Linux . . . . . . . 16
3 Android Architecture 18
4 UI Components and Layouts 22
5 Designing User Interface With View 29
6 Conclusion 46
7 Reference 47
List of Figures
1.1 Android . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Characteristics of Android . . . . . . . . . . . . . . . . . . 6
1.3 Features of Android . . . . . . . . . . . . . . . . . . . . . . 9
2.1 Installation of JAVA JDK .................. 11
2.2 Set the Android Studio and Android SDK installation lo-
cations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.3 Create a New Shortcut for Android Studio . . . . . . . . . 14
2.4 Leave the Start Android Studio check box checked to run
6
this software . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.1 View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.2 View Group . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.3 Frame Layout . . . . . . . . . . . . . . . . . . . . . . . . . 27
4.4 Linear Layout . . . . . . . . . . . . . . . . . . . . . . . . . 28
4.5 Relative Layout . . . . . . . . . . . . . . . . . . . . . . . . 28
5.1 inheritance hierarchy of Designing user interface with view 30
7
Chapter 1
Introduction
1
Figure 1.1: Android
software licenses. Google publishes most of the code under the Apache
License version 2.0 and the rest, Linux kernel changes, under the GNU
2
General Public License version 2. Android is an operating system and
programming platform developed by Google for mobile phones and
other mobile devices, such as tablets. It can run on many different
devices from many different manufacturers. Android includes a software
development kit (SDK) that helps you write original code and assemble
software modules to create apps for Android users. Android also
provides a marketplace to distribute apps. All together, Android
represents an ecosystem for mobile apps.
3
and so on.These button let us a switch on off instantly which will
help us to conserve battery life.
4
10. Endless Personalization: The Android cell phone allows to
configuration mobile to look and behave exactly like they want.
There are numerous features of android. Some of them are listed below:
5
1. Connectivity: Android supports multiple connectivity
technologiesincluding GSM/EDGE, IDEN, CDMA, EV-DO, UMTS,
Bluetooth, Wi-Fi, LTE, NFC, and WiMAX.
6
one task to another and at the same time various applications can
run simultaneously.
9. Wi-Fi: A technology that lets apps discover and pair directly, over
ahigh-bandwidth peer-to-peer connection.
7
Figure 1.3: Features of Android
Chapter 2
It is mandatory to download the Java JDK. There are only seven steps for
the installation process of Java JDK which are as follows:
8
https://www.oracle.com/technetwork/java/javase/downloads/index.html
9
7. Lastly, to set environment variable, follow this, Control Panel-
¿Systemand Security-¿ System-¿ Advanced setting-¿Environment
variable -¿ Add new path.
By following these steps you will successfully add the environment
variable. Now, we will see the installation process of Android studio
for Windows, Mac and Linux.
There are just three steps for installing Android studio for windows
which are as follows:
10
I chose to keep the default settings. After clicking Next, you’ll be
taken to the license agreement dialog box. Accept the license to
continue the installation.
The next dialog box invites you to change the installation locations
for Android Studio and the Android SDK.
Change the location or accept the default locations and click Next.
The installer defaults to creating a shortcut for launching this
program, or you can choose to decline. I recommend that you create
the
Figure 2.2: Set the Android Studio and Android SDK installation locations
11
Figure 2.3: Create a New Shortcut for Android Studio
12
Figure 2.4: Leave the Start Android Studio check box checked to run this software
13
2.3 Installation Steps of Android Studio for Mac
Following are the steps for installing Android studio for Mac:
2. After that, click on the button and dmg file will download.
Just follow these three steps to download Android Studio for Linux:
1. Download Android Studio file.
3. Now to run Android Studio, open terminal and then open bin
directory and execute the studio.sh command on the terminal.
14
.
15
Chapter 3
Android Architecture
16
Figure 3.1: Android Architecture
17
3. android.opengl A Java interface to the OpenGL ES 3D graphics
rendering API.
18
and multithreading, which is intrinsic in the Java language. The Dalvik
VM enables every Android application to run in its own process, with its
own instance of the Dalvik virtual machine. The Android runtime also
provides a set of core libraries which enable Android application
developers to write Android applications using standard Java
programming language.
Application Framework:- The Application Framework layer provides
many higher-level services to applications in the form of Java classes.
Application developers are allowed to make use of these services in their
applications.
The Android framework includes the following key services
19
Applications:- You will find all the Android application at the top
layer. You will write your application to be installed on this layer only.
Examples of such applications are Contacts Books, Browser, Games etc.
Chapter 4
Android Layout is used to define the user interface that holds the UI
controls or widgets that will appear on the screen of an android
application or activity screen. Generally, every application is a
combination of View and ViewGroup. As we know, an android
application contains a large number of activities and we can say each
activity is one page of the application. So, each activity contains multiple
user interface components and those components are the instances of
the View and ViewGroup. All the elements in a layout are built using a
hierarchy of View and ViewGroup objects. View:- A View is defined as
the user interface which is used to create interactive UI components
such as TextView, ImageView, EditText, RadioButton, etc., and is
responsible for event handling and drawing. They are Generally Called
Widgets.
20
A ViewGroup act as a base class for layouts and layouts parameters
that hold other Views or ViewGroups and to define the layout properties.
They are Generally Called layouts.
The Android framework will allow us to use UI elements or widgets in
21
Figure 4.2: View Group
two ways:
1. Use UI elements in the XML file
22
to each other like (A to the right of B) or relative to the parent (fix to
the top of the parent).
23
Android 4.0 (API level 14), the Grid Layout used a rectangular grid of
infinitely thin lines to lay out Views in a series of rows and columns. The
Grid Layout is incredibly flexible and can be used to greatly simplify
layouts and reduce or eliminate the complex nesting often required to
construct UIs using the layouts described before.ombination of layouts.
There is a number of layout classes in the Android SDK. They can be
used, modified or can create your own to make the UI for your Views,
Fragments and Activities. You can display your contents effectively by
using the right combination of layouts.
The most commonly used layout classes that are found in Android
SDK are:
24
3. RelativeLayout- It is flexible than other native layouts as it lets us
todefine the position of each child View relative to the other views
and the dimensions of the screen.
25
Figure 4.4: Linear Layout
26
Chapter 5
view class represent the basic building block for user interface
components. A view occupies a rectangular Area on the screen and is
responsible for drawing and event handling. View is the base class for
widgets, which are used to create interactive UI components like
buttons, text fields, etc. The ViewGroup is a subclass of View and
provides invisible container that hold other Views or other ViewGroups
and define their layout properties. A veiw group is a special view that
can contain other views. The view group is the best class for layouts and
view containers. The view is the component with Android providers to
design the layouts of the app. A view is a superclass for all the UI
components. The View class serves as the base for subclasses called
”widgets,” which offer fully implemented UI objects, like text fields and
buttons. The ViewGroup class serves as the base for subclasses called
”layouts,” which offer different kinds of layout architecture, like linear,
tabular and relative. A View object is a data structure whose properties
store the layout parameters and content for a specific rectangular area
of the screen. A View object handles its own
27
Figure 5.1: inheritance hierarchy of Designing user interface with view
measurement, layout, drawing, focus change, scrolling, and key/gesture
interactions for the rectangular area of the screen in which it resides. As
an object in the user interface, a View is also a point of interaction for the
user and the receiver of the interaction events. In this chapter deals with
how to design a page by using graphical user interface(GUI), as it is very
important to design a good looking page for apps in Android here we
will discuss GUI like TextView(Lable),Button, EditText(TextField),
CheckBox,etc.
28
control will act as like label control and it won’t allow users to edit
the text.
Attributes/Properties of TextView:
• text: text attribute is used to set the text in a text view. We can set
the text in xml as well as in the java class. Below is the example code
with explanation included in which we set the text AbhiAndroid in a
text view.
29
• background: background attribute is used to set the background of
a text view. We can set a color or a drawable in the background of a
text view.
30
Figure 5.2: TextView
31
displays an empty textfield in which a user can enter the required
text and this text is further used inside our application.
Attributes/Properties of EditText:
• gravity: Used to specify how to align the text like left, right, center,
top, etc.
• textStyle: Used to set style of the text. For example, bold, italic,
bolditalic, etc. Text styles define three sizes for the formatted text
’full’, ’short’ and ’narrow’
32
• height: It makes the TextView be exactly this many pixels tall.
• clickable: Used to set true when you want to make this View
clickable.
Otherwise, set false.
33
• padding: The padding attribute is used to set the padding from left,
right,top or bottom. In above example code of background we also
set the 10dp padding from all the slides of bottom.
34
• Button: A button consists of text or an icon (or both text and an
icon) that communicates what action occurs when the user touches
it. Android Button represents a push-button. The
android.widget.Button is subclass of TextView class and
CompoundButton is the subclass of Button class. There are different
types of buttons in android such as RadioButton, ToggleButton,
CompoundButton etc.
Attributes/Properties of Button:
• textStyle: Used to the display style of the text like Bold, Italic, etc.
• padding: Used to set the padding of the view. the padding attribute
is used to set the padding from left, right, top or bottom. In above
example code of background we also set the 10dp padding from all
the slides of bottom.
35
• gravity: Used to specify the gravity of the view like center, top,
bottom, etc
36
Attributes/Properties of ImageButton:
• src: src is an attribute used to set a source file of image or you can
say image in your image button to make your layout look attractive.
– paddingRight : set the padding from the right side of the image
button.
– paddingLeft : set the padding from the left side of the image
button.
– paddingTop : set the padding from the top side of the image
button.
– padding : set the padding from the all side’s of the image button.
37
• Step 2: Right click on drawable- New- Drawable resource file and
create new xml file name customimage-buttton.xml.
38
• ToggleButton: A toggle button allows the user to change a setting
between two states. You can add a basic toggle button to your
layout with the ToggleButton object. Android 4.0 (API level 14)
introduces another kind of toggle button called a switch that
provides a slider control, which you can add with a Switch object.
Attributes/Properties of ToggleButton:
• textOff: This is the text for the button when it is not checked.
39
• background: This is a drawable to use as the background.
• RadioButton: Radio buttons allow the user to select one option from
a set. You should use radio buttons for optional sets that are
mutually exclusive if you think that the user needs to see all
available options side-by-side. If it’s not necessary to show all
options side-byside, use a spinner instead.To create each radio
button option, create a RadioButton in your layout. However,
because radio buttons are mutually exclusive, you must group them
together inside a RadioGroup. By grouping them together, the
system ensures that only one radio button can be selected at a time.
Beginning with Android RadioButton, A RadioButton is a button
that has two states, that are either check or uncheck. This means if
40
we click on a RadioButton it gets into Checked state and by default,
it comes in Unchecked State.
In the Android Radio button, one thing to be noted is, once it gets
into the checked state we cannot undo it. Generally, we use them in
our application to let the users select one option from a set of
options. Radio Button is one of the important Android UI controls,
as it provides an interactive User Interface for the users.
Attributes/Properties of RadioButton:
• textStyle: It sets the style of the text, like – bold, italics. Text styles
define three sizes for the formatted text - ’full’, ’short’ and ’narrow’
41
• padding: It sets the padding from left, right bottom or the top. In
above example code of background we also set the 10dp padding
from all the slides of bottom.
42
Figure 5.7: RadioButton
Attributes/Properties of RadioButton:
• padding: It sets the padding from left, right bottom or the top.
43
• onClick: It invokes the method onClick() when the button is clicked.
Chapter 6
44
Conclusion
Chapter 7
Reference
1. Thomas C. G. A. Jayanthila
Devihttps://www.emerald.com/insight/content/doi/10.1108/AAO
UJ-02-20180013/full/html
45
2. Instituto Politecnico de Leiria, Leiria, Leiria,
PThttps://ieeexplore.ieee.org/document/7975825/authorsauthors
46