SlideShare ist ein Scribd-Unternehmen logo
1 von 15
Android Training

 By: Adham Enaya
  twitter : @adhamenaya
     fb.: adham.enaya
    a.it@hotmail.com
Session 2: Prepare Android
Development Environment
    Sunday, March 27, 2012
Downloading development
                       environment
• Eclipse IDE(Google-supported)
      – Download: http://www.eclipse.org/downloads
• Android SDK
      –   SDK Manager
      –   Android Platform
      –   SDK samples …etc.
      –   Emulator and debugger
      –   Download: http://developer.android.com/sdk/index.html
• Android Development Tools(ADT)
      – Install plug-in: http://dl-ssl.google.com/android/eclipse

                         Open source Training (Android Course)
March 29, 2012
                                    Adham Enaya
Configuring the development
                         environment
1. Installing the ADT plug-in:
     – Go to Help menu in eclipse -> Choose Install new
       software -> Add -> Set the name and location of
       the plug-in .
2. Go to Window -> Preferences.
3. Select Android -> Set the location of android
   SDK folder.


                         Open source Training (Android Course)
March 29, 2012
                                    Adham Enaya
Android SDK & AVD Manager
• Helps to:
      – Browse the installed packages.
      – The available packages to install.
      – To create Android virtual devices
      – It is connected directly with Google servers to
        install packages from them.
      – You can download :
             • Android platforms, documentation, samples tools..
             • Third party Add-ons, i.e. Google APIs to use Google
               Maps in the application.

                            Open source Training (Android Course)
March 29, 2012
                                       Adham Enaya
Creating Android Virtual Device (AVD)
• AVD: is and emulator instance modeling the
  actual device.
1. Go to window -> Android SDK and AVD
   Manger.
2. Select Virtual Devices-> enter the AVD
   properties:
     1. Device name.
     2. Target platform ( i.e. Android 2.3- level 9).
     3. You can choose a specific hardware(i.e.

                      Open source Training (Android Course)
March 29, 2012
                                 Adham Enaya
Create Hello World Application (1)
• In Eclipse -> New -> Project -> Android
  Project.
• Enter Project Name.
  – Choose Create New Project in workspace.
• Choose the build target ( The android
  platform you app runs on !)
• Click Next.
Create Hello World Application (2)
• Enter Application info:
  – Application Name ( User-friendly name).
  – Package Name (At least 2 identifiers i.e
    adham.android).
  – Check create Activity to create a UI for the
    application.
  – Set the Minimum SDK that you app will run on.
  – Finish !
Project Anatomy (1)
• src : a folder contains on the java source code
  for the project.
• R.java in gen folder:
  – R.java is eclipse generated java file.
  – We will not modify it anytime!
  – Contains memory references for all project
    resources i.e. :
     • GUI objects, layout, strings values.
  – Helps in accessing the res objects easily.
Project Anatomy (2)
• Android 2.3: jar files contains the core android
  libraries.
• assets: contains the resources for the
  application i.e. database or external file.
• bin: contains any external libraries.
Project Anatomy (3)
• res:
  – drawable : contains the images for the application
    i.e. application icon.
  – drawable-hdpi : contains images for high
    definition screens.
  – drawable-ldpi : contains images for low definition
    screens.
  – drawable-mdpi : contains images for medium
    definition screens.
Project Anatomy (4)
• layout: contains the xml- definition for the
  GUI layout and it’s components.
• values : contains the xml files the represents
  the constants values for the application i.e.
  strings.xml to store all constant strings.
Project Anatomy (4)
• AndroidManifest.xml: contains all information
  about the application.
  – The package name of the application.
  – Application version (<major>.<minor>.<point> )
  – Application icon.
  – Application name from strimgs.xml.
  – android:minSdkVersion: specifies the minimum
    version of the OS on which the application will
    run.
Project Anatomy (5)
– Definition of all activities in the application.
   • The action for the intent filter is named
     android.intent.action.MAIN to indicate that this
     activity serves as the entry point for the
     application.
   • The category for the intent-filter is named
     android.intent.category.LAUNCHER to indicate
     that the application can be launched from the
     device’s Launcher icon.
Any Question ?

                           Best, 




                   Open source Training (Android Course)
March 29, 2012
                              Adham Enaya

Weitere ähnliche Inhalte

Was ist angesagt?

Day1 before getting_started
Day1 before getting_startedDay1 before getting_started
Day1 before getting_startedAhsanul Karim
 
Intro To Android App Development
Intro To Android App DevelopmentIntro To Android App Development
Intro To Android App DevelopmentMike Kvintus
 
Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android DevelopmentCan Elmas
 
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
 
9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)Peter Mburu
 
Android application
Android applicationAndroid application
Android applicationsabihanoor
 
Android 101 - Introduction to Android Development
Android 101 - Introduction to Android DevelopmentAndroid 101 - Introduction to Android Development
Android 101 - Introduction to Android DevelopmentAndy Scherzinger
 
Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android DevelopmentSander Alberink
 
Android Workshop Day 1 Part 2
Android Workshop Day 1 Part 2Android Workshop Day 1 Part 2
Android Workshop Day 1 Part 2Ahsanul Karim
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_authlzongren
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android ApplicationArcadian Learning
 
Android app development basics
Android app development basicsAndroid app development basics
Android app development basicsAnton Narusberg
 
Luis cataldi-siggraph 2015
Luis cataldi-siggraph 2015Luis cataldi-siggraph 2015
Luis cataldi-siggraph 2015Luis Cataldi
 
Installing And Configuring Java Me Tools
Installing And Configuring Java Me ToolsInstalling And Configuring Java Me Tools
Installing And Configuring Java Me ToolsJussi Pohjolainen
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to androidShrijan Tiwari
 
STUDY OF AN APPLICATION DEVELOPMENT ENVIRONMENT BASED ON UNITY GAME ENGINE
STUDY OF AN APPLICATION DEVELOPMENT ENVIRONMENT BASED ON UNITY GAME ENGINESTUDY OF AN APPLICATION DEVELOPMENT ENVIRONMENT BASED ON UNITY GAME ENGINE
STUDY OF AN APPLICATION DEVELOPMENT ENVIRONMENT BASED ON UNITY GAME ENGINEAIRCC Publishing Corporation
 

Was ist angesagt? (20)

Android App development III
Android App development IIIAndroid App development III
Android App development III
 
Day1 before getting_started
Day1 before getting_startedDay1 before getting_started
Day1 before getting_started
 
Intro To Android App Development
Intro To Android App DevelopmentIntro To Android App Development
Intro To Android App Development
 
Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android Development
 
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
 
9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)
 
Android application
Android applicationAndroid application
Android application
 
Android 101 - Introduction to Android Development
Android 101 - Introduction to Android DevelopmentAndroid 101 - Introduction to Android Development
Android 101 - Introduction to Android Development
 
Android User Interface
Android User InterfaceAndroid User Interface
Android User Interface
 
Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android Development
 
Android Workshop Day 1 Part 2
Android Workshop Day 1 Part 2Android Workshop Day 1 Part 2
Android Workshop Day 1 Part 2
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android Application
 
Android app development basics
Android app development basicsAndroid app development basics
Android app development basics
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
 
Luis cataldi-siggraph 2015
Luis cataldi-siggraph 2015Luis cataldi-siggraph 2015
Luis cataldi-siggraph 2015
 
Installing And Configuring Java Me Tools
Installing And Configuring Java Me ToolsInstalling And Configuring Java Me Tools
Installing And Configuring Java Me Tools
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Android Overview
Android OverviewAndroid Overview
Android Overview
 
STUDY OF AN APPLICATION DEVELOPMENT ENVIRONMENT BASED ON UNITY GAME ENGINE
STUDY OF AN APPLICATION DEVELOPMENT ENVIRONMENT BASED ON UNITY GAME ENGINESTUDY OF AN APPLICATION DEVELOPMENT ENVIRONMENT BASED ON UNITY GAME ENGINE
STUDY OF AN APPLICATION DEVELOPMENT ENVIRONMENT BASED ON UNITY GAME ENGINE
 

Ähnlich wie Session 2 prepare android development environment

Session 1 android overview
Session 1   android overviewSession 1   android overview
Session 1 android overviewAdham Enaya
 
Android chapter02-setup1-sdk
Android chapter02-setup1-sdkAndroid chapter02-setup1-sdk
Android chapter02-setup1-sdkTran Le Hoan
 
Android application development
Android application developmentAndroid application development
Android application developmentslidesuren
 
Day: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application DevelopmentDay: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application DevelopmentAhsanul Karim
 
Android Workshop: Day 1 Part 3
Android Workshop: Day 1 Part 3Android Workshop: Day 1 Part 3
Android Workshop: Day 1 Part 3Ahsanul Karim
 
Module-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptxModule-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptxlancelotlaytan1996
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applicationsTOPS Technologies
 
Android app developers in bangalore- thorsignia
Android app developers in bangalore- thorsigniaAndroid app developers in bangalore- thorsignia
Android app developers in bangalore- thorsigniacharan Teja
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorialmaster760
 
Android tutorial ppt
Android tutorial pptAndroid tutorial ppt
Android tutorial pptRehna Renu
 
01 04 - android set up and creating an android project
01  04 - android set up and creating an android project01  04 - android set up and creating an android project
01 04 - android set up and creating an android projectSiva Kumar reddy Vasipally
 
2.Android Platform_Theory.pptx
2.Android Platform_Theory.pptx2.Android Platform_Theory.pptx
2.Android Platform_Theory.pptxNizarnizarsurche
 
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 For Beginners.
Introduction To Android For Beginners.Introduction To Android For Beginners.
Introduction To Android For Beginners.Sandeep Londhe
 

Ähnlich wie Session 2 prepare android development environment (20)

Session 1 android overview
Session 1   android overviewSession 1   android overview
Session 1 android overview
 
Android chapter02-setup1-sdk
Android chapter02-setup1-sdkAndroid chapter02-setup1-sdk
Android chapter02-setup1-sdk
 
Android application development
Android application developmentAndroid application development
Android application development
 
Session 2 beccse
Session 2 beccseSession 2 beccse
Session 2 beccse
 
Day: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application DevelopmentDay: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application Development
 
Android Workshop: Day 1 Part 3
Android Workshop: Day 1 Part 3Android Workshop: Day 1 Part 3
Android Workshop: Day 1 Part 3
 
Module-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptxModule-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptx
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applications
 
Notes Unit2.pptx
Notes Unit2.pptxNotes Unit2.pptx
Notes Unit2.pptx
 
Android app developers in bangalore- thorsignia
Android app developers in bangalore- thorsigniaAndroid app developers in bangalore- thorsignia
Android app developers in bangalore- thorsignia
 
ANDROID PPT 1.pdf
ANDROID PPT 1.pdfANDROID PPT 1.pdf
ANDROID PPT 1.pdf
 
Android
Android Android
Android
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
 
Android tutorial ppt
Android tutorial pptAndroid tutorial ppt
Android tutorial ppt
 
Android session 1
Android session 1Android session 1
Android session 1
 
01 04 - android set up and creating an android project
01  04 - android set up and creating an android project01  04 - android set up and creating an android project
01 04 - android set up and creating an android project
 
2.Android Platform_Theory.pptx
2.Android Platform_Theory.pptx2.Android Platform_Theory.pptx
2.Android Platform_Theory.pptx
 
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 For Beginners.
Introduction To Android For Beginners.Introduction To Android For Beginners.
Introduction To Android For Beginners.
 

Kürzlich hochgeladen

Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
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
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
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
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
"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
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 

Kürzlich hochgeladen (20)

Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
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
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
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
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
"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
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 

Session 2 prepare android development environment

  • 1. Android Training By: Adham Enaya twitter : @adhamenaya fb.: adham.enaya a.it@hotmail.com
  • 2. Session 2: Prepare Android Development Environment Sunday, March 27, 2012
  • 3. Downloading development environment • Eclipse IDE(Google-supported) – Download: http://www.eclipse.org/downloads • Android SDK – SDK Manager – Android Platform – SDK samples …etc. – Emulator and debugger – Download: http://developer.android.com/sdk/index.html • Android Development Tools(ADT) – Install plug-in: http://dl-ssl.google.com/android/eclipse Open source Training (Android Course) March 29, 2012 Adham Enaya
  • 4. Configuring the development environment 1. Installing the ADT plug-in: – Go to Help menu in eclipse -> Choose Install new software -> Add -> Set the name and location of the plug-in . 2. Go to Window -> Preferences. 3. Select Android -> Set the location of android SDK folder. Open source Training (Android Course) March 29, 2012 Adham Enaya
  • 5. Android SDK & AVD Manager • Helps to: – Browse the installed packages. – The available packages to install. – To create Android virtual devices – It is connected directly with Google servers to install packages from them. – You can download : • Android platforms, documentation, samples tools.. • Third party Add-ons, i.e. Google APIs to use Google Maps in the application. Open source Training (Android Course) March 29, 2012 Adham Enaya
  • 6. Creating Android Virtual Device (AVD) • AVD: is and emulator instance modeling the actual device. 1. Go to window -> Android SDK and AVD Manger. 2. Select Virtual Devices-> enter the AVD properties: 1. Device name. 2. Target platform ( i.e. Android 2.3- level 9). 3. You can choose a specific hardware(i.e. Open source Training (Android Course) March 29, 2012 Adham Enaya
  • 7. Create Hello World Application (1) • In Eclipse -> New -> Project -> Android Project. • Enter Project Name. – Choose Create New Project in workspace. • Choose the build target ( The android platform you app runs on !) • Click Next.
  • 8. Create Hello World Application (2) • Enter Application info: – Application Name ( User-friendly name). – Package Name (At least 2 identifiers i.e adham.android). – Check create Activity to create a UI for the application. – Set the Minimum SDK that you app will run on. – Finish !
  • 9. Project Anatomy (1) • src : a folder contains on the java source code for the project. • R.java in gen folder: – R.java is eclipse generated java file. – We will not modify it anytime! – Contains memory references for all project resources i.e. : • GUI objects, layout, strings values. – Helps in accessing the res objects easily.
  • 10. Project Anatomy (2) • Android 2.3: jar files contains the core android libraries. • assets: contains the resources for the application i.e. database or external file. • bin: contains any external libraries.
  • 11. Project Anatomy (3) • res: – drawable : contains the images for the application i.e. application icon. – drawable-hdpi : contains images for high definition screens. – drawable-ldpi : contains images for low definition screens. – drawable-mdpi : contains images for medium definition screens.
  • 12. Project Anatomy (4) • layout: contains the xml- definition for the GUI layout and it’s components. • values : contains the xml files the represents the constants values for the application i.e. strings.xml to store all constant strings.
  • 13. Project Anatomy (4) • AndroidManifest.xml: contains all information about the application. – The package name of the application. – Application version (<major>.<minor>.<point> ) – Application icon. – Application name from strimgs.xml. – android:minSdkVersion: specifies the minimum version of the OS on which the application will run.
  • 14. Project Anatomy (5) – Definition of all activities in the application. • The action for the intent filter is named android.intent.action.MAIN to indicate that this activity serves as the entry point for the application. • The category for the intent-filter is named android.intent.category.LAUNCHER to indicate that the application can be launched from the device’s Launcher icon.
  • 15. Any Question ? Best,  Open source Training (Android Course) March 29, 2012 Adham Enaya