Challenge: Announcing Events

By adding dynamic content descriptions to the crime scene photo ImageView, you improved the crime scene photo experience. But the onus is on the TalkBack user to press on the ImageView to check its status. A sighted user has the benefit of seeing the image change (or not) when returning from the camera app.

You can provide a similar experience via TalkBack by announcing what happened as a result of the camera app closing. Read up on the View.announceForAccessibility(…) function in the documentation and use it in CriminalIntent at the appropriate time.

You might consider making the announcement in onActivityResult(…). If you do, there will be some timing issues related to the activity lifecycle. You can ...

Get Android Programming: The Big Nerd Ranch Guide, 4th Edition 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.