I have an app where you can calculate your calories.
I want to make a blind Mode, so if someone use this app who is blind, then the app does not need to show him a diagram.
I need to check on the phone if the blind mode is active or not (is Talkback activ).
How can I do this and check this permission.
I have tried this code but it does not work
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);