Successfully reported this slideshow.

Installing eclipse & sdk


Published on

Published in: Education, Technology
  • Be the first to comment

  • Be the first to like this

Installing eclipse & sdk

  2. 2. Requirements for ourWorkspace: * Java JDK/JRE * Android SDK * Eclipse IDE * ADT Plugin for Eclipse
  3. 3. JAVABefore you start developing a Android application, make sure that you have installed Java on your machine.JDK 5 or JDK 6 (JRE alone is not sufficient)
  4. 4. ANDROID SDKSDK include: device emulator Debugger memory & performance profiling plug-in for Eclipse IDEYou can download Android SDK from Android’s Developer Website.
  5. 5. ECLIPSE IDEEclipse is the most popular open source IDE for developers.It is written mostly in Java and can be used to develop applications in Java and, by means of various plug-ins, other programming languages.It has plug-in support from Android for development.
  6. 6. ADT PLUG-IN FOR ECLIPSEAndroid Development Tools (ADT) is a plug-in for the Eclipse IDE that is designed to give you a powerful, integrated environment in which to build Android applications.ADT extends the capabilities of Eclipse to let you quickly set up new Android projects, create an application UI, add components based on the Android Framework API, debug your applications using the Android SDK toolsNow we have Installed Java on your machine, and extracted out Eclipse to your preferred location.Now we’ll configure our ADT Plugin with Eclipse.
  7. 7. Goto Help > Install New Software 
  8. 8. Location:
  9. 9. Click on OK then Next. by this we have installed our ADTPlugin into eclipse. Now we need to configure our plug-in.
  10. 10. Configuring ADT Plugin:Goto Window > Preferences and select Android from the left Panel
  11. 11. Installing Android PlatformGoto Eclipse’s Window > Android SDK and AVD Manager
  12. 12. You have three things in your left navigationpanel: Virtual devices, Installed packages, andAvailable Packages.
  13. 13. AVD Configuration:Goto Window > Android SDK and AVD Manager >Virtual Devices Click on New  In the pop up window, provide any Name for your plug­in  The version of Android you want to use for your testing  purposes in Target field.  Finally click on Create AVD button, and you are done. 
  15. 15. Building Blocks
  16. 16. ACTIVITIES ● Activities are stacked ● like a deck of cards. ● only one is visible ● only one is active ● new activities are placed on top
  17. 17. Activities StateActive ­At top of the stackPaused ­Lost focus but still visible ­Can be killedStopped ­Not at the top of the stackDropped ­Killed to reclaim its memory
  18. 18. ViewsViews are basic building blocksKnow how to draw themselvesRespond to eventsOrganized as trees to build up GUIDescribed in XML in layout resources
  19. 19. Loading A LayoutAndroid complies the XML layout code that is later loaded in code usually by public void onCreate(Bundle savedInstance) { ...... setContentView(R.layout.filename); .... }
  20. 20. IntentsIntents are used to move from one Activity to anotherDescribes what the application wantsAn Intent provides a facility for performing late runtime binding between the codes in different activity.
  21. 21. ServicesServices run in the backgroundWont interact with the userRun on the main thread of the processIs kept running as long as – Is started – Has connections
  22. 22. NotificationsNotify the user about eventsSent through NotificationManagerTypes – Persistent icon – Turning LEDS
  23. 23. Content ProvidersContentProviders are objects that can Retrive data Store dataData is available to all applicationsOnly way to share data across packagesUsually the back-end is SQLiteData exposed as a unique URI
  24. 24. AndroidManifest.xmlControl file that tells the system what to doIt is the glue that actually specifies which intents your Activities receivesSpecifies permissions
  26. 26. Java File
  27. 27. XML File
  28. 28. Emulator
  29. 29. Output
  30. 30. Questions ?
  31. 31. THANK YOU 33