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
Post a Comment