O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

Mobile Application Development With Android

26.211 visualizações

Publicada em


Publicada em: Tecnologia, Educação
  • Entre para ver os comentários

Mobile Application Development With Android

  1. 1. Mobile Application Development with ANDROID A.UMASHANKAR 06078115
  2. 2. Agenda <ul><li>Mobile Application Development (MAD) </li></ul><ul><li>Intro to Android platform </li></ul><ul><li>Platform architecture </li></ul><ul><li>Application Framework & API </li></ul><ul><li>Application building blocks </li></ul><ul><li>Development tools </li></ul><ul><li>Hello Android </li></ul><ul><li>Porting application to Mobile </li></ul>
  3. 3. Few reasons to go MAD. . . <ul><li>Smart Phones </li></ul><ul><ul><li>Internet access anywhere </li></ul></ul><ul><ul><li>Social networking </li></ul></ul><ul><ul><li>GPS and Google Maps </li></ul></ul><ul><li>Millions of mobile users </li></ul><ul><li>Open standards </li></ul>
  4. 4. Introduction to Android <ul><li>Open software platform for mobile development </li></ul><ul><li>A complete stack – OS, Middleware, Applications </li></ul><ul><li>An Open Handset Alliance (OHA) project </li></ul><ul><li>Powered by Linux operating system </li></ul><ul><li>Fast application development in Java </li></ul><ul><li>Open source under the Apache 2 license </li></ul>
  5. 6. Android APIs ❑ android.util ❑ android.os ❑ android.graphics ❑ android.text ❑ android.database ❑ android.content ❑ android.view ❑ android.widget ❑ com.google.android.maps android.app ❑ android.telephony ❑ android.webkit
  6. 7. Application building blocks <ul><li>Activity </li></ul><ul><li>IntentReceiver </li></ul><ul><li>Service </li></ul><ul><li>ContentProvider </li></ul>
  7. 8. Activities <ul><li>Typically correspond to one UI screen </li></ul><ul><li>But, they can: </li></ul><ul><ul><li>Be faceless </li></ul></ul><ul><ul><li>Be in a floating window </li></ul></ul><ul><ul><li>Return a value </li></ul></ul><ul><ul><li>Activity refers to (J)Frame in Swing </li></ul></ul>
  8. 9. Intents <ul><li>Think of Intents as a verb and object; a description of what you want done </li></ul><ul><ul><li>E.g. VIEW, CALL, PLAY etc.. </li></ul></ul><ul><li>System matches Intent with Activity that can best provide the service </li></ul><ul><li>Activities and IntentReceivers describe what Intents they can service </li></ul>
  9. 10. Intent Recievers <ul><li>Components that respond to broadcast ‘Intents’ </li></ul><ul><li>Way to respond to external notification or alarms </li></ul><ul><li>Apps can invent and broadcast their own Intent </li></ul>
  10. 11. Services <ul><li>Faceless components that run in the background </li></ul><ul><ul><li>E.g. music player, network download etc… </li></ul></ul>
  11. 12. ContentProviders <ul><li>Enables sharing of data across applications </li></ul><ul><ul><li>E.g. address book, photo gallery </li></ul></ul><ul><li>Provides uniform APIs for: </li></ul><ul><ul><li>querying </li></ul></ul><ul><ul><li>delete, update and insert. </li></ul></ul><ul><li>Content is represented by URI and MIME type </li></ul>
  12. 13. Android User Interfaces Hierarchy of Screen Elements <ul><li>Different Layouts </li></ul><ul><ul><li>Linear Layout </li></ul></ul><ul><ul><li>Absolute Layout </li></ul></ul><ul><ul><li>Table Layout </li></ul></ul>
  13. 14. Comparing Android UI Elements to Swing UI Elements Comparing Android UI Elements to Swing UI Elements <ul><li>Activities in Android refers almost to a (J)Frame in Swing. </li></ul><ul><li>Views in Android refers to (J)Components in Swing. </li></ul><ul><li>TextViews in Android refers to a (J)Labels in Swing. </li></ul><ul><li>EditTexts in Android refers to a (J)TextFields in Swing. </li></ul><ul><li>Buttons in Android refers to a (J)Buttons in Swing. </li></ul>
  14. 15. AndroidManfest.xml <manifest> This is the root node of each AndroisManifest.xml. It contains the package-attribute, which points to any package in out Activity. Other Activities-path will base relative to its value.
  15. 16. <application> Root element containing declarations of the application-level components contained in the package. This element can also include global and/or default attributes for the application, such as a label, icon,theme, required permission, etc.Quantity: 0 or 1. <activity> An Activity is the primary thing for an application to interact with the user. The initial screen the user sees when launching an application is an activity, and most other screens they use will be implemented as separate activities declared with additional activity tags. <intent-filter> Declares what kind of Intents a component supports. In addition to the various kinds of values that can be specified under this element, attributes can be given here to supply a unique label, icon, and other information for the action being described.
  16. 17. <action> An action-type that the component supports. Example: . <category> A category-type that the component supports. Example: Some other Tags Available…… <meta-data> <receiver> <service> <provider>
  17. 18. Application Development Steps <ul><li>Download and Install the Android SDK and Test the Emulator. </li></ul><ul><li>Installing JDK and JRE(1.5 or above) </li></ul><ul><li>Install Eclipse. </li></ul><ul><li>Install ADT plugin for Eclipse </li></ul>Creating HelloWorld Application
  18. 19. Application development contd., New > Project… <ul><li>Select Android project in wizard menu </li></ul>
  19. 20. Application development contd.,
  20. 21. Application development contd., Main Activity>> Main.xml>>
  21. 22. Application development contd., AndroidManifest.xml>>
  22. 23. Application development contd., >>Running Your First Application
  23. 24. Application development contd., Output in the emulator
  24. 25. Application development contd., Uis using Java way
  25. 26. Porting Applications to Mobile <ul><li>Resource files are bundled to .apk file archive </li></ul><ul><li>Bundled by aapt tool </li></ul><ul><li>One .apk file archive is a Single application </li></ul>
  26. 27. Interesting things to do <ul><li>Android is open source </li></ul><ul><li>Opportunities for researchers </li></ul><ul><li>Get the source, compile and update the device image </li></ul>
  27. 28. References <ul><li>http://developer.android.com </li></ul><ul><li>http://code.google.com/android </li></ul><ul><li>http://anddev.org </li></ul>
  28. 29. Thank You Queries