Android Question accessibility service

Discussion in 'Android Questions' started by catyinwong, Aug 4, 2019.

  1. catyinwong

    catyinwong Active Member Licensed User

    I want to write an app which can read the keyboard keys when a user is typing. for example when the user type "a", then the app service will speak "a".

    can our accessibility service library do that? I.e. listen to the keyboard input and then raise an event?
     
  2. catyinwong

    catyinwong Active Member Licensed User

  3. moster67

    moster67 Expert Licensed User

    JordiCP likes this.
  4. catyinwong

    catyinwong Active Member Licensed User

  5. moster67

    moster67 Expert Licensed User

    For your requirements, I haven't investigated much but the wrapper covers most scenarios. It can indeed be a bit tricky but if you follow the WhatsApp sample posted by me and looking at the code you linked to, you should be able to figure it out.
    If not, as mentioned in the library thread, I could probably make things easier by doing a custom-library. If this is something which may interest you, then contact me by PM and we can discuss it further.
     
  6. catyinwong

    catyinwong Active Member Licensed User

    searched on the sources for a bit, seems like the tutorial example (the one with whatsapp) does not catch the "TYPE_VIEW_TEXT_CHANGED" event. is it because of the setting in the manifest editor or something else?
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice