You are on page 1of 48

Chapter

Unit II 04
Installation and Configuration
Networking
of Android and Security
Hours: 06 Marks: 06

Presented by:

Prof.S.S.Bhosale
Pravara Polytechnic Loni
Socket
Specific Objective

Configure Android environment and


❑ Network socket is an endpoint of an inter-
development tools.
process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
Operating System

• The operating system is the most important


❑ Network
program socket is an
that runs onendpoint of an inter-
a computer.
• process communication flow across a
Operating system is an interface between
computer network.
computer and user.
• Sockets
❑ It is responsible
provide thefor the management and
communication
mechanism between
coordination two computers
of activities and the using
sharing of
TCP/IP.
the resources of the computer.
Socket
Operating System

• An Operating system (OS) is system software


❑ Network socketcomputer
that manages is an endpoint of an inter-
hardware ,software
process communication
recourses and provideflow acrossservices
common a for
computer network.
common program.
• Sockets
❑ An OS isprovide thethat
software communication
manages the computer
mechanism
hardware. between two computers using
TCP/IP.
• An OS can System software which provide
environment for execution of program.
Socket
Operating System

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
Types of Operating System

1. Batch Operating System


❑ Network socket is an endpoint of an inter-

2.process communication flow across a


Time Sharing Operating System.
computer network.
3. Distributed Operating System.
❑ Sockets provide the communication
4.mechanism between two
Network Operating computers using
System
TCP/IP.
5. Real- Time Operating System
Socket
1. Batch Operating System :
- This type of OS does not interact with the computer
❑ Network
directly. socket is an endpoint of an inter-
-process
There is ancommunication
operator whichflow
takesacross
similar ajobs
computer
having samenetwork.
requirement and group them into
batches.
❑ Sockets provide the
- It is responsibility communication
of operator to sort the jobs
mechanism between two computers using
with similar needs.
TCP/IP.
eg. Payroll System, Bank Statements.
Socket
2.Time Sharing Operating System:
- Each task is given some time to execute, so that all task
work smoothly.
❑ Network socket is an endpoint of an inter-
process
- Each communication
user gets time of CPU asflow
they across
use singlea System.
computer
- These systemnetwork.
also known as Multitasking system.
- The time that each task gets to execute is called
❑ Sockets provide the communication
mechanism
quantum. between two computers using
TCP/IP.
- After this time interval is over OS switches over to next
task.
Socket
3. Distributed Operating System:
- A distributed operating system is system software
over a collection of independent, networked,
❑ Network socket is an endpoint of an inter-
process communication
communicating, flowseparate
and physically across a
computer network.
computational nodes.

❑-Sockets provide
They handle the communication
jobs which are serviced by multiple
mechanism between node
CPUs. Each individual two holds
computers using
a specific
TCP/IP.
software subset of the global aggregate operating
system.
- Remote access is enable by using distributed OS.
Socket
4. Network Operating System:

- These systems runs on a server and provide the


❑ Network socket
capability to isdata,
manage an endpoint of an
users, group, inter-
security,
process communication flow across a
computer
application,network.
and other networking functions.
- These type of OS allows share access of files,
❑ Sockets provide the communication
printers, security, application, and other networking
mechanism between two computers using
TCP/IP.
functions over a small private network.
- eg. Windows server 2003, 2008, Unix, Linux, Mac
OS, Novell Netware etc.
Socket
5. Real-Time Operating System:

- The time interval required to process and respond to


❑ Network socket
input is very is real
small in an endpoint
time OS. of an inter-
process communication flow across a
- computer network.
Time interval called as response time.
- Real time OS used when there are time requirements
❑ Sockets provide the communication
are very strict like missile systems, air traffic
mechanism between two computers using
TCP/IP.
control, robots etc.
1. Hard real- time System
2. Soft real- time System.
Socket
2.1.2 Java JDK

1. JVM:
❑ Network socket
Java Virtual is an endpoint of an inter-
Machine
process communication flow across a
2.computer
JRE network.
Java Runtime Environment
❑ Sockets provide the communication
3. JDK
mechanism between two computers using
TCP/IP.
Java development Kit
Socket
2.1.2.1 Working of JVM

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.1.2.1 Working of JVM

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.1.3 Android SDK

- Android SDK is software development kit that


❑ Network socket is to
enables developers ancreate
endpoint of an inter-
applications for the
process communication flow across a
computer network.
android platform.
- It includes the complete set of development and
❑ Sockets provide the communication
debugging tools
mechanism for android
between .
two computers using
- TCP/IP.
It is included with Android studio.
Socket
2.1.3 Android SDK

- It includes Sample project with source code,


❑ Network socket
development tools,isananemulator,
endpoint andof an inter-
required
process communication flow across a
computer network.
library to build android application.
- Application written using java programming
❑ Sockets provide the communication
language and runs on Dalvik virtual machine.
mechanism between two computers using
- TCP/IP.
DVM is designed for embedded use which runs on
top of Linux kernal.
Socket
2.1.3 Android SDK

Android SDK include following:


❑ Network socket is an endpoint of an inter-
process communication flow across a
1.computer network.
Required library
2. Debugger
❑ Sockets provide the communication
3. An emulator
mechanism between two computers using
4.TCP/IP.
Sample source code
5. Tutorial for Android OS.
6. Relevant document for Android API.
Socket
2.2 Android Development Tools

1. Android Studio
❑ Network socket is an endpoint of an inter-
2.process communication
Visual Studio flow across a
with Xamarin
computer network.
3. Eclipse
❑ Sockets provide the communication
mechanism between two computers using
TCP/IP.
Socket
2.3 Android Virtual Devices
- Android Virtual device (AVD) is configuration

❑ Network
that definessocket is an endpoint
the characteristics of an inter-
of an android phone,
process communication
tablet, android flowtoacross
TV that you want a in
simulate
computer network.
android emulator.

❑ Sockets provide the communication


mechanism between
- The AVD manager is antwo computers
interface using
launch from
TCP/IP.
android studio that helps you create and manage
AVD’s.
Socket
2.3 Android Virtual Devices

- The AVD is a device configuration that is run with the


❑ Network socket is an endpoint of an inter-
android emulator.
process communication flow across a
-computer network.
It works with emulator to provide virtual device
specific environment to install and run android apps.
❑ Sockets provide the communication
Tomechanism between
open the AVD Manager,two computers
do one using
of the following:
TCP/IP.
Select Tools > AVD Manager.

Click AVD Manager in the toolbar


Socket
2.3 Android Virtual Devices

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.3 Android Virtual Devices

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.3 Android Virtual Devices

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.3 Android Virtual Devices

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.3 Android Virtual Devices

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.3 Android Virtual Devices

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.4 Android Emulator

• The Android SDK includes a mobile device


Network
❑emulator - a socket is an endpoint
virtual mobile device thatofruns
an inter-
on your
process communication flow across a
computer.
computer network.
• The emulator lets you prototype, develop, and test
Android applications without using a physical
❑ Sockets provide the communication
device.
mechanism between two computers using
TCP/IP.
• The Android emulator mimics all of the hardware and
software features of a typical mobile device, except
that it can not receive or place actual phone calls.
Socket
2.4 Android Emulator

• ❑ItNetwork
provides asocket is navigation
variety of an endpointandof an inter-
control keys,
process
which communication
you can "press" usingflow
your across
mouse ora keyboard
tocomputer network.
generate events for your application.

• It also provides a screen in which your application is


❑ Sockets provide the communication
displayed, together with any other Android
mechanism between two computers using
applications running.
TCP/IP.
Socket
2.4 Android Emulator

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.5 Dalvik Virtual Machine (DVM)

• The Dalvik Virtual Machine (DVM) is an android


❑ Network socket is an endpoint of an inter-
process
virtual communication
machine optimized forflow across
mobile a
devices.
computer network.
• Dalvik is a town in Iceland.
❑ Sockets provide the communication
mechanism
• The Dalvik VMbetween twobycomputers
was written using
Den Bornstein.
TCP/IP.
• The DEX compiler converts the .class file into .dex

file that runs on Dalvik VM.


Socket
2.5 Dalvik Virtual Machine (DVM)

• Multiple class files are converted into one dex file.


❑ Network socket is an endpoint of an inter-
process
• The DVM is communication
a virtual machineflow
to across a
computer network.
run Android applications.
❑ Sockets provide the communication
mechanism
• The between
DVM executes Dalviktwo computers
bytecode, whichusing
is
TCP/IP.
compiled from programs written in the Java language
Socket
2.5 Working of DVM

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.5.2 Difference between DVM and JVM

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.5.2 Difference between DVM and JVM

Sr.No JVM(Java Virtual Machine) DVM(Dalvik Virtual Machine)

❑ Network
logic operations socket
through push is
and an endpoint oflocated
an ininter-
Stack-based VM that performs arithmetic and Register-based VM that uses
pop operands. registers the CPU to
process communication
is stored in stack flowperform
across a
1
The result of operations arithmetic and logic
memory. operations.
computer network.
Source code files are first of all
compiled into Java bytecode

❑ Sockets provide the communication


format like JVM. Further,
Java source code is compiled into Java bytecode
the DEX compiler(dx
mechanism between two computers using
2 format(.class file) that further translates into
tool) converts the Java bytecode
machine code.
into Dalvik bytecode(classes.dex)
TCP/IP. file that will be used to create
the .apk file.
More information is required to the VM for data Instruction size is larger as it needs
3 loading and manipulation as well as method to encode the source and
loading in the stack data structure. destination register of the VM.
Socket
2.5.2 Difference between DVM and JVM

Compiled bytecode size is compact because the Compiled bytecode size is larger
4 location of the operand is implicitly on the as each instruction needs all
❑ Network socket is an endpoint of an inter-
operand stack. implicit operands.

process communication flow across a


computer network.
The executable file for the device
5 The executable file for the device is .jar file.
is .apk file.

❑ Sockets provide the communication


The device runs multiple DVM
6
mechanism between two computers
A single instance of JVM is configured with
shared processes and memory space in order to
using
instances with a separate process
TCP/IP.
run all deployed applications.
in shared memory space to deploy
the code of each application.

Supports multiple operating systems like Linux, Support only the Android
7
Windows, and Mac OS. operation system.
Socket
2.6 Steps to install and configure Android Studio and SDK

After downloading the android-studio-ide-


❑ Network socket is anfile,
171.4443003-windows.exe endpoint of an inter-
process
follow communication
the below flow across a
steps to install.
computer network.
Step – 1 : Right click on downloaded .exe file and Run
as Administrator.
❑ Sockets provide the communication
mechanism between two computers using
Step – 2 : You will see the below Setup wizard.
TCP/IP.
Socket
2.6 Steps to install and configure Android Studio and SDK

Step 1:

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.6 Steps to install and configure Android Studio and SDK

Step 2:

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.6 Steps to install and configure Android Studio and SDK

Step 3:

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.6 Steps to install and configure Android Studio and SDK

Step 4:

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.6 Steps to install and configure Android Studio and SDK

Step 5:

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.6 Steps to install and configure Android Studio and SDK

Step 6:

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.6 Steps to install and configure Android Studio and SDK

Step – 7:
Here is the Welcome Screen.

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.6 Steps to install and configure Android Studio and SDK

Step – 8:
Here click on Standard option

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.6 Steps to install and configure Android Studio and SDK

Step – 9:
It will ask for the UI Theme, by default it would be IntelliJ, then directly you can click
on Next.
❑ Network socket is an endpoint of an inter-
process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.6 Steps to install and configure Android Studio and SDK

Step – 10:
It will ask for the confirmation for installation setting wizard.

❑ Network socket is an endpoint of an inter-


process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
2.6 Steps to install and configure Android Studio and SDK

Step – 11:
It will download all necessary components to launch the Android Studio and setting up
the environment
❑ Network socket is an endpoint of an inter-
process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.
Socket
Thank You
❑ Network socket is an endpoint of an inter-
process communication flow across a
computer network.

❑ Sockets provide the communication


mechanism between two computers using
TCP/IP.

You might also like