Capturing the ClaimItem data

While you've linked the new Fragment classes to the CaptureClaimAcitvity, things aren't quite finished yet. The CaptureClaimActivity doesn't actually have a ClaimItem to capture and modify. For this, you'll not only need to hold a reference to a ClaimItem in the CaptureClaimActivity, you'll need to ensure that it is saved and restored through life cycle changes for the Activity as well. Fortunately, your model is all Parcelable, which keeps this easy. It's time to capture a ClaimItem:

  1. Open the CaptureClaimActivity class.
  2. First, you'll need a way that a ClaimItem can be passed into the CaptureClaimActivity for editing. To keep this simple and flexible, you'll allow them to be passed as an "extra" field on the ...

Get Hands-On Android UI Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.