Android Question Am I in accesibility mode ?

Discussion in 'Android Questions' started by hookshy, Jun 21, 2015.

  1. hookshy

    hookshy Well-Known Member Licensed User

    Please help me find out if the user is using talk back in accesibility mode of the android device !
    Thank you
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    On Android 4+ you can use this code:
    Code:
    Sub IsAccessibilityEnabled As Boolean
       
    Dim jo As JavaObject
       
    Return jo.InitializeContext.RunMethodJO("getSystemService", _
          
    Array("accessibility")).RunMethod("isEnabled"Null)
    End Sub
     
  3. hookshy

    hookshy Well-Known Member Licensed User

    thanks , option is very usefull to force app to run only if accesibility is on
     
Loading...