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
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…)
• 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
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…