Android Workshop


Published on

Here is the presentation used at the Android Workshop conducted at KLS GIT Belgaum, on 26th & 27th March 2011.

For more resources visit us at

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

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Android Workshop

  1. 1. 26th & 27th March 2011@ KLS GIT, Belgaum <br />Android Workshop<br />
  2. 2. Why to choose mobiles platform?<br />
  3. 3. Platforms available<br />Android<br />IPhone<br />Blackberry<br />Windows7<br />Symbian OS<br />
  4. 4. Shares Comaprision<br />
  5. 5. Types and features<br />
  6. 6. Why Android?<br />Android is open and available for all platform.<br />Android scales to every device.<br />It’s Supported by Dozens of Hardware Manufacturers.<br />Third Party Development is Encouraged.<br />
  7. 7. What is Android?<br />Android is an open-source software stack for mobile devices that includes an operating system, middleware and key applications.<br />What it means ??<br />
  8. 8.
  9. 9. Advantages and disadvantages<br />………….. Throughout the workshop.<br />
  10. 10. Installation –tools required<br />Any OS<br />Eclipse Galileo (or higher)<br />ADT Pluggin<br />Any android device (good to have one)<br />
  11. 11. Emulator creation<br />
  12. 12. Hello program<br />
  13. 13. Activity??<br />An activity is a single, focused thing that the user can do.<br />Almost all activities interact with the user, so the Activity class takes care of creating a window for you in which you can place your UI with setContentView(View).<br />
  14. 14.
  15. 15. What is view??<br />This class represents the basic building block for user interface components.<br />A View occupies a rectangular area on the screen and is responsible for drawing and event handling.<br />View is the base class for widgets, which are used to create interactive UI components (buttons, text fields, etc.).<br />
  16. 16. XML for GUI design<br />Why XML?<br />Java code or XML.<br />Controlling portrait or landscape.<br />Language control.<br />
  17. 17. Android Manifest file<br />What ??<br />Why ??<br />How to use .<br />
  18. 18. Understanding layouts<br />Linear Layout.<br />Relative Layout.<br />Frame Layout.<br />Table Layout.<br />Absolute Layout.<br />
  19. 19. Linear Layout<br />A Layout that arranges its children in a single column or a single row.<br /> The direction of the row can be set by calling setOrientation().<br />You can also specify gravity, by calling setGravity() or specify weight member of LinearLayout.LayoutParams.<br /> The default orientation is horizontal.<br />
  20. 20. Relative Layout<br />A Layout where the positions of the children can be described in relation to each other or to the parent.<br />Note:that you cannot have a circular dependency between the size of the RelativeLayout and the position of its children.<br />Relative Layout Example<br />
  21. 21. Frame Layout<br />FrameLayout is designed to block out an area on the screen to display a single item.<br />You can add multiple children to a FrameLayout and control their position within the FrameLayout using gravity.<br />Children are drawn in a stack, with the most recently added child on top.<br />The size of the frame layout is the size of its largest child (plus padding), visible or not (if the FrameLayout's parent permits).<br />Views that are GONE are used for sizing only if setConsiderGoneChildrenWhenMeasuring() is set to true.<br />Frame Layout Xml<br />Frame Layout java<br />
  22. 22. Table Layout<br />A layout that arranges its children into rows and columns. <br />A TableLayout consists of a number of TableRow objects, each defining a row (actually, you can have other children, which will be explained below).<br />TableLayout containers do not display border lines for their rows, columns, or cells. <br />Each row has zero or more cells; each cell can hold one View object. <br />The table has as many columns as the row with the most cells. <br />A table can leave cells empty. Cells can span columns, as they can in HTML.<br />Table Layout Example<br />
  23. 23. Absoulute Layout<br />This class is deprecated.<br />Use FrameLayout, RelativeLayout or a custom layout instead.<br />
  24. 24. Coding for some simple widgets<br />Text View<br />Button<br />Edit Text<br />Checkbox<br />Radio Button<br />Spinner<br />List view<br />Progress Bar<br />
  25. 25. ExPloring FeatuRe of View<br />How to USe<br />
  26. 26. Some Important Concepts <br />
  27. 27. Bundle<br />A mapping from String values to various Parcelable types.<br />How and where it is used <br />Bundle Demo & Example of Moving from one activity to another activity.<br />
  28. 28. Cursor<br />This interface provides random read-write access to the result set returned by a database query.<br />Cursor implementations are not required to be synchronized so code using a Cursor from multiple threads should perform its own synchronization when using the Cursor.<br />
  29. 29. Database designing fundamentals<br />
  30. 30. Preferences Control and setting<br />
  31. 31. Some advance topic<br />Message sending<br />Push Notification<br />
  32. 32. ResouRces<br />All about android<br />Sample Code<br />Our God – Google<br />Stay tuned with us @<br />Blog:<br />Facebook:<br />Twitter:<br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.