Every registration supports local education. TrainUp Gives Back

Your Career Training Marketplace

Questions? Call Toll-Free: 1-866-540-9677

  • Instant Access ImageInstant Access
    From Anywhere
  • Unlimited Viewing ImageUnlimited
  • calendar Image 6-12 Months
    To Complete


Defensive Programming in Android uses coding practices and techniques to create apps that are reliable and resilient. This course will teach you some language-specific Java techniques that promote defensive programming when creating Android apps, as well as how to access the network in Android apps in a way that does not affect user experience.

Learning Objectives
  • Start the course
  • Initialize instances of classes safely
  • Check for the presence of null to avoid errors
  • Design setters to avoid potential errors
  • Recognize how to compare two objects in Java avoiding potential errors
  • Work safely with the Java switch and case statements
  • Use atomic and nonatomic operations in threaded applications
  • Use final properties to minimize potential for errors
  • Recognize when to use mutable and immutable classes
  • Implement a basic enum in Java
  • Use enums to reduce the possibility of unexpected input
  • Implement an enum with a constructor and recognize the rules for enum constructors
  • Implement an interface in an enum
  • Create an enum with abstract methods
  • Use packages and classes to implement proper encapsulation
  • Import packages in Java Android apps
  • Use different scopes to implement defensive programming
  • Create APKs to run on Android devices
  • Create jars for exporting Java code between apps
  • Recognize the importance of maintaining a good user experience while accessing the network
  • Use AsyncTask to retrieve data asynchronously and preserve user experience
  • Use progress reporting to enhance user experience
  • Cache retrieved data to enhance user experience
  • Transfer large files in the background
  • Check network connectivity status in Android apps
  • Sanitize data transferred across the network
  • Create an Android app to access the network asynchronously
  • Audience

Get the latest industry news, recommended courses, & promotions from TrainUp.com sent straight to your inbox.