SlideShare uma empresa Scribd logo
1 de 27
Getting Started with
Android application development




           Dept. of Computer Science and
                     Engineering
What is required for Android application development?

• Latest version of JDK
• Android SDK (Windows/Linux)
• IDE (Eclipse/Anything of your choice)
• Android Eclipse Add-on (ADT)




                    Dept. of Computer Science and
                              Engineering
JDK or Java JDK
• Java SE development kit
• Its an essential component, because every app are written using
java language
• so, you need to have JDK to compile and generate the java files at
the run time
• download latest version of JDK
• why java only..???




                               Dept. of computer
                            Science and Engineering
Eclipse

• It is the preferred IDE (integrated development environment)
  by the Android team.

• Its multi language software development environment
featuring an extensible plug-in system.

• Download Eclipse of any version on your machine.

• You can download it here www.eclipse.org

• Six editions are available, for all types of OS.



                          Dept. of Computer Science and
                                    Engineering
Android SDK

• Android SDK (software development kit) contains a debugger,
libraries, an emulator, documentation, sample code, and tutorials.

• Android SDK initially contains only the basic tools, It does not
contain all android platforms and platforms tools.

• Therefore, you must install the platform tools and atleast one
version of the Android platform.

•Download Android SDK zip file from:
 http://developer.android.com/sdk


                          Dept. of Computer Science and
                                    Engineering
Android emulator

• Android SDK Includes a mobile device emulator.
• Its virtual mobile device that runs on your computer, The
emulator lets you develop & test android apps without using a
physical device.
• So, you have to create AVDs (Android Virtual device), these are
emulator instances.
• you can create as many AVDs you want in order to test your
app with different configurations.




                          Dept. of Information Science and
                                     Engineering
ADT (android development tools)

• Its an extension for eclipse IDE.
• Its a custom plug-in offered by android.
• Designed to give powerful, integrated environment in which
you can build android apps.
• It extends the capabilities for eclipse to let you quickly set up
Android projects.




                          Dept. of Information Science and
                                     Engineering
Configuring Android SDK into Eclipse




            Dept. of Computer Science and
                      Engineering
Dept. of Computer Science and
          Engineering
Dept. of Computer Science and
          Engineering
Dept. of Computer Science and
          Engineering
Dept. of Computer Science and
          Engineering
Dept. of Computer Science and
          Engineering
Dept. of Computer Science and
          Engineering
Dept. of Computer Science and
          Engineering
Dept. of Computer Science and
          Engineering
Dept. of Computer Science and
          Engineering
Dept. of Computer Science and
          Engineering
DDMS

• Android ships with a debugging tool called the Dalvik Debug
  Monitor Server (DDMS).
• When DDMS starts, it connects to android debug bridge (this
  lets us communicate with an emulator instance or connected
  android device).
• When a device is connected, a VM monitoring service is
  created between adb and DDMS, which notifies DDMS when
  a VM on the device is started or terminated.
• Once a VM is running, DDMS retrieves the the VM's process
  ID (pid), via adb, and opens a connection to the VM's
  debugger, through the adb daemon (adbd) on the device.
• DDMS can now talk to the VM using a custom wire protocol.


                       Dept. of Computer Science and
                                 Engineering
Debugging Environment




                Dept. of Information Science and
                           Engineering
Running DDMS

• DDMS is integrated into Eclipse and is also shipped in the
  tools/ directory of the SDK. DDMS works with both the
  emulator and a connected device. If both are connected and
  running simultaneously, DDMS defaults to the emulator.

• From eclipse: Click Window -> Open Perspective -> Other…
  -> DDMS




                        Dept. of Information Science and
                                   Engineering
Logcat:


• The Android logging system provides a mechanism
  for collecting and viewing system debug output.
• Logs from various applications and portions of the
  system are collected in a series of circular buffers,
  which then can be viewed and filtered by the logcat
  command.
• You can use logcat from an ADB shell to view the
  log messages.


                    Dept. of Computer Science and
                              Engineering
Contents of Project Folder

Project name- Folder name
    1.1 src
    1.2 Android 2.1
    1.3 gen
    1.4 assets
    1.5 res
    1.6 AndroidManifest.xml


1. 1 src-> package folder-> java file (activity name)
          contains the java file, which contains the application code.
          This is something that the user can do, translated into program. It
          corresponds to a screen.

1.2 Android 2.1 -> this folder has all the default packages of the particular
    version of android,. i.e which contains all the class libraries needed for
android application
                                 Dept. of Computer Science and
                                           Engineering
1.3 gen -> contains r.java file, a compiler generated file that references all
the resources found in your project.

1.4 assets -> this folder contains all the assets used by your application, such
as HTML, text files, databases, etc.




                             Dept. of Information Science and
                                        Engineering
1.5 Res- This folder contains the images which are being used and
     UI layout.

       1. drawable: intended for drawing (HDPI, MDPI, LDPI)

       2. Layout: main.xml
              This contains the GUI design for the android
              application.
              GUI can be done by either writing the xml code , or by
              drag and drop option.

       3. Values: Strings.xml
                  Contains String and theme elements


                        Dept. of Computer Science and
                                  Engineering
1.6 AndroidManifest.xml

• This contains the following tabs Manifest, Application, Permission,
  Instrumentation and AndroidManifest.xml
• This contains the package name, android version name, SDK version.
• Any new activity is added, then it has to be declared over here.

• This defines the components of the application and their
  relationships. It gives the permissions to components of the
  application as to what it can do with users.

• The manifest file must declare all components in the application and
  should also declare all application requirements, such as the
  minimum version of Android required and any hardware
  configurations required
                          Dept. of Computer Science and
                                    Engineering
Lunch Break

  Dept. of Computer Science and
            Engineering

Mais conteúdo relacionado

Mais procurados

What's new in Android Pie
What's new in Android PieWhat's new in Android Pie
What's new in Android PieHassan Abid
 
Introduction to Android
Introduction to Android Introduction to Android
Introduction to Android Ranjith Kumar
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applicationsTOPS Technologies
 
AIDE - Android Integrated Development Environment presentation
AIDE - Android Integrated Development Environment presentationAIDE - Android Integrated Development Environment presentation
AIDE - Android Integrated Development Environment presentationBeMyApp
 
LDTT : A Low Level Driver Unit Testing Tool
LDTT : A Low Level Driver Unit Testing Tool LDTT : A Low Level Driver Unit Testing Tool
LDTT : A Low Level Driver Unit Testing Tool ijseajournal
 
Debugging with NetBeans IDE
Debugging with NetBeans IDEDebugging with NetBeans IDE
Debugging with NetBeans IDEAndreas Ruppen
 
Android before getting started
Android before getting startedAndroid before getting started
Android before getting startedAhsanul Karim
 
Android summer training report
Android summer training reportAndroid summer training report
Android summer training reportShashendra Singh
 
Creating your own Android library and documenting it with Javadocs
Creating your own Android library and documenting it with JavadocsCreating your own Android library and documenting it with Javadocs
Creating your own Android library and documenting it with JavadocsArnav Gupta
 
Android In A Nutshell
Android In A NutshellAndroid In A Nutshell
Android In A NutshellTed Chien
 
Android Development in a Nutshell
Android Development in a NutshellAndroid Development in a Nutshell
Android Development in a NutshellAleix Solé
 
Java programming(unit 1)
Java programming(unit 1)Java programming(unit 1)
Java programming(unit 1)SURBHI SAROHA
 
Inside .net framework
Inside .net frameworkInside .net framework
Inside .net frameworkFaisal Aziz
 
Core Java Slides
Core Java SlidesCore Java Slides
Core Java SlidesVinit Vyas
 
Java (Part 2) unit 1
Java (Part 2) unit 1Java (Part 2) unit 1
Java (Part 2) unit 1SURBHI SAROHA
 

Mais procurados (20)

What's new in Android Pie
What's new in Android PieWhat's new in Android Pie
What's new in Android Pie
 
Introduction to Android
Introduction to Android Introduction to Android
Introduction to Android
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applications
 
AIDE - Android Integrated Development Environment presentation
AIDE - Android Integrated Development Environment presentationAIDE - Android Integrated Development Environment presentation
AIDE - Android Integrated Development Environment presentation
 
Java ms harsha
Java ms harshaJava ms harsha
Java ms harsha
 
LDTT : A Low Level Driver Unit Testing Tool
LDTT : A Low Level Driver Unit Testing Tool LDTT : A Low Level Driver Unit Testing Tool
LDTT : A Low Level Driver Unit Testing Tool
 
report
reportreport
report
 
Andriod
Andriod Andriod
Andriod
 
Debugging with NetBeans IDE
Debugging with NetBeans IDEDebugging with NetBeans IDE
Debugging with NetBeans IDE
 
Android before getting started
Android before getting startedAndroid before getting started
Android before getting started
 
Android Platform Architecture
Android Platform ArchitectureAndroid Platform Architecture
Android Platform Architecture
 
Android summer training report
Android summer training reportAndroid summer training report
Android summer training report
 
Creating your own Android library and documenting it with Javadocs
Creating your own Android library and documenting it with JavadocsCreating your own Android library and documenting it with Javadocs
Creating your own Android library and documenting it with Javadocs
 
Android In A Nutshell
Android In A NutshellAndroid In A Nutshell
Android In A Nutshell
 
Android Development in a Nutshell
Android Development in a NutshellAndroid Development in a Nutshell
Android Development in a Nutshell
 
Java programming(unit 1)
Java programming(unit 1)Java programming(unit 1)
Java programming(unit 1)
 
01 03 - introduction to android
01  03 - introduction to android01  03 - introduction to android
01 03 - introduction to android
 
Inside .net framework
Inside .net frameworkInside .net framework
Inside .net framework
 
Core Java Slides
Core Java SlidesCore Java Slides
Core Java Slides
 
Java (Part 2) unit 1
Java (Part 2) unit 1Java (Part 2) unit 1
Java (Part 2) unit 1
 

Destaque (6)

Session 4 beccse
Session 4 beccseSession 4 beccse
Session 4 beccse
 
Rbi
RbiRbi
Rbi
 
Sebi regulation
Sebi regulationSebi regulation
Sebi regulation
 
Session 1 beccse
Session 1 beccseSession 1 beccse
Session 1 beccse
 
Session 3 beccse
Session 3 beccseSession 3 beccse
Session 3 beccse
 
Dialogspil i organisationer
Dialogspil i organisationerDialogspil i organisationer
Dialogspil i organisationer
 

Semelhante a Session 2 beccse

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
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions newJoe Jacob
 
3. Android Architecture.pptx
3. Android Architecture.pptx3. Android Architecture.pptx
3. Android Architecture.pptxHarshiniB11
 
Presentation for Android OS
Presentation for Android OSPresentation for Android OS
Presentation for Android OSMukul Cool
 
Overview of Adroid Architecture.pptx
Overview of Adroid Architecture.pptxOverview of Adroid Architecture.pptx
Overview of Adroid Architecture.pptxdebasish duarah
 
Android project architecture
Android project architectureAndroid project architecture
Android project architectureSourabh Sahu
 
Android app development by abhi android
Android app development by abhi androidAndroid app development by abhi android
Android app development by abhi androidsusijanny
 
Android app development
Android app developmentAndroid app development
Android app developmentAbhishek Saini
 
Android Architecture design programming with java
Android Architecture design programming with javaAndroid Architecture design programming with java
Android Architecture design programming with javassuser471dfb
 
Android development tutorial
Android development tutorialAndroid development tutorial
Android development tutorialMohammad Taj
 
Android application development
Android application developmentAndroid application development
Android application developmentslidesuren
 
Android For Java Developers
Android For Java DevelopersAndroid For Java Developers
Android For Java DevelopersMike Wolfson
 
Androidoverview 100405150711-phpapp01
Androidoverview 100405150711-phpapp01Androidoverview 100405150711-phpapp01
Androidoverview 100405150711-phpapp01Santosh Sh
 

Semelhante a Session 2 beccse (20)

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
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions new
 
3. Android Architecture.pptx
3. Android Architecture.pptx3. Android Architecture.pptx
3. Android Architecture.pptx
 
Android session-1-sajib
Android session-1-sajibAndroid session-1-sajib
Android session-1-sajib
 
Presentation for Android OS
Presentation for Android OSPresentation for Android OS
Presentation for Android OS
 
Notes Unit2.pptx
Notes Unit2.pptxNotes Unit2.pptx
Notes Unit2.pptx
 
Overview of Adroid Architecture.pptx
Overview of Adroid Architecture.pptxOverview of Adroid Architecture.pptx
Overview of Adroid Architecture.pptx
 
Android project architecture
Android project architectureAndroid project architecture
Android project architecture
 
Android app development by abhi android
Android app development by abhi androidAndroid app development by abhi android
Android app development by abhi android
 
Android app development
Android app developmentAndroid app development
Android app development
 
Android Architecture design programming with java
Android Architecture design programming with javaAndroid Architecture design programming with java
Android Architecture design programming with java
 
Android Programming
Android ProgrammingAndroid Programming
Android Programming
 
Android development tutorial
Android development tutorialAndroid development tutorial
Android development tutorial
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Intro to android (gdays)
Intro to android (gdays)Intro to android (gdays)
Intro to android (gdays)
 
01 02 - introduction - adroid stack
01  02 - introduction - adroid stack01  02 - introduction - adroid stack
01 02 - introduction - adroid stack
 
Android application development
Android application developmentAndroid application development
Android application development
 
Android For Java Developers
Android For Java DevelopersAndroid For Java Developers
Android For Java Developers
 
Androidoverview 100405150711-phpapp01
Androidoverview 100405150711-phpapp01Androidoverview 100405150711-phpapp01
Androidoverview 100405150711-phpapp01
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 

Último

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
 
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
 
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
 
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
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
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
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
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
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
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
 

Último (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
 
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)
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
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
 
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...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.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
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
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
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
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...
 

Session 2 beccse

  • 1. Getting Started with Android application development Dept. of Computer Science and Engineering
  • 2. What is required for Android application development? • Latest version of JDK • Android SDK (Windows/Linux) • IDE (Eclipse/Anything of your choice) • Android Eclipse Add-on (ADT) Dept. of Computer Science and Engineering
  • 3. JDK or Java JDK • Java SE development kit • Its an essential component, because every app are written using java language • so, you need to have JDK to compile and generate the java files at the run time • download latest version of JDK • why java only..??? Dept. of computer Science and Engineering
  • 4. Eclipse • It is the preferred IDE (integrated development environment) by the Android team. • Its multi language software development environment featuring an extensible plug-in system. • Download Eclipse of any version on your machine. • You can download it here www.eclipse.org • Six editions are available, for all types of OS. Dept. of Computer Science and Engineering
  • 5. Android SDK • Android SDK (software development kit) contains a debugger, libraries, an emulator, documentation, sample code, and tutorials. • Android SDK initially contains only the basic tools, It does not contain all android platforms and platforms tools. • Therefore, you must install the platform tools and atleast one version of the Android platform. •Download Android SDK zip file from: http://developer.android.com/sdk Dept. of Computer Science and Engineering
  • 6. Android emulator • Android SDK Includes a mobile device emulator. • Its virtual mobile device that runs on your computer, The emulator lets you develop & test android apps without using a physical device. • So, you have to create AVDs (Android Virtual device), these are emulator instances. • you can create as many AVDs you want in order to test your app with different configurations. Dept. of Information Science and Engineering
  • 7. ADT (android development tools) • Its an extension for eclipse IDE. • Its a custom plug-in offered by android. • Designed to give powerful, integrated environment in which you can build android apps. • It extends the capabilities for eclipse to let you quickly set up Android projects. Dept. of Information Science and Engineering
  • 8. Configuring Android SDK into Eclipse Dept. of Computer Science and Engineering
  • 9. Dept. of Computer Science and Engineering
  • 10. Dept. of Computer Science and Engineering
  • 11. Dept. of Computer Science and Engineering
  • 12. Dept. of Computer Science and Engineering
  • 13. Dept. of Computer Science and Engineering
  • 14. Dept. of Computer Science and Engineering
  • 15. Dept. of Computer Science and Engineering
  • 16. Dept. of Computer Science and Engineering
  • 17. Dept. of Computer Science and Engineering
  • 18. Dept. of Computer Science and Engineering
  • 19. DDMS • Android ships with a debugging tool called the Dalvik Debug Monitor Server (DDMS). • When DDMS starts, it connects to android debug bridge (this lets us communicate with an emulator instance or connected android device). • When a device is connected, a VM monitoring service is created between adb and DDMS, which notifies DDMS when a VM on the device is started or terminated. • Once a VM is running, DDMS retrieves the the VM's process ID (pid), via adb, and opens a connection to the VM's debugger, through the adb daemon (adbd) on the device. • DDMS can now talk to the VM using a custom wire protocol. Dept. of Computer Science and Engineering
  • 20. Debugging Environment Dept. of Information Science and Engineering
  • 21. Running DDMS • DDMS is integrated into Eclipse and is also shipped in the tools/ directory of the SDK. DDMS works with both the emulator and a connected device. If both are connected and running simultaneously, DDMS defaults to the emulator. • From eclipse: Click Window -> Open Perspective -> Other… -> DDMS Dept. of Information Science and Engineering
  • 22. Logcat: • The Android logging system provides a mechanism for collecting and viewing system debug output. • Logs from various applications and portions of the system are collected in a series of circular buffers, which then can be viewed and filtered by the logcat command. • You can use logcat from an ADB shell to view the log messages. Dept. of Computer Science and Engineering
  • 23. Contents of Project Folder Project name- Folder name 1.1 src 1.2 Android 2.1 1.3 gen 1.4 assets 1.5 res 1.6 AndroidManifest.xml 1. 1 src-> package folder-> java file (activity name) contains the java file, which contains the application code. This is something that the user can do, translated into program. It corresponds to a screen. 1.2 Android 2.1 -> this folder has all the default packages of the particular version of android,. i.e which contains all the class libraries needed for android application Dept. of Computer Science and Engineering
  • 24. 1.3 gen -> contains r.java file, a compiler generated file that references all the resources found in your project. 1.4 assets -> this folder contains all the assets used by your application, such as HTML, text files, databases, etc. Dept. of Information Science and Engineering
  • 25. 1.5 Res- This folder contains the images which are being used and UI layout. 1. drawable: intended for drawing (HDPI, MDPI, LDPI) 2. Layout: main.xml This contains the GUI design for the android application. GUI can be done by either writing the xml code , or by drag and drop option. 3. Values: Strings.xml Contains String and theme elements Dept. of Computer Science and Engineering
  • 26. 1.6 AndroidManifest.xml • This contains the following tabs Manifest, Application, Permission, Instrumentation and AndroidManifest.xml • This contains the package name, android version name, SDK version. • Any new activity is added, then it has to be declared over here. • This defines the components of the application and their relationships. It gives the permissions to components of the application as to what it can do with users. • The manifest file must declare all components in the application and should also declare all application requirements, such as the minimum version of Android required and any hardware configurations required Dept. of Computer Science and Engineering
  • 27. Lunch Break Dept. of Computer Science and Engineering