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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.