Code crunch

  • View
    86

  • Download
    0

Embed Size (px)

Text of Code crunch

  • 1. CODE CRUNCH QUICKSTART TO ANDROID DEVELOPMENT By: Obed Ademang GDG, UCC Lead

2. NO ANDROID DEVICEI LIKE APPSNene Padi Ademang (Obed)NOT A DEVELOPERNO KNOWLEDGE OF PROGRAMMING2/18/20142 3. Overview of the PlatformNene Padi Ademang (Obed)2/18/20143 4. Android Platform It is a software stack for mobile devices.It contains: OS Kernel, system libraries, application frameworks and key appsAndroid Software Development Kit (SDK): Libraries and development tools for creating android applicationsThere are lots of documentation on: http://developer.android.com/trainingNene Padi Ademang (Obed)2/18/20144 5. ApplicationsApplication FrameworkLibrariesAndroid RuntimeLinux KernelNene Padi Ademang (Obed)2/18/20145 6. DevelopmentNene Padi Ademang (Obed)2/18/20146 7. Android Development Environment ADT Bundle Eclipse + ADT PluginLatest system image for emulatorLatest Android platformAdditional development toolsPrerequisite Windows 7 / Mac OS X (Intel x86) / Various Linux DistrosAt least Java SE 6Knowledge about Java ProgrammingNene Padi Ademang (Obed)2/18/20147 8. DemoNene Padi Ademang (Obed)2/18/20148 9. Pros & Cons of the Emulator ProsNene Padi Ademang (Obed)Cons2/18/20149 10. Advance Features of Emulator The emulator helps test some advance features like Network speed/LatencyBattery powerLocation coordinatesEmulated callsNene Padi Ademang (Obed)2/18/201410 11. DemoNene Padi Ademang (Obed)2/18/201411 12. Overview of Activity Life Cycle and IntentsNene Padi Ademang (Obed)2/18/201412 13. Activity An application component that provides a screen with which users can interact in order to do something.An application usually consists of multiple activities that are loosely bound to each other.Each time a new activity starts, the previous activity is stopped, but the system preserves the activity in a stack (the "back stack"). startActivity()startActivityForResult()Nene Padi Ademang (Obed)2/18/201413 14. Nene Padi Ademang (Obed)2/18/201414 15. Intents Explicit intentIntent intent = new Intent(this, SignInActivity.class); startActivity(intent);Implicit IntentIntent intent = new Intent(Intent.ACTION_SEND); intent.putExtra(Intent.EXTRA_EMAIL, recipientArray); startActivity(intent);Nene Padi Ademang (Obed)2/18/201415 16. DemoNene Padi Ademang (Obed)2/18/201416 17. Nene Padi Ademang (Obed)2/18/201417