How do you get a newly started Activity to announce itself in Android TalkBack?
All the documentation I can find only refers to Views, not Activities, and those Views only announce themselves when touched. What I need is, on a change of Activity, some spoken text to tell the user where they are in the app hierarchy. Right now, on every Activity change, TalkBack just states the app name every time, which isn't useful.
I've tried adding contentDescription to the root Layout element in the Activities layout XML, but that didn't seem to make any difference. Example:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:contentDescription="My new Activity"
>
Thanks in advance...
TalkBack is the Google screen reader included on Android devices. TalkBack gives you eyes-free control of your device. The setup of your device depends on the device manufacturer, Android version, and TalkBack version. These help pages apply to most devices, but you might experience some differences.
Try to uncheck the setting in TalkBack -> verbosity -> speak element type -> uncheck. Now talkback will not announce class type of view at end of content description. Save this answer. Show activity on this post.
More details: if you are strictly interested in whether TalkBack is enabled, use am. isTouchExplorationEnabled() . (If Select to Speak is enabled and TalkBack disabled, am. isEnabled() will still return true.)
Use the android:label
attribute on the Activity
tag in your AndroidManifest
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With