Android
Introduction
Key Points
What is Android?
What is Operating System?
What is Linux?
What is Open Source?
Overview
• Android is an open source Linux based operating system.
• Developed by Open Handset Alliance , led by Google and
other company.
• Google has further developed Android TV for television , Android
auto cars and wrist watches.
Open source Linux based Operating system
What is Operating system?
• An Operating system or OS is a software program
that enable the hardware to communicate and
operate with the software program
• Operating system is interface between software and hardware
Linux Open Source
• Linux is a family of free and • The source code of operating
open- source software system is free of charge
operating system
• Users can view the code and make
any kind of changes
• Anyone can take the code and
distribute their own program from
it.
• Not need any licence
What is
IDE ?
What is IDE?
• Integrated Development Environment
Eg. Vanity van ,
Development means developing anything any building etc
Android studio is ID for android
• For Java we use Eclipse and Netbeans.
Main Featured of IDE
• Editing source code
• Syntax Highlighting
• Autocomplete(suggestions)
• Building
• Debugging( Manual Testing)
• Increase efficiency-faster coding with less efforts
INSTALL
Android Studio
On WINDOWS
Running App
Process
• ADB ( Android debug bridge) & AVD (Android Virtual Device)
• Complile time error And Run time Error
• Complile time error shown when we are coding
• Run time Error
• There is two platform where we run our device
Run on Real Device Android Virtual
device
• Our android phone is android • Our phone run on any OS (window , linux ,
Mac os)
device
already shown while installing android
studio
• Use USB (Android debug bridge)
cable • Benefits
• If we have to run on different
• We can run App on our on mobiles( means on different size
smartphones
phone
• If we have to run on different OS
• Use when Don’t have smart android phone.
Installing Android Virtual Device
• Tools-ADV manager
Introduction to XML
• XML is eXtensible Markup Language.
• It is used for transferring and storing data.
• It is markup language much like HTML.
• XML in Android
• We create XML layout in Android
• Each layout file must contain one Root element.
View
• It represent rectangular area of screen, and is responsible for
displaying information or content, and event handling.
• Texts, Images and Buttons are all views in Android.
ViewGroup
• It is essential an invisible container that holds multiple views or
viewgroups together and defines their layout
• Common View Groups
A List View display a list of scrollable items.
A Grid View display an items in two dimensional scrollable grid
A Table View display groups or items views into Rows and Column
Types of layouts in Android
• For example any container
• Similarly in our android there is layout
• Three main Layouts used in Android studio
1. Relative Layout
2. Constraint Layout
3. Linear Layout