SlideShare a Scribd company logo
1 of 19
Mobile Application Development
1
Course teacher: Mr Kiran Khandarkar,
Assistant Professor in CSE Department.
2
Course Outcomes
ESC155: Mobile Application Development
ESC255: Lab-III: Mobile Application Development
 CO1: Explain Android Ecosystem and features of android operating system (II Understand)
 CO2: Configure Android environment and development tools. (III Apply)
 CO3: Use different layouts and control flow for designing User interface. (III Apply)
 CO4: Design user interface using different UI Components of Android. (III Apply)
 CO5: Demonstrate different lifecycles in Android. (III Apply)
 CO6: Illustrate process of publishing an android app on google play store. (III Apply)
• UNIT-II: Java SDK, Android Development Tools, Android Virtual
Devices, Emulators, Dalvik Virtual Machines, Steps to install Android
Studio and SDK
Textbooks/ Reference Books :
1. Composing Mobile Apps , by Anubhav Pradhan, Anil V Deshpande, Wiley
Publication.
2. Android App Development for Dummies , Michael Burton , Wiley
Publication.
3. Android Programming for Beginners , John Horton , Packt Publishing.
3
Configuration of Android Environment
1. Operating System
2. Java JDK
3. Android SDK
4. Android Development Tools (ADT)
5. Android Virtual Devices (AVD)
6. Emulators
7. Dalvik Virtual Machine
8. Difference between Java virtual machine and
Dalvik virtual machine
9. Steps to install and configure Eclipse and SDK
4
1. Operating System
– Windows xp/vista/7/10
– Mac OS X
– Linux
2. Java JDK
– As android programs are developed in the Java programming
language, JDK (Java Development Kit) has to be installed,
which includes Java SE and Java Runtime (JRE)
3. Android SDK
-The Android SDK (Software Development Kit) is a set of development
tools that are used to develop applications for the Android platform
-The Android SDK consists of an emulator, development tools, sample
projects with source code, and the required libraries to
build Android applications
5
Android SDK can be downloaded from http://developer .android.com/sdk/index.html
using Android SDK manager
*Android SDK is made up of two main parts : the tools and the packages
6
4. Android Development Tools(ADT)
• - ADT is a plugin for the Eclipse IDE which provides a suitable environment to
develop an Android application where creation, compilation and debugging are
possible . ADT can set up new Android projects, create an application UI, insert
packages based on the Android Framework API, debug your application using the
Android SDK tools and export .apk files in order to distribute the application
• Also ADT provides custom XML editors and debug output
pane
• Android Developer Tools Bundle (ADT Bundle) provides,
– Eclipse + ADT plugin
– Android SDK tools
– Android platform tools
– The most recent Android platform
– The newest android system image for the emulator
7
8
5. Android Virtual Devices (AVD)
- An Android virtual device AVD is an emulator configuration that enables to
model an actual device by calling hardware and software options to be emulated
by the Android Emulator
- the AVD manager can be used to create an AVD. launch it from eclipse
by clicking Window| AVD manager
- an Android virtual device AVD is used for testing the Android applications.
An AVD is an emulator occurrence that enables to form a real device Each AVD
consists of a hardware sketch, a connection to a system image , and emulated
storage , such as a secure digital SD card
9
10
An AVD consists of
 A hardware profile: defines the hardware features of the virtual device. for
example, you can describe whether the device has a camera, whether it uses
a physical QWERTY keyboard or a dialling pad , how much memory has and
so on.
 A mapping to a system image: what version of the Android platform will run
on the virtual machine can be defined. The version of the standard Android
platform or the system image packaged with the SDK add on can be chosen
 the emulator skin to be used with the AVD can be specified , which lets you
control the screen dimensions, look and so on .The emulated SD card to use
with the AVD, also can be specified
 A dedicated storage area on your development machine: the devices user
area (installed applications settings and so on ) and emulated SD card are
stored in this area
•
The Emulator
• QEMU-based ARM emulator
• Runs the same image as the
device
• Limitations:
– No Camera support
• Difference between JVM(Java Virtual Machine) and
DVM(Dalvik Virtual Machine)
DVM (Dalvik Virtual Machine) JVM(Java Virtual Machine)
1 It is Register based which is designed to
run on low memory.
It is Stack based.
2 DVM uses its own byte code and runs the
“.Dex” file. From Android 2.2 SDK Dalvik has
got a Just in Time compiler
JVM uses java byte code and runs “.class” file
having JIT (Just In Time).
3 DVM has been designed so that a device
can run multiple instances of the VM
efficiently. Applications are given their own
instance.
A single instance of JVM is shared with
multiple applications.
4 DVM supports the Android operating
system only.
JVM supports multiple operating systems.
5For DVM very few Re-tools are available For JVM many Re-tools are available.
6There is a constant pool for every
application
It has a constant pool for every class.
12
13
Android app development flow.
14
steps that an app goes through before it is ready for installation
15
LOGICAL COMPONENTS OF AN ANDROID APP
1. Activity: It is the basis of the UI of any Android app. The overall UI may consist
of other visual elements, layout elements, resources, and many more things,
besides the Activity that forms the foundation of UI
2. Service: Service is another key logical component of an Android app. It runs in
the background, and does not have an UI. To interact with a Service, typically
an UI (Activity) is associated with it.
3. Broadcast Receiver: While the mobile device is being used, there may be
several announcements (broadcasts) which an app needs to capture and
respond to. Announcements such as an incoming call, an incoming SMS,
availability of Wi-Fi spot, or low battery are initiated by the system.
4. Content Provider: Persisting data pertaining to an app and making it accessible
across apps is a crucial aspect of mobile app development. However, as a
security feature, the Android platform prevents one app to access data of
another app. To overcome this constraint, where an app needs to share the
data with other apps, the data has to be exposed, which is done using Content
Provider.
16
 Because mobile apps run in resource-constrained
environments, there is a dire need to ensure that they are
optimally designed, responsive, and performant.
 The Android SDK comes bundled with a rich set of tools that
not only help developers to cater to these pressing demands
but also provide utilities that help them during the
development of apps.
 These tools are broadly classified as SDK tools and platform
tools.
 SDK tools are Android platform version agnostic, and are
present in the tools subfolder of the SDK.
 Platform tools are specific to Android platform version, and
are present in platform-tools subfolder of the SDK.
ANDROID TOOL REPOSITORY
17
ANDROID TOOL REPOSITORY
18
TRAVERSING AN ANDROID APP PROJECT STRUCTURE
19
1. FirstApp is the name of the project.
2. src is the source folder where all .java files are placed. Android
mandates the creation of packages to manage the .java files. A
package name must have at least two identifiers, for example,
com.mad.
3. MainActivity is the default launcher activity of the app and its
contents are represented in Snippet 2.1. It inherits from the
Activity class and contains the onCreate() method. Within this
method, the setContentView() method is called to inflate the
layout of the screen (Line 9).

More Related Content

What's hot

Java package
Java packageJava package
Java packageCS_GDRCST
 
MonkeyTalk Automation Testing For Android Application
MonkeyTalk Automation Testing For Android ApplicationMonkeyTalk Automation Testing For Android Application
MonkeyTalk Automation Testing For Android ApplicationContusQA
 
Learning Methods in a Neural Network
Learning Methods in a Neural NetworkLearning Methods in a Neural Network
Learning Methods in a Neural NetworkSaransh Choudhary
 
Event handling
Event handlingEvent handling
Event handlingswapnac12
 
Java Exception handling
Java Exception handlingJava Exception handling
Java Exception handlingkamal kotecha
 
Java abstract class & abstract methods
Java abstract class & abstract methodsJava abstract class & abstract methods
Java abstract class & abstract methodsShubham Dwivedi
 
Distributed computing
Distributed computingDistributed computing
Distributed computingshivli0769
 
Configuring the Apache Web Server
Configuring the Apache Web ServerConfiguring the Apache Web Server
Configuring the Apache Web Serverwebhostingguy
 
Introduction to fragments in android
Introduction to fragments in androidIntroduction to fragments in android
Introduction to fragments in androidPrawesh Shrestha
 
JDBC: java DataBase connectivity
JDBC: java DataBase connectivityJDBC: java DataBase connectivity
JDBC: java DataBase connectivityTanmoy Barman
 
Market oriented Cloud Computing
Market oriented Cloud ComputingMarket oriented Cloud Computing
Market oriented Cloud ComputingJithin Parakka
 
Graphics in C programming
Graphics in C programmingGraphics in C programming
Graphics in C programmingKamal Acharya
 

What's hot (20)

Task programming
Task programmingTask programming
Task programming
 
Java package
Java packageJava package
Java package
 
MonkeyTalk Automation Testing For Android Application
MonkeyTalk Automation Testing For Android ApplicationMonkeyTalk Automation Testing For Android Application
MonkeyTalk Automation Testing For Android Application
 
Learning Methods in a Neural Network
Learning Methods in a Neural NetworkLearning Methods in a Neural Network
Learning Methods in a Neural Network
 
Tcp/ip server sockets
Tcp/ip server socketsTcp/ip server sockets
Tcp/ip server sockets
 
Event handling
Event handlingEvent handling
Event handling
 
Design of a two pass assembler
Design of a two pass assemblerDesign of a two pass assembler
Design of a two pass assembler
 
History of java'
History of java'History of java'
History of java'
 
Java Exception handling
Java Exception handlingJava Exception handling
Java Exception handling
 
Chapter2 Encapsulation (Java)
Chapter2 Encapsulation (Java)Chapter2 Encapsulation (Java)
Chapter2 Encapsulation (Java)
 
CS8392 OOP
CS8392 OOPCS8392 OOP
CS8392 OOP
 
Java: GUI
Java: GUIJava: GUI
Java: GUI
 
Java abstract class & abstract methods
Java abstract class & abstract methodsJava abstract class & abstract methods
Java abstract class & abstract methods
 
Distributed computing
Distributed computingDistributed computing
Distributed computing
 
Configuring the Apache Web Server
Configuring the Apache Web ServerConfiguring the Apache Web Server
Configuring the Apache Web Server
 
Introduction to fragments in android
Introduction to fragments in androidIntroduction to fragments in android
Introduction to fragments in android
 
JDBC: java DataBase connectivity
JDBC: java DataBase connectivityJDBC: java DataBase connectivity
JDBC: java DataBase connectivity
 
Market oriented Cloud Computing
Market oriented Cloud ComputingMarket oriented Cloud Computing
Market oriented Cloud Computing
 
Graphics in C programming
Graphics in C programmingGraphics in C programming
Graphics in C programming
 
Java awt
Java awtJava awt
Java awt
 

Similar to Notes Unit2.pptx

Os eclipse-androidwidget-pdf
Os eclipse-androidwidget-pdfOs eclipse-androidwidget-pdf
Os eclipse-androidwidget-pdfweerabahu
 
Unit 1-android-and-its-tools-ass
Unit 1-android-and-its-tools-assUnit 1-android-and-its-tools-ass
Unit 1-android-and-its-tools-assARVIND SARDAR
 
Getting started with android
Getting started with androidGetting started with android
Getting started with androidamitgb
 
Android development tutorial
Android development tutorialAndroid development tutorial
Android development tutorialMohammad Taj
 
Android development tutorial
Android development tutorialAndroid development tutorial
Android development tutorialnazzf
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to androidzeelpatel0504
 
Lecture 2(b) Android Internals A Quick Overview
Lecture 2(b) Android Internals A Quick OverviewLecture 2(b) Android Internals A Quick Overview
Lecture 2(b) Android Internals A Quick OverviewAhsanul Karim
 
Mobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdfMobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdfAbdullahMunir32
 
Outstanding Improvement Award Outstanding Improvement Award
Outstanding Improvement Award Outstanding Improvement AwardOutstanding Improvement Award Outstanding Improvement Award
Outstanding Improvement Award Outstanding Improvement Awardpravinmali2191
 
Android development classes in chandigarh : Big Boxx Academy
Android development classes in chandigarh : Big Boxx AcademyAndroid development classes in chandigarh : Big Boxx Academy
Android development classes in chandigarh : Big Boxx AcademyBig Boxx Animation Academy
 
Developing for Android-Types of Android Application
Developing for Android-Types of Android ApplicationDeveloping for Android-Types of Android Application
Developing for Android-Types of Android ApplicationNandini Prabhu
 
Software training report
Software training reportSoftware training report
Software training reportNatasha Bains
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentIJERD Editor
 
Seminar on android app development
Seminar on android app developmentSeminar on android app development
Seminar on android app developmentAbhishekKumar4779
 
Android and its feature
Android and its featureAndroid and its feature
Android and its featureShubham Kumar
 
Android interview questions and answers
Android interview questions and answersAndroid interview questions and answers
Android interview questions and answerskavinilavuG
 
Java Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development WorkshopJava Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development WorkshopKasun Dananjaya Delgolla
 
Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studioIntroduction_to_android_and_android_studio
Introduction_to_android_and_android_studioAbdul Basit
 

Similar to Notes Unit2.pptx (20)

Os eclipse-androidwidget-pdf
Os eclipse-androidwidget-pdfOs eclipse-androidwidget-pdf
Os eclipse-androidwidget-pdf
 
Unit 1-android-and-its-tools-ass
Unit 1-android-and-its-tools-assUnit 1-android-and-its-tools-ass
Unit 1-android-and-its-tools-ass
 
Getting started with android
Getting started with androidGetting started with android
Getting started with android
 
Android development tutorial
Android development tutorialAndroid development tutorial
Android development tutorial
 
Android development tutorial
Android development tutorialAndroid development tutorial
Android development tutorial
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Lecture 2(b) Android Internals A Quick Overview
Lecture 2(b) Android Internals A Quick OverviewLecture 2(b) Android Internals A Quick Overview
Lecture 2(b) Android Internals A Quick Overview
 
Mobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdfMobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdf
 
Outstanding Improvement Award Outstanding Improvement Award
Outstanding Improvement Award Outstanding Improvement AwardOutstanding Improvement Award Outstanding Improvement Award
Outstanding Improvement Award Outstanding Improvement Award
 
Android development classes in chandigarh : Big Boxx Academy
Android development classes in chandigarh : Big Boxx AcademyAndroid development classes in chandigarh : Big Boxx Academy
Android development classes in chandigarh : Big Boxx Academy
 
Android Development
Android DevelopmentAndroid Development
Android Development
 
Developing for Android-Types of Android Application
Developing for Android-Types of Android ApplicationDeveloping for Android-Types of Android Application
Developing for Android-Types of Android Application
 
Software training report
Software training reportSoftware training report
Software training report
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
 
Seminar on android app development
Seminar on android app developmentSeminar on android app development
Seminar on android app development
 
Android and its feature
Android and its featureAndroid and its feature
Android and its feature
 
Android interview questions and answers
Android interview questions and answersAndroid interview questions and answers
Android interview questions and answers
 
Java Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development WorkshopJava Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development Workshop
 
Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studioIntroduction_to_android_and_android_studio
Introduction_to_android_and_android_studio
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
 

Recently uploaded

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 

Recently uploaded (20)

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 

Notes Unit2.pptx

  • 1. Mobile Application Development 1 Course teacher: Mr Kiran Khandarkar, Assistant Professor in CSE Department.
  • 2. 2 Course Outcomes ESC155: Mobile Application Development ESC255: Lab-III: Mobile Application Development  CO1: Explain Android Ecosystem and features of android operating system (II Understand)  CO2: Configure Android environment and development tools. (III Apply)  CO3: Use different layouts and control flow for designing User interface. (III Apply)  CO4: Design user interface using different UI Components of Android. (III Apply)  CO5: Demonstrate different lifecycles in Android. (III Apply)  CO6: Illustrate process of publishing an android app on google play store. (III Apply)
  • 3. • UNIT-II: Java SDK, Android Development Tools, Android Virtual Devices, Emulators, Dalvik Virtual Machines, Steps to install Android Studio and SDK Textbooks/ Reference Books : 1. Composing Mobile Apps , by Anubhav Pradhan, Anil V Deshpande, Wiley Publication. 2. Android App Development for Dummies , Michael Burton , Wiley Publication. 3. Android Programming for Beginners , John Horton , Packt Publishing. 3
  • 4. Configuration of Android Environment 1. Operating System 2. Java JDK 3. Android SDK 4. Android Development Tools (ADT) 5. Android Virtual Devices (AVD) 6. Emulators 7. Dalvik Virtual Machine 8. Difference between Java virtual machine and Dalvik virtual machine 9. Steps to install and configure Eclipse and SDK 4
  • 5. 1. Operating System – Windows xp/vista/7/10 – Mac OS X – Linux 2. Java JDK – As android programs are developed in the Java programming language, JDK (Java Development Kit) has to be installed, which includes Java SE and Java Runtime (JRE) 3. Android SDK -The Android SDK (Software Development Kit) is a set of development tools that are used to develop applications for the Android platform -The Android SDK consists of an emulator, development tools, sample projects with source code, and the required libraries to build Android applications 5
  • 6. Android SDK can be downloaded from http://developer .android.com/sdk/index.html using Android SDK manager *Android SDK is made up of two main parts : the tools and the packages 6
  • 7. 4. Android Development Tools(ADT) • - ADT is a plugin for the Eclipse IDE which provides a suitable environment to develop an Android application where creation, compilation and debugging are possible . ADT can set up new Android projects, create an application UI, insert packages based on the Android Framework API, debug your application using the Android SDK tools and export .apk files in order to distribute the application • Also ADT provides custom XML editors and debug output pane • Android Developer Tools Bundle (ADT Bundle) provides, – Eclipse + ADT plugin – Android SDK tools – Android platform tools – The most recent Android platform – The newest android system image for the emulator 7
  • 8. 8
  • 9. 5. Android Virtual Devices (AVD) - An Android virtual device AVD is an emulator configuration that enables to model an actual device by calling hardware and software options to be emulated by the Android Emulator - the AVD manager can be used to create an AVD. launch it from eclipse by clicking Window| AVD manager - an Android virtual device AVD is used for testing the Android applications. An AVD is an emulator occurrence that enables to form a real device Each AVD consists of a hardware sketch, a connection to a system image , and emulated storage , such as a secure digital SD card 9
  • 10. 10 An AVD consists of  A hardware profile: defines the hardware features of the virtual device. for example, you can describe whether the device has a camera, whether it uses a physical QWERTY keyboard or a dialling pad , how much memory has and so on.  A mapping to a system image: what version of the Android platform will run on the virtual machine can be defined. The version of the standard Android platform or the system image packaged with the SDK add on can be chosen  the emulator skin to be used with the AVD can be specified , which lets you control the screen dimensions, look and so on .The emulated SD card to use with the AVD, also can be specified  A dedicated storage area on your development machine: the devices user area (installed applications settings and so on ) and emulated SD card are stored in this area •
  • 11. The Emulator • QEMU-based ARM emulator • Runs the same image as the device • Limitations: – No Camera support
  • 12. • Difference between JVM(Java Virtual Machine) and DVM(Dalvik Virtual Machine) DVM (Dalvik Virtual Machine) JVM(Java Virtual Machine) 1 It is Register based which is designed to run on low memory. It is Stack based. 2 DVM uses its own byte code and runs the “.Dex” file. From Android 2.2 SDK Dalvik has got a Just in Time compiler JVM uses java byte code and runs “.class” file having JIT (Just In Time). 3 DVM has been designed so that a device can run multiple instances of the VM efficiently. Applications are given their own instance. A single instance of JVM is shared with multiple applications. 4 DVM supports the Android operating system only. JVM supports multiple operating systems. 5For DVM very few Re-tools are available For JVM many Re-tools are available. 6There is a constant pool for every application It has a constant pool for every class. 12
  • 14. 14 steps that an app goes through before it is ready for installation
  • 15. 15 LOGICAL COMPONENTS OF AN ANDROID APP 1. Activity: It is the basis of the UI of any Android app. The overall UI may consist of other visual elements, layout elements, resources, and many more things, besides the Activity that forms the foundation of UI 2. Service: Service is another key logical component of an Android app. It runs in the background, and does not have an UI. To interact with a Service, typically an UI (Activity) is associated with it. 3. Broadcast Receiver: While the mobile device is being used, there may be several announcements (broadcasts) which an app needs to capture and respond to. Announcements such as an incoming call, an incoming SMS, availability of Wi-Fi spot, or low battery are initiated by the system. 4. Content Provider: Persisting data pertaining to an app and making it accessible across apps is a crucial aspect of mobile app development. However, as a security feature, the Android platform prevents one app to access data of another app. To overcome this constraint, where an app needs to share the data with other apps, the data has to be exposed, which is done using Content Provider.
  • 16. 16  Because mobile apps run in resource-constrained environments, there is a dire need to ensure that they are optimally designed, responsive, and performant.  The Android SDK comes bundled with a rich set of tools that not only help developers to cater to these pressing demands but also provide utilities that help them during the development of apps.  These tools are broadly classified as SDK tools and platform tools.  SDK tools are Android platform version agnostic, and are present in the tools subfolder of the SDK.  Platform tools are specific to Android platform version, and are present in platform-tools subfolder of the SDK. ANDROID TOOL REPOSITORY
  • 18. 18 TRAVERSING AN ANDROID APP PROJECT STRUCTURE
  • 19. 19 1. FirstApp is the name of the project. 2. src is the source folder where all .java files are placed. Android mandates the creation of packages to manage the .java files. A package name must have at least two identifiers, for example, com.mad. 3. MainActivity is the default launcher activity of the app and its contents are represented in Snippet 2.1. It inherits from the Activity class and contains the onCreate() method. Within this method, the setContentView() method is called to inflate the layout of the screen (Line 9).