title: Cannot resolve method for SparseArray<TextBlock>
body: <p>this is a piece of a script that has to recognize a text from the camera through <code>TextRecognizer</code> and then search a certain word inside the text. If the word is present, the system has to save in <code>String found</code> the word after.</p>
  
  <p>The problem is that I have this two errors:</p>
  
  <pre><code>Cannot resolve method 'contains(java.lang.String)'
  Cannot resolve method 'getValue(int)'
  </code></pre>
  
  <p>How can I solve this errors? I haven't found any similar method for <code>SparseArray&lt;TextBlock&gt;</code>.</p>
  
  <pre><code>public void receiveDetections(Detector.Detections&lt;TextBlock&gt; detections) {
  
    String search = "palabra";
    final SparseArray&lt;TextBlock&gt; items = detections.getDetectedItems(); //is the detection of textRecognizer of the camera
  
    for (int i=0; i&lt;items.size(); ++i) 
    {
      if(items.get(i).contains(search)) 
      {
         String found = items.getValue(i+1);
         Log.i("current lines ", found);
      }
    }
  
  }
  </code></pre>