Android Programming: The Big Nerd Ranch Guide, 5th Edition
by Bryan Sills, Brian Gardner, Kristin Marsicano, Chris Stewart
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 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 when you get a result back from taking a photo. If you do, there will be some timing issues related to the activity ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access