Home > Mobile >  Questions about the android barrier-free service input
Questions about the android barrier-free service input

Time:11-26

I wrote an APP, which in some places involves the problem of automatic input, the APP "hungry?", for example, came to this page, as shown in the figure below:

Here, we need barrier-free service inputs such as the keyword "malatang", access to the id number of the textView later, I found using the following code should not be input:
Bundle the arguments=new bundle ();
The arguments. PutCharSequence (AccessibilityNodeInfo ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE, "malatang");
TextInfo. PerformAction (AccessibilityNodeInfo ACTION_SET_TEXT, the arguments).//textInfo AccessbilityNodeInfo class
Whether you need the first thing I thought of the thread to sleep 2 s, but failed. Second, I think whether can be the attribute of the control input, through the output properties (editInfo. IsEditable ()), I found that this control is not to enter, then the problem is coming, I can be input manually, why can't use barrier-free service is input, how can I achieve use barrier-free service input the value,

CodePudding user response:

Will have a big ah, recently learned of the android, there is few things, what is really don't know if this control is also curved around, how can manually input, barrier-free service will not be able to enter? Writing not obviously on properties editor, why can manually input?
  • Related