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

So, You Want To Be An Android Developer?

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.
Avatar for Alex Fu Alex Fu
January 11, 2018

So, You Want To Be An Android Developer?

Core concepts on Android and tips/advice about learning Android.

Avatar for Alex Fu

Alex Fu

January 11, 2018
Tweet

Other Decks in Technology

Transcript

  1. Activities An Activity is a single, focused thing that the

    user can do. • Represents a single screen • Provides a window for your UI • Activity.setContentView() • Entry point for interacting with the user
  2. Activities An Activity is a single, focused screen that the

    user can use. • Represents a single screen • Provides a window for your UI • Activity.setContentView() • Entry point for interacting with the user
  3. Fragments A Fragment is a piece of an application's user

    interface or behavior that can be placed in an Activity. • Represents a portion of the screen
  4. Fragments A Fragment is a piece of an application's user

    interface or behavior that can be placed in an Activity. • Represents a portion of the screen • Must be embedded in an Activity • Attached via FragmentTransaction • Are reusable
  5. Fragments A Fragment is a reusable piece of user interface

    and/or behavior. • Represents a portion of the screen • Must be embedded in an Activity • Attached via FragmentTransaction • Are reusable
  6. Views A View is the basic building block for UI

    components. • Represents a UI element • Responsible for drawing and event handling (i.e. touch events) • Used to create interactive UI components (i.e. buttons, text fields, etc…)
  7. Lifecycles A lifecycle is series of changes in the lifetime

    of an app. • Applies to Activities, Fragments, Services, etc… • Notifies developer when state changes • Not all lifecycles are equal
  8. Context A Context provides an interface to your application environment.

    • Applies to Activities, Fragments, Services, etc… • Provides access to resources (i.e. images, text, etc…) • Context.getString() or Context.getDrawable() • Provides access to system services (i.e. NotificationManager) • Context.getSystemService() • Used to start Activities and Services • Context.startActivity() or Context.startService() • Used everywhere • Tied to lifecycle
  9. Manifest The manifest provides essential information about your app to

    the Android system. • Is a file named AndroidManifest.xml • Describes components of the applications such as Activities, Services, etc… • Declare app permissions such as internet, camera, GPS, etc…