Android 101

1,168 views
1,014 views

Published on

Get Started With Android Application development. This slide deck is use for Bangalore Android User Group Teach Program. Learn basic building blocks of android app development. learn how to debug your app and how you can launch an app in android market place

Published in: Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,168
On SlideShare
0
From Embeds
0
Number of Embeds
113
Actions
Shares
0
Downloads
0
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide
  • Adding new emulator
  • Android 101

    1. 1. Android 101 Blrdroid Teach
    2. 2. Pranay Airan Web application developer @Intuit Android Developer by choice  Assistant organizer Blrdroid @pranayairan
    3. 3. Bangalore Android User Group ( www.BlrDroid.org) • Largest open Android developer community in the country and second largest in the world. • Over 3800 members • 30 meetups • 12 Teach Events • 4 hackathons • Active participation in events like Droidcon, Global Android Developer hackathon etc
    4. 4. Why Android 2 million Android device activation per day
    5. 5. Why Android 750+ million Android device activated till now
    6. 6. Why Android 70% Android market share world wide
    7. 7. Android Architecture
    8. 8. Getting Started • IDE Eclipse • Folder Structure • Setting your development environment • Different tools available in eclipse
    9. 9. Android App Building Blocks
    10. 10. Android Manifest File Activities Intents Views Services ContentProviders BroadCastReceiver
    11. 11. Activities Android Manifest File Intents Views Services ContentProviders BroadCastReceiver
    12. 12. Activities • Provides a screen with which users can interact • Activity has UI. • An app usually consists of multiple activities • 1 Activity is always main. • Activity has lifecycle
    13. 13. Activity Lifecycle
    14. 14. Activities Android Manifest File Intents Views Services ContentProviders BroadCastReceiver
    15. 15. Intents • Intents are simple message objects which are use to move from 1 activity to another • Intent defines “intention” of what application want • Intents can be use to communicate from 1 application to another
    16. 16. Intents
    17. 17. Intents
    18. 18. Intents
    19. 19. Activities Android Manifest File Intents Views Services ContentProviders BroadCastReceiver
    20. 20. Views • Views are UI basic building blocks • Know how to draw themselves • Respond to events • Organized as trees to build up GUIs • Described in XML in layout resources
    21. 21. Action Bar UI Elements
    22. 22. Layouts Linear Layout Relative Layout Grid Layout
    23. 23. Activities Android Manifest File Intents Views Services ContentProviders BroadCastReceiver
    24. 24. Android Manifest • It names the Java package for the application. • Components of the application — the activities, services, broadcast receivers, and content providers that the application is composed of. • Permissions • Lists the library • And more
    25. 25. Activities Android Manifest File Intents Views Services ContentProviders BroadCastReceiver
    26. 26. Services • Use to perform long running tasks in the background • No User interface • Runs in the background for certain amount of time • Use in combination with broadcast often to perform heavy operations like file upload sync etc
    27. 27. Service Lifecycle
    28. 28. Activities Android Manifest File Intents Views Services ContentProviders BroadCastReceiver
    29. 29. Content Providers • Helps in managing access to structure set of data • Content providers are the standard interface that connects data in one process with code running in another process • Provide a level of abstraction for data store in any format, in the file system, in sqllite or on network • Android platform provides common data like contacts calendars sms as content providers
    30. 30. Sqllite db File Remote Content provider Contact App Activity 1.1 Activity 1. App 2 Activity 1.1 Activity 1. App 3 Activity 1.1 Activity 1.
    31. 31. Activities Android Manifest File Intents Views Services ContentProviders BroadCastReceiver
    32. 32. BroadCast Receiver • BroadCast receiver is android components which allows to register for system events • Different kind of system events which do broadcast o Battery low o Headset plugged o Location change o Sms received o Call received etc
    33. 33. Notifications • Notifies users about events happening in phone • It appears as a small icon in notification bar • User Can interact with this notifications • Sent via notification manager • Example SMS, alarm, miss call
    34. 34. Android Development Environment
    35. 35. Eclipse IDE/ADT
    36. 36. UI Editor
    37. 37. The Emulator
    38. 38. Generating APK • Android application package file is the format to distribute and install android app • Apk can be Signed and unsigned • Generating signed and unsigned apk
    39. 39. Launch in marketplace • What is required? • Typical launch process
    40. 40. Debugging • How to debug • Using debug perspectives
    41. 41. Connecting your phone • Developing without emulator • Debugging in phone
    42. 42. Questions ??
    43. 43. Thank You @pranayairanPranay.airan@iiitb.net http://goo.gl/okiJp
    44. 44. Resources • Developer.android.com • http://www.vogella.com/android.html • http://www.mkyong.com/tutorials/android-tutorial/ • Stackoverflow • Books o Hello Android o Basic android programming by mark murphy

    ×