SlideShare a Scribd company logo
Android Software Development – The First Few HoursCoast Nerds – 15 March 2011Image: www.android.com
What am I going to talk about?What is Android all about?
Why did I choose this platform?
What do you need to get started developing Android Applications?
How to create your first App?
Where to Next?
Things to AvoidWhat is Android all about? Image: www.metalmickey.com
Android is an Open Source “Software Stack” targeted at mobile devices.
Built on modified version of the Linux Kernel
Android Inc. founded in 2003. Purchased by Google in 2005 as wholly owned subsidiary
The Open Handset Alliance (est. 2007) collaborated on development, release and on-going maintenance/development.
Ref http://en.wikipedia.org/wiki/Android_(operating_system)Android SDK first released to developers in November 2007
First Android Mobile Phone: T-Mobile G1 (or HTC Dream) Released October 2008
Android consists of Java Applications running on Java core libraries running on a Dalvic Virtual Machine. Some core libraries also written in C/++
Consists of 12 million lines of code including 3 million lines of XML, 2.8 million lines of C, 2.1 million lines of Java, and 1.75 million lines of C++.Q2 2009 Android had 2.8% share of Worldwide handset shipments
Grew to 33% by Q4 2010
In February 2011 Android has reached 350,000 activations per dayImage:http://t3.gstatic.com/images?q=tbn:ANd9GcSGt5iAisqb6Do_Fj6PgF6xtvWjghsrEVmdwi-mRXmMDv8pCCCUImage: http://t1.gstatic.com/images?q=tbn:ANd9GcQyIOqpf4sm4__JsRfCE8bIoIh4ayh16VJkxHZ66tyFOF1cba_ZiA
Why did I choose this Platform?Image: www.popsiculturereviews.blogspot.com
The Alternatives
Apple iPhone
Windows Phone
Symbian
Research In Motion (RIM/Blackberry)
HP WebOS (Palm)
AndroidCanalysis – Worldwide Q4 2010
Apple iPhoneImage: http://www.esarcasm.com
Windows Phone 7Image: windowsphonejunky.com
SymbianImage: www.toptechviews.com
AndroidWhat do you need to get started developing Android Applications?Image: www.conspiracygrimoire.com
Install Java Development Kit (JDK) http://www.oracle.com/technetwork/java/javase/downloads/index.htmlInstall Eclipse for Java EE Developers* http://www.eclipse.org/downloads/Install the Android SDK http://developer.android.com/sdk/index.htmlWINDOWS: Upgrade the Path Environment Variable to include the Android Tools directory.* Eclipse is the most common IDE for Android Development but there are others.  See developer.android.com/guide/developing/other-ide.html
Install and configure the Android Plug-in for Eclipse (ADT)Start Eclipse, then select Help > Install New Software....Click Add, in the top-right corner.In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:  https://dl-ssl.google.com/android/eclipse/Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).Click OK.In the Available Software dialog, select the checkbox next to Developer Tools and click Next.In the next window, you'll see a list of the tools to be downloaded. Click Next.  NOTE: Selecting all tools will take some time to download.Read and accept the license agreements, then click Finish.When the installation completes, restart Eclipse.More Details Here http://developer.android.com/sdk/eclipse-adt.html
Test InstallationIn Eclipse choose File -> New Project from the menu.You should see an option to create an Android Project and an Android Test Project
The SDK / AVD ManagerThe Android SDK is componentised allowing you to customise your development environment for your target platformThe SDK Manager allows you to manage components for your specific requirements.  It is located in the sdk folder (installed at step 3) android-sdk-windows\SDK Manager.exeYou can also access the SDK Manager from within Eclipse by clicking on the toolbar icon as shown belowAVD = Android Virtual Device
SDK Manager showing Available packages to download
SDK Manager showing installed packages
Android SDK Supported Operating SystemsWindows XP (32-bit), Vista (32- or 64-bit), or Windows 7 (32- or 64-bit)Mac OS X 10.5.8 or later (x86 only)Linux (tested on Ubuntu Linux, Lucid Lynx)GNU C Library (glibc) 2.7 or later is required.On Ubuntu Linux, version 8.04 or later is required.64-bit distributions must be capable of running 32-bit applications. For information about how to add support for 32-bit applications, see the Ubuntu Linux installation notes.
How to create your first App.  Hello World!Image:  www.jeffbots.com
Create the AppFrom the File Menu in Eclipse choose Create New ProjectThe New Project Dialog will open.  Choose Android Project and click Next
Enter Project NameChoose a Target Platform (if the list of platforms are blank you will need to use the SDK Manager to install some for your PC).Enter PropertiesApplication NamePackage NameEnsure “Create Activity” is checked and enter the default Activity Name.Enter the Min SDK VersionClick Next
The next screen asks about creating a test project for your application.  At this stage ignore this option and click next (… sorry to the TDD faithful!)Click FinishAt this point your Hello World Application is done.  By default a simple “Hello World” app is created.
Explore the Application ManifestFrom the Package Explorer, expand out the project folder for you app.  Application Manifest is at the root level.  Double click on it to open the dialog.The Application Manifest is the main configuration point for you app.  Here you can control versioning, register activities and security (among other things).
View the Layout ResourceFrom the Package Explorer, expand out the project folder for you app.  Then expand out res=>layout, then double click on main.xml.Layout resources define the layout of the various screens in your app.  A default main.xml layout is created but you can create others.You can edit the layout using the designer or switch to xml view.
ResourcesIf you view the properties for the “Hello World” text box shown on the layout you will notice that the text is not hardcoded and in fact points to a string resource.You can view and edit the string resource to change the value of the text displayed.In the Package Explorer navigate to res=>values=>strings.xmlYou can view the string resources in a dialog view or in xml.  You will also notice that a resource has been created for the app name
Debug & Run Your App
Before you can run your app for the first time you need to create a debug configuration and also an Android Virtual Device (AVD).  An AVD is just a virtual target platform that can be used in the emulator. AVDs can be shared between apps so this may be a one-off process until you start needing more varied AVDs to work with.  Create an AVDLaunch the SDK/AVD Manager (discussed in an earlier slide).Click on the New buttonFill out the details as shown (creating an Android 2.1 target)Click “Create AVD”It will take a couple of minutes to create the AVD.  Your AVD should be shown in the list on completion.
Create a Debug ConfigurationFrom the Run menu choose Debug Configurations…Choose “Android Application” from the list and then click on the New button at the top of the screen.Give your Debug Configuration a name and click Browse to select your app’s project
Create a Debug Configuration cont…Click on the Target tabChoose Automatic Choose an AVD (you should see the AVD you created earlier in the list)Click Apply

More Related Content

What's hot (20)

PDF
I phone first app ducat
Pragati Singh
 
PPT
Getting started with android studio
Reham Maher El-Safarini
 
PDF
Mobile App Testing ScanAgile 2012
Daniel Knott
 
PPT
Android best training-in-mumbai
vibrantuser
 
PDF
Android development module
Keviindran Ramachandran
 
PPTX
Android chapter02-setup1-sdk
Tran Le Hoan
 
PPTX
android studio
Lahore Garrison University
 
PPTX
Android the first app - hello world - copy
Deepa Rani
 
PPT
Google Android
Michael Angelo Rivera
 
DOCX
Android wear notes
Aravindharamanan S
 
PPT
Android Applications Development
Michael Angelo Rivera
 
PPTX
Android studio installation
PoojaBele1
 
PDF
Training android
University of Technology
 
PPT
Day: 2 Environment Setup for Android Application Development
Ahsanul Karim
 
PPT
Day 4: Android: UI Widgets
Ahsanul Karim
 
PPT
Day 3: Getting Active Through Activities
Ahsanul Karim
 
PDF
Swift
Larry Ball
 
PDF
Testing on Android
Diego Torres Milano
 
PDF
Supplement J Eclipse
nga
 
PDF
Ios actions and outlets
veeracynixit
 
I phone first app ducat
Pragati Singh
 
Getting started with android studio
Reham Maher El-Safarini
 
Mobile App Testing ScanAgile 2012
Daniel Knott
 
Android best training-in-mumbai
vibrantuser
 
Android development module
Keviindran Ramachandran
 
Android chapter02-setup1-sdk
Tran Le Hoan
 
Android the first app - hello world - copy
Deepa Rani
 
Google Android
Michael Angelo Rivera
 
Android wear notes
Aravindharamanan S
 
Android Applications Development
Michael Angelo Rivera
 
Android studio installation
PoojaBele1
 
Training android
University of Technology
 
Day: 2 Environment Setup for Android Application Development
Ahsanul Karim
 
Day 4: Android: UI Widgets
Ahsanul Karim
 
Day 3: Getting Active Through Activities
Ahsanul Karim
 
Swift
Larry Ball
 
Testing on Android
Diego Torres Milano
 
Supplement J Eclipse
nga
 
Ios actions and outlets
veeracynixit
 

Similar to Android software development – the first few hours (20)

PPT
Android Application Development Using Java
amaankhan
 
PPTX
Android
BVP GTUG
 
PPTX
Android
Nirav Ranpara
 
PPTX
Android Basic
Nirav Ranpara
 
PPT
Getting started with android dev and test perspective
Gunjan Kumar
 
PDF
[CCDD2013w] Coming to grips with deving for android by 蔡亦恒
CCDD_DDLab
 
PPTX
Android course (lecture2)
Amira Elsayed Ismail
 
PPTX
Getting started with android programming
PERKYTORIALS
 
PPT
Synapseindia android apps application
Synapseindiappsdevelopment
 
PPTX
02 getting start with android app development
Sokngim Sa
 
PPTX
Android deep dive
AnuSahniNCI
 
PPT
Industrial Training in Android Application
Arcadian Learning
 
PPTX
Android hello world application tutorial #1
Yasmine Sherif EL-Adly
 
PPT
Synapseindia android apps intro to android development
Synapseindiappsdevelopment
 
PPT
PPT Companion to Android
Dharani Kumar Madduri
 
PPT
Android - Android Application Configuration
Vibrant Technologies & Computers
 
PPTX
Android development session
Esraa Ibrahim
 
PDF
Android Overview
Jussi Pohjolainen
 
PPTX
Android app upload
Savitribai Phule Pune University
 
PPTX
02.1 - Getting Started with Android
Oum Saokosal
 
Android Application Development Using Java
amaankhan
 
Android
BVP GTUG
 
Android
Nirav Ranpara
 
Android Basic
Nirav Ranpara
 
Getting started with android dev and test perspective
Gunjan Kumar
 
[CCDD2013w] Coming to grips with deving for android by 蔡亦恒
CCDD_DDLab
 
Android course (lecture2)
Amira Elsayed Ismail
 
Getting started with android programming
PERKYTORIALS
 
Synapseindia android apps application
Synapseindiappsdevelopment
 
02 getting start with android app development
Sokngim Sa
 
Android deep dive
AnuSahniNCI
 
Industrial Training in Android Application
Arcadian Learning
 
Android hello world application tutorial #1
Yasmine Sherif EL-Adly
 
Synapseindia android apps intro to android development
Synapseindiappsdevelopment
 
PPT Companion to Android
Dharani Kumar Madduri
 
Android - Android Application Configuration
Vibrant Technologies & Computers
 
Android development session
Esraa Ibrahim
 
Android Overview
Jussi Pohjolainen
 
02.1 - Getting Started with Android
Oum Saokosal
 
Ad

Recently uploaded (20)

PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Python basic programing language for automation
DanialHabibi2
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Ad

Android software development – the first few hours

  • 1. Android Software Development – The First Few HoursCoast Nerds – 15 March 2011Image: www.android.com
  • 2. What am I going to talk about?What is Android all about?
  • 3. Why did I choose this platform?
  • 4. What do you need to get started developing Android Applications?
  • 5. How to create your first App?
  • 7. Things to AvoidWhat is Android all about? Image: www.metalmickey.com
  • 8. Android is an Open Source “Software Stack” targeted at mobile devices.
  • 9. Built on modified version of the Linux Kernel
  • 10. Android Inc. founded in 2003. Purchased by Google in 2005 as wholly owned subsidiary
  • 11. The Open Handset Alliance (est. 2007) collaborated on development, release and on-going maintenance/development.
  • 13. First Android Mobile Phone: T-Mobile G1 (or HTC Dream) Released October 2008
  • 14. Android consists of Java Applications running on Java core libraries running on a Dalvic Virtual Machine. Some core libraries also written in C/++
  • 15. Consists of 12 million lines of code including 3 million lines of XML, 2.8 million lines of C, 2.1 million lines of Java, and 1.75 million lines of C++.Q2 2009 Android had 2.8% share of Worldwide handset shipments
  • 16. Grew to 33% by Q4 2010
  • 17. In February 2011 Android has reached 350,000 activations per dayImage:http://t3.gstatic.com/images?q=tbn:ANd9GcSGt5iAisqb6Do_Fj6PgF6xtvWjghsrEVmdwi-mRXmMDv8pCCCUImage: http://t1.gstatic.com/images?q=tbn:ANd9GcQyIOqpf4sm4__JsRfCE8bIoIh4ayh16VJkxHZ66tyFOF1cba_ZiA
  • 18. Why did I choose this Platform?Image: www.popsiculturereviews.blogspot.com
  • 23. Research In Motion (RIM/Blackberry)
  • 27. Windows Phone 7Image: windowsphonejunky.com
  • 29. AndroidWhat do you need to get started developing Android Applications?Image: www.conspiracygrimoire.com
  • 30. Install Java Development Kit (JDK) http://www.oracle.com/technetwork/java/javase/downloads/index.htmlInstall Eclipse for Java EE Developers* http://www.eclipse.org/downloads/Install the Android SDK http://developer.android.com/sdk/index.htmlWINDOWS: Upgrade the Path Environment Variable to include the Android Tools directory.* Eclipse is the most common IDE for Android Development but there are others. See developer.android.com/guide/developing/other-ide.html
  • 31. Install and configure the Android Plug-in for Eclipse (ADT)Start Eclipse, then select Help > Install New Software....Click Add, in the top-right corner.In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location: https://dl-ssl.google.com/android/eclipse/Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).Click OK.In the Available Software dialog, select the checkbox next to Developer Tools and click Next.In the next window, you'll see a list of the tools to be downloaded. Click Next. NOTE: Selecting all tools will take some time to download.Read and accept the license agreements, then click Finish.When the installation completes, restart Eclipse.More Details Here http://developer.android.com/sdk/eclipse-adt.html
  • 32. Test InstallationIn Eclipse choose File -> New Project from the menu.You should see an option to create an Android Project and an Android Test Project
  • 33. The SDK / AVD ManagerThe Android SDK is componentised allowing you to customise your development environment for your target platformThe SDK Manager allows you to manage components for your specific requirements. It is located in the sdk folder (installed at step 3) android-sdk-windows\SDK Manager.exeYou can also access the SDK Manager from within Eclipse by clicking on the toolbar icon as shown belowAVD = Android Virtual Device
  • 34. SDK Manager showing Available packages to download
  • 35. SDK Manager showing installed packages
  • 36. Android SDK Supported Operating SystemsWindows XP (32-bit), Vista (32- or 64-bit), or Windows 7 (32- or 64-bit)Mac OS X 10.5.8 or later (x86 only)Linux (tested on Ubuntu Linux, Lucid Lynx)GNU C Library (glibc) 2.7 or later is required.On Ubuntu Linux, version 8.04 or later is required.64-bit distributions must be capable of running 32-bit applications. For information about how to add support for 32-bit applications, see the Ubuntu Linux installation notes.
  • 37. How to create your first App. Hello World!Image: www.jeffbots.com
  • 38. Create the AppFrom the File Menu in Eclipse choose Create New ProjectThe New Project Dialog will open. Choose Android Project and click Next
  • 39. Enter Project NameChoose a Target Platform (if the list of platforms are blank you will need to use the SDK Manager to install some for your PC).Enter PropertiesApplication NamePackage NameEnsure “Create Activity” is checked and enter the default Activity Name.Enter the Min SDK VersionClick Next
  • 40. The next screen asks about creating a test project for your application. At this stage ignore this option and click next (… sorry to the TDD faithful!)Click FinishAt this point your Hello World Application is done. By default a simple “Hello World” app is created.
  • 41. Explore the Application ManifestFrom the Package Explorer, expand out the project folder for you app. Application Manifest is at the root level. Double click on it to open the dialog.The Application Manifest is the main configuration point for you app. Here you can control versioning, register activities and security (among other things).
  • 42. View the Layout ResourceFrom the Package Explorer, expand out the project folder for you app. Then expand out res=>layout, then double click on main.xml.Layout resources define the layout of the various screens in your app. A default main.xml layout is created but you can create others.You can edit the layout using the designer or switch to xml view.
  • 43. ResourcesIf you view the properties for the “Hello World” text box shown on the layout you will notice that the text is not hardcoded and in fact points to a string resource.You can view and edit the string resource to change the value of the text displayed.In the Package Explorer navigate to res=>values=>strings.xmlYou can view the string resources in a dialog view or in xml. You will also notice that a resource has been created for the app name
  • 44. Debug & Run Your App
  • 45. Before you can run your app for the first time you need to create a debug configuration and also an Android Virtual Device (AVD). An AVD is just a virtual target platform that can be used in the emulator. AVDs can be shared between apps so this may be a one-off process until you start needing more varied AVDs to work with. Create an AVDLaunch the SDK/AVD Manager (discussed in an earlier slide).Click on the New buttonFill out the details as shown (creating an Android 2.1 target)Click “Create AVD”It will take a couple of minutes to create the AVD. Your AVD should be shown in the list on completion.
  • 46. Create a Debug ConfigurationFrom the Run menu choose Debug Configurations…Choose “Android Application” from the list and then click on the New button at the top of the screen.Give your Debug Configuration a name and click Browse to select your app’s project
  • 47. Create a Debug Configuration cont…Click on the Target tabChoose Automatic Choose an AVD (you should see the AVD you created earlier in the list)Click Apply
  • 48. Launch/Debug your app with the emulatorWith the debug configuration screen still open click on “Debug”. Note you can also launch the debugger from the debug button on the toolbar (be sure to select the correct configuration from the drop-down list)This will launch the emulator and run your app. Note this will take a few minutes the first time you run it in a particular session of Eclipse.
  • 50. Playing with the EmulatorUse the Emulator Control Window to simulate phone calls or text messages.If you cannot see the Emulator Control Window, choose Window from the menu then Show View=>Other=>Android=>Emulator ControlNB. Mobile phone numbers should not contain spaces.
  • 51. Launch/Debug your app with your Android phone or mobile deviceYou need to ensure your Android Device is set to Debug mode. You may need to refer to your user manual for more details on how to do this. In my example I followed these steps:Close Eclipse if it is openConnect the phone to your PC via the USB CableOpen Settings (on the phone)Choose ApplicationsChoose DevelopmentEnable USB DebuggingEnable Stay AwakeNB. The first time you do this you may have to install additional driver software to you PC.
  • 52. Launch/Debug your app with your Android phone or mobile deviceYou need to ensure your Android Device is set to Debug mode. You may need to refer to your user manual for more details on how to do this. For my phone I followed these steps:Close Eclipse if it is openConnect the phone to your PC via the USB CableOpen Settings (on the phone)Choose ApplicationsChoose DevelopmentEnable USB DebuggingEnable Stay AwakeNB. The first time you do this you may have to install additional driver software to you PC.You may also need to add the Google USB Driver package via the SDK Manager (on your PC) if it has not already been installed
  • 53. Launch/Debug your app with your Android phone or mobile device cont…Open your app project in EclipseGo to the Debug Configuration (created in an earlier slide)Click on the Target TabChoose ManualClick on the Debug buttonYou will be prompted to choose an Android device. Hopefully you will see your phone listed (or something that resembles it) in the “Choose a running Android device” section (if you don’t you may need to check connections or driver installations)Select your phone from the listClick OKAfter a short while your app should appear loaded on your phone. You should also see an icon for your app amongst all your other installed apps.
  • 54. Launch/Debug your app with your Android phone or mobile device cont…Choosing your phone from the Debug Configuration
  • 55. Launch/Debug your app with your Android phone or mobile device cont…
  • 56. Note that you do not need to stop the debugger or close the application in any way from Eclipse.
  • 57. When finished debugging simply go back to your phone and disable the debugging features (enabled in the previous slide) then continue to disconnect your phone in the normal manor.
  • 58. You may find that your app is still installed on your phone. Uninstall it if required.Things to avoidImage: http://www.lz95.net/lzhs/english/isilverman/policies.htm
  • 59. The standard Eclipse for Java Developer installation does not include all the necessary components for Android Development. For new installations it is better to download and install the Eclipse for Java EE Developers.
  • 60. While the standard install will still work you will need to download more add-ins to start developing. When debugging be sure to use the correct debug configuration. Failing to do so can sometimes add an extra resource file to your project and cause a build error. (I have yet to investigate the cause of this issue. There may be a valid reason.)Where to next?Image: www.heightofhappiness.wordpress.com
  • 61. In a future presentation I will discuss:
  • 62. Debugging using the Dalvik Debug Monitor Service (DDMS). This is a more advanced debugging tool that give you more visibility and control over the debugging process.
  • 63. Application Design – Context, Activities and Intents. These are the main building blocks to an Android app. This is where the actual coding begins!
  • 64. More on Resources and State management. Using images and how to store app/user settings.
  • 65. Anything else I can fit in.Questions?Image: www.alaskacommons.wordpress.com

Editor's Notes

  • #5: Software/Solution Stack – OS, Middleware + Key ApplicationsOpen Handset Alliance consists of 80 firms including Google, HTC, Dell, Intel, Motorola, Qualcomm, Texas Instruments, Samsung, LG, T-Mobile, Nvidia, and Wind River Systems.[
  • #6: - Dalvic Virtual Machine also Open Source. Uses different bytecode to standard Java VM. Based on the Apache implementation of Java. - In 2010 Oracle sued Google of infringing it’s Intellectual Property on several patents.- C libraries include Surface manager, SQLite and OpenGL graphics engines
  • #8: - Dalvic Virtual Machine also Open Source. Uses different bytecode to standard Java VM. Based on the Apache implementation of Java. - In 2010 Oracle sued Google of infringing it’s Intellectual Property on several patents.- C libraries include Surface manager, SQLite and OpenGL graphics engines
  • #10: Another survey by Gartner puts Symbian ahead but forecasts Android to lead by 2014.
  • #11: http://www.computerworld.com/s/article/9178684/Developing_for_the_iPhone_and_Android_The_pros_and_cons?taxonomyId=18&pageNumber=2http://developer.apple.com/programs/ios/
  • #12: Feb 2011 Nokia and Microsoft announced strategic partnership which sees Windows Phone 7 as Nokia’s primary OS.http://social.msdn.microsoft.com/Forums/en/mktplace/thread/4b727251-7089-4261-8928-1a218f96a300http://blogs.computerworld.com/16622/windows_phone_7s_achilles_heel_no_enterprise_app_deployment_toolhttp://www.zdnet.co.uk/news/mobile-apps/2010/10/21/microsoft-hints-at-windows-phone-7-enterprise-future-40090605/
  • #13: http://pocketnow.com/windows-phone/nokia-undertaking-two-year-plan-for-wp7-transition-symbian-gone-by-2013
  • #14: http://pocketnow.com/windows-phone/nokia-undertaking-two-year-plan-for-wp7-transition-symbian-gone-by-2013
  • #16: Eclipse for Java EE Developers contains additional plug-ins including the Java Development Tools (JDT) for eclipse as well as the Web Tools Platform (WTP)
  • #17: Eclipse for Java EE Developers contains additional plug-ins including the Java Development Tools (JDT) for eclipse as well as the Web Tools Platform (WTP)
  • #18: Eclipse for Java EE Developers contains additional plug-ins including the Java Development Tools (JDT) for eclipse as well as the Web Tools Platform (WTP)
  • #19: Eclipse for Java EE Developers contains additional plug-ins including the Java Development Tools (JDT) for eclipse as well as the Web Tools Platform (WTP)