Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android : Getting Started

Android : Getting Started

Under the GDG Indore's Android: Idea to App program

Dhatri Misra

January 26, 2014
Tweet

More Decks by Dhatri Misra

Other Decks in Programming

Transcript

  1. Plan: > Finalising the features and Wireframes > Getting started

    with Development Environment > Understanding the Basics > Tap the keyboard a little
  2. Folder Structure src - Java Files //Activities gen - R.java

    *DO NOT TOUCH* assets - Additional Resources. Eg: Media, Fonts bin - Compiled java files libs - Libraries Needed //jar files res - Images, Layout, Menu
  3. Building Blocks 1. Activities 2. Intents 3. Views 4. Layouts

    5. Android Manifest File 6. Services 7. Content Providers 8. Broadcast Receivers 9. Notifications
  4. Activities > The screen that user interacts with > It

    has a UI > App has single main activity > App can have multiple activities > Activity has a lifecycle
  5. Intents > Tells about the “Intention” of the App >

    Message Object to switch between activities > Pass data between activities > Can also communicate between two apps
  6. Views > Basic building block of UI > Respond to

    events > Build up in tree structure > In XML under the layout
  7. Android Manifest File > Package name > Version > Activities,

    Services, Broadcast Receivers, Content Providers are included in the Application > Permissions > Minimum level of APIs > Libraries used
  8. Services > Runs in the Background > May or May

    not have a UI > Runs in the same process as the activity > Run on a different thread > Have higher priority than Activities Eg : GPS, Perform file I/O, play music, interact with content provider
  9. Content Providers > Needed when you need to share data

    between multiple applications > Interface to connect data in one process with code running in another process > Android itself includes content providers that manage data such as audio, video, images, and personal contact information
  10. Broadcast Receivers > Registers for a system or application event

    Eg: Battery Low, SMS Received, Wi-Fi activated/deactivated, Headset Plugged
  11. Notifications > Message you display outside your app’s normal UI

    > Appears as an icon in notification area > To see the details of it opens the notification drawer > Sent via Notification Manager Eg : Message Received, Missed Call