title: android: how to set icon from database for AlertDialog?
body: <p>So I am showing AlertDialog something like this:</p>
  
  <pre><code>new AlertDialog.Builder(context)
    .setMessage(message)
    .setTitle(title)
    .setCancelable(true)
    .setIcon(R.drawable.ic_launcher) // set icon
    // more code
  </code></pre>
  
  <p>Is it possible to use <code>setIcon</code> to have icon from db eg contact photo:</p>
  
  <pre><code>DatabaseHelper db = new DatabaseHelper(context);        
  Cursor csr = db.getSpecialContact(number);
  csr.moveToFirst();
  String photo = csr.getString(csr.getColumnIndexOrThrow("photo_url"));
  Uri photo_url = Uri.parse(photo);
  </code></pre>
  
  <p>I want to be able to use <code>photo_url</code> (saved in db like <code>content://com.android.contacts/data/1</code>) with <code>setIcon</code> but of course it expects parameter to be <code>int</code> not <code>string</code> or <code>Uri</code>. Can that be acheived please ?</p>