title: Android nested requests for SimpleCursorAdapter and regexps
body: <p>In my application I need to access data stored in a SQLite database to create a list of names+icons.</p>
  
  <p>I have two tables in my database :
  One contains the Name Column (and a lot of other columns for details), but this name column contains text with the ID of a text stored in another table (dictionnary).
  It looks like this :</p>
  
  <p>the main table :</p>
  
  <pre><code>ClassID | Name                    | ...
  1       | "foo &lt;$&gt;9973&lt;/&gt; bar"    | ...
  </code></pre>
  
  <p>the dictionnay table :</p>
  
  <pre><code>ID      | Content
  9973    | "Name of the item"
  </code></pre>
  
  <p>The thing I would need would be to retrieve automatically the name from the dictionnary before it is used to generate the <strong>ListView</strong>. And It would be best if the dictionnay calls weren't made asynchronously...</p>
  
  <p>I need to apply something similar to the php fonction <strong>preg_replace_callback</strong> to match the   pattern and look for the corresponding text in the dictionnary.</p>
  
  <p>I've seen some things with setViewValue but I'm not sure how to use it.</p>
  
  <p>Any suggestions ? 
  Thanks</p>
  
  <p>EDIT :
  To be a bit clearer, the output should be in my example :</p>
  
  <pre><code>"foo Name of the item bar"
  </code></pre>