linster / AADExample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AAD Exam Example

This repo is an Android Studio Project that contains worked examples for all the pieces required for the Android Associate Developer Certification.

https://developers.google.com/training/certification/associate-android-developer/

Testing and debugging

Writing tests to verify that the application's logic and user interface are performing as expected, and executing those tests using the developer tools. Candidates should be able to analyze application crashes, and find common bugs such as layout errors and memory leaks. This includes working with the debuggers to step through application code and verify expected behavior.

  • Write and execute a local JVM unit test
  • Write and execute a device UI test
  • Given a problem description, replicate the failure
  • Use the system log to output debug information
  • Debug and fix an application crash (uncaught exception)
  • Debug and fix an activity lifecycle issue
  • Debug and fix an issue binding data to views

Application user interface (UI) and user experience (UX)

Implementation of the visual and navigational components of an application's design. This includes constructing layouts—using both XML and Java code—that consist of the standard framework UI elements as well as custom views. Candidates should have a working knowledge of using view styles and theme attributes to apply a consistent look and feel across an entire application. Understanding of how to include features that expand the application's audience through accessibility and localization may also be required.

  • Mock up the main screens and navigation flow of the application
  • Describe interactions between UI, background task, and data persistence
  • Construct a layout using XML or Java code
  • Create a custom view class and add it to a layout
  • Implement a custom application theme
  • Apply a custom style to a group of common widgets
  • Define a RecyclerView item list
  • Bind local data to a RecyclerView list
  • Implement menu-based or drawer navigation
  • Localize the application's UI text into one other language
  • Apply content descriptions to views for accessibility
  • Add accessibility hooks to a custom view

Fundamental application components

Understanding of Android's top-level application components (Activity, Service, Broadcast Receiver, Content Provider) and the lifecycle associated with each one. Candidates should be able to describe the types of application logic that would be best suited for each component, and whether that component is executing in the foreground or in the background. This includes strategies for determining how and when to execute background work.

  • Describe an application's key functional and nonfunctional requirements
  • Create an Activity that displays a layout resource
  • Fetch local data from disk using a Loader on a background thread
  • Propagate data changes through a Loader to the UI
  • Schedule a time-sensitive task using alarms
  • Schedule a background task using JobScheduler
  • Execute a background task inside of a Service
  • Implement non-standard task stack navigation (deep links)
  • Integrate code from an external support library

Persistent data storage

Determining appropriate use cases for local persisted data, and designing solutions to implement data storage using files, preferences, and databases. This includes implementing strategies for bundling static data with applications, caching data from remote sources, and managing user-generated private data. Candidates should also be able to describe platform features that allow applications to store data securely and share that data with other applications in.

  • Define a database schema; include tables, fields, and indices
  • Create an application-private database file
  • Construct database queries returning single results
  • Construct database queries returning multiple results
  • Insert new items into a database
  • Update or delete existing items in a database
  • Expose a database to other applications via Content Provider
  • Read and parse raw resources or asset files
  • Create persistent preference data from user input
  • Toggle application logic based on preference values

Enhanced system integration

Extending applications to integrate with interfaces outside the core application experience through notifications and app widgets. This includes displaying information to the user through these elements and keeping that information up to date. Candidates should also understand how to provide proper navigation from these external interfaces into the application's main task, including appropriate handling of deep links.

  • Create an app widget that displays on the device home screen
  • Implement a task to update the app widget periodically
  • Create and display a notification to the user

Meeting the Requirements

The easiest way to exercise all of these tasks is to make several projects, each doing a little bit.

Enhanced System Integration

Widgets

  • (√) The app widget will display a number and a unix timestamp on the homescreen.

  • (√) A service will update the app widget every 5ish seconds. Every time the widget is updated, the number is incremented mod 5.

  • The notification in the notification tray will do several things:

  • If number == 0: Big notification, deep link to main activity.

  • If number in 1, 2: Small notification, deep link to Activity12 with the URL of the deep link containing the number.

  • If number in 34: Same as above, but activity34.

  • Add an app shortcut to activity12. From the launcher icon.

  • Add a pinned app widget for Android 8.0 that opens Activity34

  • Another app widget will contain the magic number above, as well as a list of "elephant"[number:] strings. Clicking on a particular string will launch an email intent filled with that string.

  • Another widget, same as above, but each list item opens a different app deep link?

Notifications

About

License:Apache License 2.0


Languages

Language:Kotlin 100.0%