Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8343015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:56:08+00:00 2026-06-09T05:56:08+00:00

This question asked how to know if Android Talkback is active; that worked until

  • 0

This question asked how to know if Android Talkback is active; that worked until Jelly Bean. Starting from Android 4.1, that steps no longer work, because the mentioned cursor is empty.

Having this said, I want to ask is if there is a way to do the same checking in Jelly Bean.

EDIT
I tried to search for TalkBack code and I found it here.
For checking if TalkBack is active, I am using the following code:

Intent screenReaderIntent = new Intent("android.accessibilityservice.AccessibilityService");
screenReaderIntent.addCategory("android.accessibilityservice.category.FEEDBACK_SPOKEN");
List<ResolveInfo> screenReaders = getPackageManager().queryIntentServices(screenReaderIntent, 0);
Cursor cursor = null;
ContentResolver cr = getContentResolver();
for (ResolveInfo screenReader : screenReaders) {
    cursor = cr.query(Uri.parse("content://" + screenReader.serviceInfo.packageName
            + ".providers.StatusProvider"), null, null, null, null);
    //here, cursor is not null, but calling cursor.moveToFirst() returns false, which means the cursor is empty
}

Having this said, if the cursor is empty, how do we know if TalkBack is running?

EDIT 2
Following @JoxTraex suggestions, I am now sending a broadcast to query whether or not TalkBack is enabled:

Intent i = new Intent();
i.setAction("com.google.android.marvin.talkback.ACTION_QUERY_TALKBACK_ENABLED_COMMAND");
sendBroadcast(i);

Now how should I receive the response?

I tried adding the following to manifest, but my receiver does not receive any response:

<receiver android:name="my.package.MyBroadcastReceiver"
android:permission="com.google.android.marvin.talkback.PERMISSION_SEND_INTENT_BROADCAST_COMMANDS_TO_TALKBACK">
<intent-filter>
    <action android:name="com.google.android.marvin.talkback.ACTION_QUERY_TALKBACK_ENABLED_COMMAND" />
</intent-filter>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T05:56:10+00:00Added an answer on June 9, 2026 at 5:56 am

    I’m not sure this is the best way of achieving what is proposed, but I managed to make this work by using the following code:

    Intent screenReaderIntent = new Intent("android.accessibilityservice.AccessibilityService");
    screenReaderIntent.addCategory("android.accessibilityservice.category.FEEDBACK_SPOKEN");
    List<ResolveInfo> screenReaders = getPackageManager().queryIntentServices(screenReaderIntent, 0);
    Cursor cursor = null;
    int status = 0;
    ContentResolver cr = getContentResolver();
    
    List<String> runningServices = new ArrayList<String>();
    ActivityManager manager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
    for (RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) {
        runningServices.add(service.service.getPackageName());
    }
    
    for (ResolveInfo screenReader : screenReaders) {
        cursor = cr.query(Uri.parse("content://" + screenReader.serviceInfo.packageName
                + ".providers.StatusProvider"), null, null, null, null);
    
        if (cursor != null && cursor.moveToFirst()) { //this part works for Android <4.1
            status = cursor.getInt(0);
            cursor.close();
            if (status == 1) {
                //screen reader active!
            } else {
                //screen reader inactive
            }
        } else {  //this part works for Android 4.1+
            if (runningServices.contains(screenReader.serviceInfo.packageName)) {
                //screen reader active!
            } else {
                //screen reader inactive
            }
        }
    }
    

    Probably this is not the best way but it is the only one I can think of that works in Jelly Bean and in previous Android versions

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that this question is asked a lot, I checked all of the
I know this kind of question has been asked before, for example here: Android:
I know this is a question that has been asked before, but I think
I know that this question is already asked by other members and solution is
I know this question was asked here many times before but I am still
I know this question was asked for many times, and it may look like
I know this question was asked previously and the reply was to override onPrepareContextMenu()/onCreateContextMenu().
I know this question has been asked a couple of times before. I m
I know this question has been asked before however the answers I found where
I know this question as been asked countless times, but believe me I've searched

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.