SlideShare a Scribd company logo
1 of 70
Android
What is Android ?
Introduction to Android
• Open software platform for mobile development.
• A complete stack – OS, Middleware, Applications.
• An Open Handset Alliance (OHA) project.
• Powered by Linux operating system.
• Fast application development in Java.
• Open source under the Apache license
Difference b/w Native and Android OS
1.0
1.1
1.2
2.0
2.1
2.2
2.3
Native
Operating System
JRE
3rd party App
Native App
System
Resources
Working of Native OS
1.0 1.1
1.2
1.3
2.0
2.1
2.2
2.3
Linux
Kernel
DVM
DVM
3rd party
app
Native App
System
Resources
Working of Android OS
Why
Android ?
Why Android?
• Android was designed as a platform for software development.
• Android is open.
• Android is free.
What you can do with
Android?
 Develop your own Applications.
 Develop apps to operate robots
• The OHA is a group of hardware and software developers, including
Google, NTT DoCoMo, Sprint Nextel, and HTC …
• Goal
– Accelerate innovation in mobile
– Offer consumers a richer, less expensive, and better mobile experience
• OHA have developed Android™, the first complete, open, and free mobile
platform
Open Handset Alliance (OHA)
Market Share
SmartPhone market Share 2012
Android Architecture
• Includes a set of C/C++ libraries.
• Interface through Java.
• Surface manager – Handling UI Windows.
• 2D and 3D graphics.
• Media codes, SQLite, Browser engine.
• Android relies on Linux version 2.6 for core system services such as device
drivers, security, memory management ,process management.
• The kernel also acts as an abstraction layer between the hardware and the
rest of the software stack.
Compilation in Android
Android Execution process
Imp. Tools in Android
 ADT : Android Devlopment Tool used for Eclipse plugins
 Two debuggers
 adb - Android debug bridge
 ddms – Dalvik Debug Monitor Service
 aapt – Android applications packaging tools
 dx – java byte code to Dalvik executable translator
Android Installation Process
Android Application Components
Components - Activity
 An activity is usually a single screen:
 Implemented as a single class extending
Activity.
 Displays user interface controls (views).
 An application typically consists of several
screens:
 Each screen is implemented by one activity.
 Moving to the next screen means starting a
new activity.
Activity lifecycle
Welcome project
Android widgets
AutoCompleteTextView
• AutocompleteTextView is an editable
text view that shows completion
suggestions automatically while the
user is typing.
Spinner
• Touching the spinner displays a
dropdown menu with all other
available values, from which the user
can select a new one.
A Toast is a pop-up message, which allows you to quickly notify the user of
some event.
Toast Messages
The first parameter is used to set the gravity itself. Second and third
parameters define by how many pixels, relative to the value set in the
first parameter.
Intent in Android
Intents
 Intents are messages that are sent
among major building blocks.
 They trigger an activity to start
up, a service to start or stop, or
are simply broadcasts.
Explicit Intent
 Explicit intent is used to invoke the activity or perform the action
within the applications.
Implicit intent
 Implicit intent is used to invoke the actvity of another applications.
This type of intent is created by specifying actions.
Android layouts
User Interface
Two Ways to Create User Interface
 There are two ways to create user interface (UI) in Android. One is
declarative and the other one is programmatic. They are quite different
but often used together to get the job done.
 Declarative User Interface
 Programmatic User Interface
Views and Layouts
Android organizes its UI elements into layouts and views. Everything you
see, such as a button, label, or text box, is a view.
LinearLayout
In a linear layout, like the name suggests, all the elements are displayed in
a linear fashion, either Horizontally or Vertically and this behavior is set
in android:orientation which is an attribute of the node LinearLayout.
TableLayout
TableLayout lays out its children
in a table. TableLayout consists of
only other TableRow widgets.
TableRow represents a row in a
table and can contain other UI
widgets. TableRow widgets are
laid out next to each other
horizontally.
RelativeLayout
RelativeLayout lays out its
children relative to each other.
As such, it is very powerful as it
doesn’t require you to nest
unnecessary layouts in order to
achieve certain look.
Next Topic…
Coding for some simple widgets
Android Advanced Topics
Working With Sensors
• A Sensor is a converter that measures physical quantity and convert it into a
signal which can be read by any Observer and by any Instruments
• A Sensor is a device which receive and responds to signal when touched
What is Sensor
Sensor supported By Android
• Accelerometer Sensor
• Gravity Sensor
• Magnetic Field Sensor
• Pressure Sensor
• Proximity Sensor
• Temperature Sensor
• Orientation Sensor
Accelerometer Sensor
• Accelerometer Sensor is a Hardware Device that measures the
acceleration of the device in x , y & z Directions.
• Android supports all sensors via the SensorManager like as Accelerometer.
You can access SensorManager via getSystemServices
• The Sensor class Defines several constants for accessing the different
sensors:
Sensor.TYPE_GYROSCOPE
Sensor.TYPE_MAGNETIC_FIELD
Sensor.TYPE_ORIENTATION
Sensor.TYPE_ACCELROMETER
You can access the sensor via the sensormanager.getDefaultSenosr() method,
which takes as parameter as Sensor type
sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
Once you acquired a sensor, you can register a SensorEventListner object on it.
This listner will get informed, if the sensor data changes
sensorManager.registerListener();
Next Topic…
Working With Location Based App
Obtaining user location or developing location aware application for Android
you can utilize :-
GPS – Global Positioning System
NPS – Network Positioning System
Obtaining user location
GPS
GPS is a technical marvel made possible
by a group of satellites in earth orbit that
transmit precise signals, allowing GPS
receivers to calculate and display
accurate location, speed, and time
information to the user
NPS provider determine location using shell tower and wi-fi signals. It
responds faster and consume less battery power.
NPS
Android Location API
LocationManager
LocationManager class provide access to the Android Location Service. The
Service allows you to access location providers,
to register location updates listeners.
LocationProvider
The LocationProvider class is the super class of different location providers
which delivers the information about the current location. This information is
stored in the Location Class
Location
Location class represents a Geographic location at a particular time, which is
measured by or represented by Latitude and Longitude
Latitude measures North - South position
Longitude measures West-East position
LocationListener
The LocationListener class used for receiving notification from
LocationManager when the location has been changed
Next Topic…
Native Development Kit (NDK)
Current Company:
Xenium Digital Private Limited,Mumbai(www.xenium.in)
(Exp.On:MobileApps(NativeApps,Hybrid,Augmented Reality Apps)
Unity Game Developemnt&Python World Viz Virtual Reality Development)
Contact Details
Rajnish Vishwakarma
(Mobile Apps,UnityGame&Python Vizard
Developer)
Email: rajnishbeit.tcet@gmail.com
mobileapps_developers@yahoo.com
Tel: +91-8767319805

More Related Content

What's hot

Input devices dani
Input devices daniInput devices dani
Input devices daniDinesh Kumar
 
Develop Store Apps with Kinect for Windows v2
Develop Store Apps with Kinect for Windows v2Develop Store Apps with Kinect for Windows v2
Develop Store Apps with Kinect for Windows v2Clemente Giorio
 
Programming with kinect v2
Programming with kinect v2Programming with kinect v2
Programming with kinect v2Matteo Valoriani
 
Input devices
Input devicesInput devices
Input devicesrwkshj
 
Writing applications using the Microsoft Kinect Sensor
Writing applications using the Microsoft Kinect SensorWriting applications using the Microsoft Kinect Sensor
Writing applications using the Microsoft Kinect Sensorphildenoncourt
 
Sensors and location based services
Sensors and location based servicesSensors and location based services
Sensors and location based servicesChinmay V S
 
Xbox one development kit 2 copy - copy
Xbox one development kit 2   copy - copyXbox one development kit 2   copy - copy
Xbox one development kit 2 copy - copyrojizo frio
 
computer Graphics
computer Graphics computer Graphics
computer Graphics Rozi khan
 
Augmented Reality with the Intel® RealSense™ SDK and R200 Camera
Augmented Reality with the Intel® RealSense™ SDK and R200 CameraAugmented Reality with the Intel® RealSense™ SDK and R200 Camera
Augmented Reality with the Intel® RealSense™ SDK and R200 CameraIntel® Software
 
Virtual Keyboard (VKB)-Keyboard Without KEYS and Board
Virtual Keyboard (VKB)-Keyboard Without KEYS and BoardVirtual Keyboard (VKB)-Keyboard Without KEYS and Board
Virtual Keyboard (VKB)-Keyboard Without KEYS and Boardsumit kumar
 
Presentation virtual keybord_2
Presentation virtual keybord_2Presentation virtual keybord_2
Presentation virtual keybord_2kondalarao7
 
Virtual Keyboard
Virtual KeyboardVirtual Keyboard
Virtual KeyboardRakeh Reddy
 

What's hot (17)

Advanced sensors in Series 40 Java ME apps
Advanced sensors in Series 40 Java ME appsAdvanced sensors in Series 40 Java ME apps
Advanced sensors in Series 40 Java ME apps
 
Generic sensors for the Web
Generic sensors for the WebGeneric sensors for the Web
Generic sensors for the Web
 
Input devices dani
Input devices daniInput devices dani
Input devices dani
 
Virtual Key Board
Virtual Key BoardVirtual Key Board
Virtual Key Board
 
Develop Store Apps with Kinect for Windows v2
Develop Store Apps with Kinect for Windows v2Develop Store Apps with Kinect for Windows v2
Develop Store Apps with Kinect for Windows v2
 
Programming with kinect v2
Programming with kinect v2Programming with kinect v2
Programming with kinect v2
 
Input devices
Input devicesInput devices
Input devices
 
Writing applications using the Microsoft Kinect Sensor
Writing applications using the Microsoft Kinect SensorWriting applications using the Microsoft Kinect Sensor
Writing applications using the Microsoft Kinect Sensor
 
Sensors and location based services
Sensors and location based servicesSensors and location based services
Sensors and location based services
 
Xbox one development kit 2 copy - copy
Xbox one development kit 2   copy - copyXbox one development kit 2   copy - copy
Xbox one development kit 2 copy - copy
 
Sensor's inside
Sensor's insideSensor's inside
Sensor's inside
 
Virtual keyboard abstract
Virtual keyboard abstractVirtual keyboard abstract
Virtual keyboard abstract
 
computer Graphics
computer Graphics computer Graphics
computer Graphics
 
Augmented Reality with the Intel® RealSense™ SDK and R200 Camera
Augmented Reality with the Intel® RealSense™ SDK and R200 CameraAugmented Reality with the Intel® RealSense™ SDK and R200 Camera
Augmented Reality with the Intel® RealSense™ SDK and R200 Camera
 
Virtual Keyboard (VKB)-Keyboard Without KEYS and Board
Virtual Keyboard (VKB)-Keyboard Without KEYS and BoardVirtual Keyboard (VKB)-Keyboard Without KEYS and Board
Virtual Keyboard (VKB)-Keyboard Without KEYS and Board
 
Presentation virtual keybord_2
Presentation virtual keybord_2Presentation virtual keybord_2
Presentation virtual keybord_2
 
Virtual Keyboard
Virtual KeyboardVirtual Keyboard
Virtual Keyboard
 

Similar to Everything About Android - Itvedant, Thane | Mumbai | Navi Mumbai

Mobile application development
Mobile application developmentMobile application development
Mobile application developmentumesh patil
 
Android Development Tutorial
Android Development TutorialAndroid Development Tutorial
Android Development TutorialGermán Bringas
 
Os eclipse-androidwidget-pdf
Os eclipse-androidwidget-pdfOs eclipse-androidwidget-pdf
Os eclipse-androidwidget-pdfweerabahu
 
Nativa Android Applications development
Nativa Android Applications developmentNativa Android Applications development
Nativa Android Applications developmentAlfredo Morresi
 
Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android DevelopmentProf. Erwin Globio
 
Android architecture
Android architectureAndroid architecture
Android architectureDeepa Rahul
 
Android interview questions and answers
Android interview questions and answersAndroid interview questions and answers
Android interview questions and answerskavinilavuG
 
Embedded Systems.pdf
Embedded Systems.pdfEmbedded Systems.pdf
Embedded Systems.pdfruvabebe
 
Windows 7 For Developers
Windows 7 For DevelopersWindows 7 For Developers
Windows 7 For Developersjoycsc
 
ANDROID LAB MANUAL.doc
ANDROID LAB MANUAL.docANDROID LAB MANUAL.doc
ANDROID LAB MANUAL.docPalakjaiswal43
 
Technology and Android.pptx
Technology and Android.pptxTechnology and Android.pptx
Technology and Android.pptxmuthulakshmi cse
 
Mobile Application Development Lecture 05 & 06.pdf
Mobile Application Development Lecture 05 & 06.pdfMobile Application Development Lecture 05 & 06.pdf
Mobile Application Development Lecture 05 & 06.pdfAbdullahMunir32
 
5 beginner android application development foundation
5 beginner android application development foundation5 beginner android application development foundation
5 beginner android application development foundationCbitss Technologies
 
Mobile Application Development -Lecture 09 & 10.pdf
Mobile Application Development -Lecture 09 & 10.pdfMobile Application Development -Lecture 09 & 10.pdf
Mobile Application Development -Lecture 09 & 10.pdfAbdullahMunir32
 
Mobile Application Development With Android
Mobile Application Development With AndroidMobile Application Development With Android
Mobile Application Development With Androidguest213e237
 

Similar to Everything About Android - Itvedant, Thane | Mumbai | Navi Mumbai (20)

Mobile application development
Mobile application developmentMobile application development
Mobile application development
 
Android Development Tutorial
Android Development TutorialAndroid Development Tutorial
Android Development Tutorial
 
Os eclipse-androidwidget-pdf
Os eclipse-androidwidget-pdfOs eclipse-androidwidget-pdf
Os eclipse-androidwidget-pdf
 
Nativa Android Applications development
Nativa Android Applications developmentNativa Android Applications development
Nativa Android Applications development
 
Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android Development
 
Android architecture
Android architectureAndroid architecture
Android architecture
 
Android beginners David
Android beginners DavidAndroid beginners David
Android beginners David
 
Android interview questions and answers
Android interview questions and answersAndroid interview questions and answers
Android interview questions and answers
 
Embedded Systems.pdf
Embedded Systems.pdfEmbedded Systems.pdf
Embedded Systems.pdf
 
UNIT CONVERTER
UNIT CONVERTERUNIT CONVERTER
UNIT CONVERTER
 
Windows 7 For Developers
Windows 7 For DevelopersWindows 7 For Developers
Windows 7 For Developers
 
ANDROID LAB MANUAL.doc
ANDROID LAB MANUAL.docANDROID LAB MANUAL.doc
ANDROID LAB MANUAL.doc
 
SensActions-Report
SensActions-ReportSensActions-Report
SensActions-Report
 
Technology and Android.pptx
Technology and Android.pptxTechnology and Android.pptx
Technology and Android.pptx
 
Mobile Application Development Lecture 05 & 06.pdf
Mobile Application Development Lecture 05 & 06.pdfMobile Application Development Lecture 05 & 06.pdf
Mobile Application Development Lecture 05 & 06.pdf
 
5 beginner android application development foundation
5 beginner android application development foundation5 beginner android application development foundation
5 beginner android application development foundation
 
Mobile Application Development -Lecture 09 & 10.pdf
Mobile Application Development -Lecture 09 & 10.pdfMobile Application Development -Lecture 09 & 10.pdf
Mobile Application Development -Lecture 09 & 10.pdf
 
Aptech Apps
Aptech Apps Aptech Apps
Aptech Apps
 
hema ppt (2).pptx
hema ppt (2).pptxhema ppt (2).pptx
hema ppt (2).pptx
 
Mobile Application Development With Android
Mobile Application Development With AndroidMobile Application Development With Android
Mobile Application Development With Android
 

Recently uploaded

Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 

Recently uploaded (20)

08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 

Everything About Android - Itvedant, Thane | Mumbai | Navi Mumbai

  • 3. Introduction to Android • Open software platform for mobile development. • A complete stack – OS, Middleware, Applications. • An Open Handset Alliance (OHA) project. • Powered by Linux operating system. • Fast application development in Java. • Open source under the Apache license
  • 4. Difference b/w Native and Android OS
  • 5. 1.0 1.1 1.2 2.0 2.1 2.2 2.3 Native Operating System JRE 3rd party App Native App System Resources Working of Native OS
  • 8. Why Android? • Android was designed as a platform for software development. • Android is open. • Android is free.
  • 9. What you can do with Android?
  • 10.  Develop your own Applications.  Develop apps to operate robots
  • 11.
  • 12. • The OHA is a group of hardware and software developers, including Google, NTT DoCoMo, Sprint Nextel, and HTC … • Goal – Accelerate innovation in mobile – Offer consumers a richer, less expensive, and better mobile experience • OHA have developed Android™, the first complete, open, and free mobile platform Open Handset Alliance (OHA)
  • 13.
  • 16.
  • 17.
  • 19.
  • 20.
  • 21.
  • 22. • Includes a set of C/C++ libraries. • Interface through Java. • Surface manager – Handling UI Windows. • 2D and 3D graphics. • Media codes, SQLite, Browser engine.
  • 23.
  • 24. • Android relies on Linux version 2.6 for core system services such as device drivers, security, memory management ,process management. • The kernel also acts as an abstraction layer between the hardware and the rest of the software stack.
  • 27. Imp. Tools in Android  ADT : Android Devlopment Tool used for Eclipse plugins  Two debuggers  adb - Android debug bridge  ddms – Dalvik Debug Monitor Service  aapt – Android applications packaging tools  dx – java byte code to Dalvik executable translator
  • 28.
  • 30.
  • 32.
  • 33. Components - Activity  An activity is usually a single screen:  Implemented as a single class extending Activity.  Displays user interface controls (views).  An application typically consists of several screens:  Each screen is implemented by one activity.  Moving to the next screen means starting a new activity.
  • 36.
  • 38. AutoCompleteTextView • AutocompleteTextView is an editable text view that shows completion suggestions automatically while the user is typing.
  • 39. Spinner • Touching the spinner displays a dropdown menu with all other available values, from which the user can select a new one.
  • 40. A Toast is a pop-up message, which allows you to quickly notify the user of some event. Toast Messages
  • 41.
  • 42. The first parameter is used to set the gravity itself. Second and third parameters define by how many pixels, relative to the value set in the first parameter.
  • 43.
  • 45. Intents  Intents are messages that are sent among major building blocks.  They trigger an activity to start up, a service to start or stop, or are simply broadcasts.
  • 46.
  • 47. Explicit Intent  Explicit intent is used to invoke the activity or perform the action within the applications. Implicit intent  Implicit intent is used to invoke the actvity of another applications. This type of intent is created by specifying actions.
  • 49. User Interface Two Ways to Create User Interface  There are two ways to create user interface (UI) in Android. One is declarative and the other one is programmatic. They are quite different but often used together to get the job done.  Declarative User Interface  Programmatic User Interface
  • 50. Views and Layouts Android organizes its UI elements into layouts and views. Everything you see, such as a button, label, or text box, is a view.
  • 51. LinearLayout In a linear layout, like the name suggests, all the elements are displayed in a linear fashion, either Horizontally or Vertically and this behavior is set in android:orientation which is an attribute of the node LinearLayout.
  • 52. TableLayout TableLayout lays out its children in a table. TableLayout consists of only other TableRow widgets. TableRow represents a row in a table and can contain other UI widgets. TableRow widgets are laid out next to each other horizontally.
  • 53. RelativeLayout RelativeLayout lays out its children relative to each other. As such, it is very powerful as it doesn’t require you to nest unnecessary layouts in order to achieve certain look.
  • 54.
  • 55. Next Topic… Coding for some simple widgets
  • 58. • A Sensor is a converter that measures physical quantity and convert it into a signal which can be read by any Observer and by any Instruments • A Sensor is a device which receive and responds to signal when touched What is Sensor
  • 59. Sensor supported By Android • Accelerometer Sensor • Gravity Sensor • Magnetic Field Sensor • Pressure Sensor • Proximity Sensor • Temperature Sensor • Orientation Sensor
  • 60. Accelerometer Sensor • Accelerometer Sensor is a Hardware Device that measures the acceleration of the device in x , y & z Directions.
  • 61. • Android supports all sensors via the SensorManager like as Accelerometer. You can access SensorManager via getSystemServices • The Sensor class Defines several constants for accessing the different sensors: Sensor.TYPE_GYROSCOPE Sensor.TYPE_MAGNETIC_FIELD Sensor.TYPE_ORIENTATION Sensor.TYPE_ACCELROMETER
  • 62. You can access the sensor via the sensormanager.getDefaultSenosr() method, which takes as parameter as Sensor type sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); Once you acquired a sensor, you can register a SensorEventListner object on it. This listner will get informed, if the sensor data changes sensorManager.registerListener();
  • 63. Next Topic… Working With Location Based App
  • 64. Obtaining user location or developing location aware application for Android you can utilize :- GPS – Global Positioning System NPS – Network Positioning System Obtaining user location
  • 65. GPS GPS is a technical marvel made possible by a group of satellites in earth orbit that transmit precise signals, allowing GPS receivers to calculate and display accurate location, speed, and time information to the user
  • 66. NPS provider determine location using shell tower and wi-fi signals. It responds faster and consume less battery power. NPS
  • 67. Android Location API LocationManager LocationManager class provide access to the Android Location Service. The Service allows you to access location providers, to register location updates listeners. LocationProvider The LocationProvider class is the super class of different location providers which delivers the information about the current location. This information is stored in the Location Class
  • 68. Location Location class represents a Geographic location at a particular time, which is measured by or represented by Latitude and Longitude Latitude measures North - South position Longitude measures West-East position LocationListener The LocationListener class used for receiving notification from LocationManager when the location has been changed
  • 70. Current Company: Xenium Digital Private Limited,Mumbai(www.xenium.in) (Exp.On:MobileApps(NativeApps,Hybrid,Augmented Reality Apps) Unity Game Developemnt&Python World Viz Virtual Reality Development) Contact Details Rajnish Vishwakarma (Mobile Apps,UnityGame&Python Vizard Developer) Email: rajnishbeit.tcet@gmail.com mobileapps_developers@yahoo.com Tel: +91-8767319805

Editor's Notes

  1. Program for linear layout.
  2. Program for table layout
  3. Give them time to do practice with layouts