obtain the result of voice recognition in android -


I want to get results of service voice recognition I mean what the user says he wants to receive I try a code

  list = String & gt; Matches = Data .getStringArrayListExtra (RecognizerIntent.EXTRA_RESULTS); If (matches.gate (i) amails ("fakir monkey")) {toast. Make Text (this, "Excelent!", 2000). Show ();   

But I can not understand this line if (matches.get (i) .equals ("Fakir Monkey")) can you help me understand this line Or other solution thx

This row checks the string in the i-th place matches < / Code> ( matches.get (i) ) is similar to string "crazy mocaki" ( equal to monkey ") )

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -